– Select Windows PowerShell or Windows Terminal (on Win 11)Įnter the following command in PowerShell to install the module: – Right-click on Start or press Windows Key + X It’s also possible to install it for all users, but then you will need to open PowerShell with elevated permissions. We are going to install the Microsoft Graph module only for the current user. You can view all available modules with the following command: Find-Module Microsoft.Graph* Note Make sure that you install atleast the module when installing individual modules We can install them all at once, but you might want to consider installing only the modules that you really need. The Microsoft Graph SDK Module exists, at the moment, out of 38 modules. Installing the Microsoft Graph Module in PowerShell The Azure AD Module, for example, doesn’t work on PowerShell 7. This means that we could also use the module to interact with SharePoint, Exchange Online, Compliance, etc.Īnother advantage of the module is that it supports PowerShell 7 and above. So it’s important to rewrite all your scripts that use the Azure AD Module to the Microsoft Graph module.Īs mentioned, the Microsoft Graph PowerShell SDK allows us to interact with all APIs from Microsoft. This means that calls made with the Azure AD Module won’t get a response anymore. On June 30, 2022, the Azure AD Graph endpoint will be deprecated. The other modules that we use to interact with Microsoft 365 don’t seem to be replaced by it at the moment. At the moment it only seems to replace the Azure AD module. ![]() ![]() The Graph module is actually called the Microsoft Graph PowerShell SDK and is a wrapper for all Microsoft Graph APIs. In this article, I will explain how to install the Microsoft Graph Module and how to connect to it using different permissions. The new Microsoft Graph Module comes with a lot of cmdlets to make interacting with the services a lot easier. ![]() We could already use the Graph API with the help of Invoke-Webrequests calls, but that was not really easy to work with. This is no longer necessary with the Microsoft Graph SDK Module for PowerShell. To do this from PowerShell, we always had to install different modules and make different connections. ![]() The Microsoft Graph API allows us to interact with all Microsoft services through a single source.
0 Comments
Leave a Reply. |