Unable to connect to Microsoft.Graph.Intune

Loïc Denis 20 Reputation points
2024-05-29T13:13:36.2533333+00:00

Hi community,

Unable to connect to Microsoft.Graph.Intune today...

I execute the commands below and obtain this error message :

import-module microsoft.graph.intune

connect-msgraph

AADSTS700016: Application with identifier 'd1ddf0e4-d672-4dae-b554-9d5bdfd93547' was not found in the directory 'XXXXXXXXX'. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You may have sent your authentication request to the wrong tenant.

Updates on the module ?

Thanks for your help

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,559 questions
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 44,841 Reputation points Microsoft Vendor
    2024-05-30T01:45:53.74+00:00

    @Loïc Denis, Thanks for posting in Q&A. Based on my researching, I find in May 2024, due to updated authentication methods in the Graph SDK-based PowerShell module, the global Microsoft Intune PowerShell application (client) ID based authentication method is removed.

    https://learn.microsoft.com/en-us/samples/microsoftgraph/powershell-intune-samples/important/

    For the command "connect-msgraph", it is using the Intune PowerShell application ID (d1ddf0e4-d672-4dae-b554-9d5bdfd93547). So it is affected. You need to create a new registration app with required permission and connect via the new registration app.

    connect-msgraph -clientid <your app id>

    https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/connect-mggraph?view=graph-powershell-1.0

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful