difference betwee MS Graph and Mg graph powershell

SMF 25 Reputation points
2024-08-20T22:30:02.3766667+00:00

Hi,

I am confused with connect-msgraph and connect-mggraph, which is Microsoft's recommended way for Powershell?

thanks

SM

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,774 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yakun Huang-MSFT 3,765 Reputation points Microsoft Vendor
    2024-08-21T02:10:52.88+00:00

    Hi @SMF

    After searching, there is no information about connect-msgraph, according to the official documentation, it is recommended to use the connect-mggraph command to connect to graph.

    See the documentation for more information:

    https://learn.microsoft.com/en-us/powershell/microsoftgraph/get-started?view=graph-powershell-1.0&toc=%2Fgraph%2Ftoc.json

    https://github.com/microsoftgraph/msgraph-sdk-powershell

    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.

    0 comments No comments

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.