Microsoft.Graph PowerShell Module 2.2.0 GA released

Microsoft.Graph PowerShell Module 2.2.0 GA released

Hi All,

Two days ago, Microsoft has released the Version 2.2.0 of Microsoft.Graph and Microsoft.Graph.Beta Modules.

I was hoping that they would release the Beta Modules on a diffrent Shedule. Maybe they will do that at a later point. For now, both Modules where updated and released with a fresh version.

PowerShell Gallery Microsoft.Graph 2.2.0

Read more in the Release Notes

  • Refreshes the SDK with the latest APIs.
  • Adds support for /admin/people/* APIs
  • Adds support for /sites/getAllSites* API
  • Adds environment name to Get-MgContext output

Show installed Versions and what’s available in PowerShell Gallery

Get-InstalledModule Microsoft.Graph
Get-InstalledModule Microsoft.Graph.Beta
Find-Module Microsoft.Graph
Find-Module Microsoft.Graph.Beta

Uninstalling the old Modules

Note that “Microsoft.Graph.*” will also include the Beta Modules

Get-InstalledModule Microsoft.Graph.* | Uninstall-Module -Force
Get-InstalledModule Microsoft.Graph | Uninstall-Module -Force

Install the new Modules from PowerShell Gallery

Install-Module Microsoft.Graph
Install-Module Microsoft.Graph.Beta -AllowClobber

List all the Modules

Get-Module Microsoft.Graph.* -ListAvailable

Some basic testing - you now can see the Environement in “Get-MgContext”

Connect-MgGraph -Scopes user.read.all
Get-MgContext
Get-MgUser -UserId a.bohren@icewolf.ch
Disconnect-MgGraph

Regards
Andres Bohren

PowerShell Logo