azureblog.co.uk
← cd ~/tools
// tools/graph-powershell

MSOnline & AzureAD to Graph

Microsoft has retired the MSOnline and AzureAD PowerShell modules. Paste a cmdlet or a whole script to see the Microsoft Graph PowerShell equivalent of every command in it.

Runs entirely in your browser. Nothing you paste is sent anywhere.

Loading…

Mappings

Old cmdletMicrosoft Graph PowerShell

Script with cmdlet names swapped

Parameters differ. Graph cmdlets use different parameters and return different objects, so swapping names is a starting point, not a finished migration. Connect with Connect-MgGraph -Scopes …, and find the scopes a command needs with Find-MgGraphCommand -Command Get-MgUser | Select-Object -First 1 -ExpandProperty Permissions.

Mappings from Microsoft's official cmdlet map.