Comments (31)
from intunecd.
I will make it clearer in the text :)
OK, so there is something wrong, maybe a bug where when application permissions are used to export Remote Assistance partner the permissions are not working. Sounds like something I need to bring to Microsoft..
from intunecd.
Hi,
Definitely looks like you have all the required permissions and RemoteAssistancePartner requires the service config permission. Does it fail with that exact error if you re-run the pipeline every time? Can you run from your own terminal locally using the same app reg and see if you get the same result?
from intunecd.
Yep I had tried running the backup locally with the app registration and got the same error:
from intunecd.
Interesting, can you send a print screen of the api permissions granted on the app reg?
from intunecd.
Sure thing, here are is the screenshot of it:
from intunecd.
I'm trying to replicate but haven't been able to so far
from intunecd.
I will see if it was something with the app registration, going to replace the app registration and create a new one.
Edit: I tried with a new app registration and still an error. I excluded RemoteAssistancePartner and it worked as normal. I ran the query in Graph Explorer and it worked fine as well.
from intunecd.
Do you have any remote assistance partners connected in Intune?
from intunecd.
Hi,
we encounter the exact same error. We have a remote assistance partner configured (Teamviewer).
from intunecd.
So it seems like there is a different behaviour when there is a partner connected.. the same permissions should still apply though. Is the call working for you as well running it with your account instead of the app reg @Speed1?
from intunecd.
Sorry for the late response. I tried to run the application with the -i parameter but I get the following error after web authentication:
IntuneCD-startbackup -m 1 -p intuneBackup -i
Traceback (most recent call last):
File "/Users/username/src/intuneCD/venv_intuneCD/bin/IntuneCD-startbackup", line 8, in <module>
sys.exit(start())
^^^^^^^
File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 370, in start
run_backup(args.path, args.output, exclude, token)
File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 165, in run_backup
results.append(savebackup(path, output, exclude, token))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/backup_appConfiguration.py", line 34, in savebackup
data = makeapirequest(ENDPOINT, token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/graph_request.py", line 24, in makeapirequest
"Authorization": "Bearer {0}".format(token["access_token"]),
~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'
Do you have a hint?
from intunecd.
Sorry for the late response. I tried to run the application with the -i parameter but I get the following error after web authentication:
IntuneCD-startbackup -m 1 -p intuneBackup -i Traceback (most recent call last): File "/Users/username/src/intuneCD/venv_intuneCD/bin/IntuneCD-startbackup", line 8, in <module> sys.exit(start()) ^^^^^^^ File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 370, in start run_backup(args.path, args.output, exclude, token) File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/run_backup.py", line 165, in run_backup results.append(savebackup(path, output, exclude, token)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/backup_appConfiguration.py", line 34, in savebackup data = makeapirequest(ENDPOINT, token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/username/src/intuneCD/venv_intuneCD/lib/python3.11/site-packages/IntuneCD/graph_request.py", line 24, in makeapirequest "Authorization": "Bearer {0}".format(token["access_token"]), ~~~~~^^^^^^^^^^^^^^^^ KeyError: 'access_token'
Do you have a hint?
Have you configured the app registration per the requirements here? https://github.com/almenscorner/IntuneCD/wiki/Authentication#interactive
from intunecd.
I struggling to replicate the remote assistance partner issue as I do not have an environment with TV available. Did you get interactive auth run to work @Speed1?
from intunecd.
Hi @almenscorner,
sorry, I totally forgot about this (currently excluded RemoteAssistancePartner from backup).
I retried but I still get the same error. I have the URL "http://localhost" added to my Redirect URIs in the App registration.
I also set TENANT_NAME and CLIENT_ID as env variables but no luck...
If I run the command IntuneCD-startbackup -m 1 -p intuneBackup -a secret.json
it runs until the RemoteAssistancePartner as the Pipeline
from intunecd.
Hmm, and the redirect URI is set as a "Mobile and desktop applications" type for the platform?
from intunecd.
If you mean this flag, yes I tried to enable it but the error was the same.
from intunecd.
Now it works, thanks. I was confused from the phrase If using interactive mode, a Web Redirect URI needs to be added to the app registration with the value http://localhost"
. Maybe it should be changed in If using interactive mode, a Mobile and desktop applications Redirect URI needs...
?
Nevermind, in interactive mode everything works as expected. The RemoteAssistancePartner was backuped
from intunecd.
Hi @Speed1, I have engaged Microsoft in the issue of backing up remote assistance partners. Would you be able to provide me with an ActivityId of one of the failed calls?
from intunecd.
@Speed1, are you able to provide me an ActivityID so I can move the discussions forward? 😊
from intunecd.
You could also do a new run and provide the ActivityID @Meddell ?
from intunecd.
Hi @almenscorner
Sorry, I'm still on holidays. I will provide you on Monday with an activity ID.
from intunecd.
Hi @almenscorner
here the activityID 97aa6610-5155-4e74-a784-bdc6f7def485
Sorry for the delay...
from intunecd.
Hi @almenscorner here the activityID 97aa6610-5155-4e74-a784-bdc6f7def485 Sorry for the delay...
No worries, thank you very much! :)
from intunecd.
Were also impacted by this. We have an active TeamViewer Integration, but as it's useless (for us) I simply disconnected it...
from intunecd.
Yeah I'm hearing nothing from MS unfortunately
from intunecd.
Were also impacted by this error. We have an active TeamViewer connector. Activity ID: 4d4d0345-789b-4544-bdf0-579364683170
from intunecd.
I am getting no responses from MS... Can everyone create a ticket with MS on this so we get some push on it?
from intunecd.
I have been able to backup a remote assistance partner with application permissions lately. Is this working for you as well now?
from intunecd.
See above @mrtzlbm @AlphaSeb @Meddell
from intunecd.
Sorry for the late response as projects have shifted within our team for a long time but yes problem is resolved
from intunecd.
Related Issues (20)
- [BUG] "HTTPError: Request failed with 200" if a ScopeTag is created
- Intune Custom Compliance Scripts HOT 15
- [FEATURE] Change "Device Filter" import priority HOT 1
- [BUG] 504 errors and other bash issues HOT 1
- [BUG] Failed to create the "Windows Driver Update" Profile with Version 2.3.0b2 HOT 3
- [BUG] Scripts: No changes foun -> Script changed HOT 7
- [FEATURE] Add support for Azure DevOps Federating identity authentication HOT 9
- [BUG] Exclude of "assignments" not supported HOT 3
- [BUG] Convert markdown to PDF HOT 5
- [BUG] Error in pipeline when running update HOT 11
- [BUG] V2.3.0 - Auditing not being added to commits HOT 10
- [BUG] MobileApp Create By... being created without --audit HOT 2
- Update Documentation doesn't include --create-groups argument HOT 1
- [FEATURE] Update group settings HOT 3
- [BUG] Updating a macOS software update policy with group inclusions and exclusions HOT 2
- [BUG] Compliance Policies not being added to Assignment report for new groups HOT 11
- [BUG] Backup fails after renewal of Apple Push Nofication certificate HOT 1
- [BUG] pip3 install IntuneCD installs not the latest version HOT 7
- [BUG] - Deletion of autopilot assignments HOT 11
- [FEATURE] Exit code handling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intunecd.