The Microsoft Graph PowerShell SDK
Another great tool for building solutions, especially automation, on top of the Microsoft Graph API is the Microsoft Graph PowerShell SDK, which is a set of PowerShell cmdlets representing the Graph API’s resources.
The Graph PowerShell SDK module can be installed from the PowerShell Gallery, which is a public, centralized repository for sharing PowerShell scripts, modules, and code. The SDK is supported on Windows PowerShell and PowerShell 7, which is the recommended version to be used. Installing the SDK can be done using the following:
Install-Module Microsoft.Graph -Scope CurrentUser
The Scope parameter’s CurrentUser
value will install the module for the current user only and doesn’t require administrator permissions on the computer. With the AllUsers
value, the module is installed for all users.
If the beta version of the SDK is required, it’s included in a separate module and is installed with the following...