-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Request failed with ', 401, #122
Comments
Can you share the permissions granted on the app registration you are using in the pipeline? |
Adminconsent is granted. There is also a screenshot in my initial post. |
Sorry missed the screen shot 😬 the permissions are granted as delegated but they have to be "application" instead |
Oh I missed that completely. Now I'm getting further, but also an error 403:
|
Looks like the same issue as in #120, do you have a partner configured? |
For whatever reason it seems like the permissions is not enough when the teamviewer connector is present. Can you for now try to exclude it from the backup? I will have to take a deeper look at this when I'm back from vacation |
I've changed the script entry to Now I'm getting this:
|
Is it possible for you to try a run locally and not in a pipeline to see if there's any difference? |
I can't get it to run locally in general. I'm absolutely no python pro either. I'll wait until after your vacation, hoping that it will work via pipelines then. |
Bug has been verified in #120, the backup works with interactive auth but not when running with application permissions which it should. I need to bring this to Microsoft. |
Hi @new-it, can you do a new run including the remote management partner and provide me with the ActivityID of the failed run? |
Sorry for the late response, I was on holiday.
|
@almenscorner Any update on this? |
Hi - I am still waiting on a reply from Microsoft on this issue. I'll ping them and ask for an update. |
|
Yes, you can use the |
Sadly, we are now facing an issue with another profile.
|
It looks like you have an empty JSON file somewhere causing the assignment report module to fail. Can you check if there is any JSON files in your repo with no content? |
We've cloned this repo without making any changes to it. We've also tried to run the flow with an empty repo. |
We're running into the problem even if we exclude the specific object. - script: IntuneCD-startbackup -m 1 -o yaml -e windowsQualityUpdates RemoteAssistancePartner
env:
REPO_DIR: $(REPO_DIR)
TENANT_NAME: $(TENANT_NAME)
CLIENT_ID: $(CLIENT_ID)
CLIENT_SECRET: $(CLIENT_SECRET)
displayName: Run IntuneCD backup
|
The error above is not necessarily tied to Quality update profiles as there might be an empty file somewhere else. It is the assignment report that fails. Are you getting the same error if you run a backup locally to a folder instead of a repo targeting the same environment? |
Running locally in pwsh with Py 3.11 via
|
Please follow this step and then run the backup: https://github.com/almenscorner/IntuneCD/wiki/FAQ#q-i-get-a-codec-cant-encode-character--when-running-the-backup |
I've managed to get it to work locally, and for some reason it just started working as a pipeline without any further changes. Thanks a lot for your help! |
Describe the bug
It's our initial setup of IntuneCD in with Pipelines.
To Reproduce
Steps to reproduce the behavior:
Run the Pipeline
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
As we only want to start with a backup and a documentation we choosed these AzureAD App rights:
Run type (please complete the following information):
Additional context
.yml file:
Output:
The text was updated successfully, but these errors were encountered: