Copy-ready commandInvoke-MgGraphRequest — Export Results
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/organization" | Export-Csv .\output.csv -NoTypeInformationRequirements and permissions
- Requirements
- Microsoft.Graph PowerShell SDK
- Permissions
- Graph delegated or application permissions
- Last reviewed
- 2026-07-31
Examples
Export Results
Export the output of Invoke-MgGraphRequest for documentation or review.
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/organization" | Export-Csv .\output.csv -NoTypeInformationOriginal command
Call Microsoft Graph directly.
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/organization"Common errors
Command not found
Confirm Microsoft.Graph PowerShell SDK is installed and available in your current shell.