GithubHelp home page GithubHelp logo

Comments (31)

almenscorner avatar almenscorner commented on May 20, 2024 1

I mean like this,
Screenshot 2023-08-08 at 12 58 26

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024 1

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.

almenscorner avatar almenscorner commented on May 20, 2024

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.

Meddell avatar Meddell commented on May 20, 2024

Yep I had tried running the backup locally with the app registration and got the same error:
image

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

Interesting, can you send a print screen of the api permissions granted on the app reg?

from intunecd.

Meddell avatar Meddell commented on May 20, 2024

Sure thing, here are is the screenshot of it:
image

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

I'm trying to replicate but haven't been able to so far

from intunecd.

Meddell avatar Meddell commented on May 20, 2024

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.

almenscorner avatar almenscorner commented on May 20, 2024

Do you have any remote assistance partners connected in Intune?

from intunecd.

Speed1 avatar Speed1 commented on May 20, 2024

Hi,
we encounter the exact same error. We have a remote assistance partner configured (Teamviewer).

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

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.

Speed1 avatar Speed1 commented on May 20, 2024

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.

almenscorner avatar almenscorner commented on May 20, 2024

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.

almenscorner avatar almenscorner commented on May 20, 2024

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.

Speed1 avatar Speed1 commented on May 20, 2024

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.

almenscorner avatar almenscorner commented on May 20, 2024

Hmm, and the redirect URI is set as a "Mobile and desktop applications" type for the platform?

from intunecd.

Speed1 avatar Speed1 commented on May 20, 2024

If you mean this flag, yes I tried to enable it but the error was the same.

Screenshot 2023-08-07 at 09 46 15

from intunecd.

Speed1 avatar Speed1 commented on May 20, 2024

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

Screenshot 2023-08-11 at 11 19 33

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

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.

almenscorner avatar almenscorner commented on May 20, 2024

@Speed1, are you able to provide me an ActivityID so I can move the discussions forward? 😊

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

You could also do a new run and provide the ActivityID @Meddell ?

from intunecd.

Speed1 avatar Speed1 commented on May 20, 2024

Hi @almenscorner
Sorry, I'm still on holidays. I will provide you on Monday with an activity ID.

from intunecd.

Speed1 avatar Speed1 commented on May 20, 2024

Hi @almenscorner
here the activityID 97aa6610-5155-4e74-a784-bdc6f7def485
Sorry for the delay...

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

Hi @almenscorner here the activityID 97aa6610-5155-4e74-a784-bdc6f7def485 Sorry for the delay...

No worries, thank you very much! :)

from intunecd.

AlphaSeb avatar AlphaSeb commented on May 20, 2024

Were also impacted by this. We have an active TeamViewer Integration, but as it's useless (for us) I simply disconnected it...

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

Yeah I'm hearing nothing from MS unfortunately

from intunecd.

mrtzlbm avatar mrtzlbm commented on May 20, 2024

Were also impacted by this error. We have an active TeamViewer connector. Activity ID: 4d4d0345-789b-4544-bdf0-579364683170

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

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.

almenscorner avatar almenscorner commented on May 20, 2024

I have been able to backup a remote assistance partner with application permissions lately. Is this working for you as well now?

from intunecd.

almenscorner avatar almenscorner commented on May 20, 2024

See above @mrtzlbm @AlphaSeb @Meddell

from intunecd.

Meddell avatar Meddell commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.