code for article pfeilbr/powershell-playground
# connects to Azure with an authenticated account for use with cmdlets from the
# Az PowerShell modules
Connect-AzAccount
Get-AzADUser -ObjectId "user@example.com"| fl
Resources
- Installing PowerShell on macOS
- Azure PowerShell documentation
- Yes you can! Use PowerShell in MacOS to connect to Microsoft Azure
- Microsoft Graph PowerShell Preview - Now on PowerShell Gallery
Scratch
Twitter • Reddit