Sorry, but we’re having trouble signing you in. AADSTS700016: Application with identifier 'd1ddf0e4-d672-4dae-b554-9d5bdfd93547' was not found in the directory

Sivasankaran J 0 Reputation points
2024-05-23T10:34:22.19+00:00

Whenever I start a new session for connect-MSGraph, it defaults to using the old AppID, even if I’ve updated the AppID in the previous session. Please suggest a way to update the AppID permanently. I am expecting that “connect-MSGraph” session should always use the most recently updated AppID.

1

2

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,461 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,661 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 43,016 Reputation points
    2024-05-24T09:55:30.2666667+00:00

    Hi @Sivasankaran J

    If you are using the MS Graph PowerShell SDK, then you should use the Connect-MgGraph cmdlet to connect to the Graph API.

    Hope this helps.

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.