About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
powershell_heavy
⚠️
windows_first
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation demonstrates a strong Windows bias by exclusively using PowerShell scripts and the Azure Cloud Shell's PowerShell environment for setup steps, with no mention or examples for Bash or Linux-native workflows. All scripting and automation steps are shown in PowerShell, and the Azure Shell is always referenced in the context of PowerShell, not Bash. There are no Linux or cross-platform shell examples, and the documentation assumes familiarity with Windows-centric tools and patterns.
Recommendations:
- Provide equivalent Bash shell scripts for all PowerShell examples, especially for steps involving Microsoft Graph and Azure CLI.
- Explicitly mention that Azure Cloud Shell supports both Bash and PowerShell, and show how to perform steps in both environments.
- Where possible, use Azure CLI for scripting and automation, as it is cross-platform, and only use PowerShell-specific commands when necessary.
- Add notes or sections for Linux/macOS users, including any differences in authentication or environment setup.
- Ensure that all referenced scripts (such as those linked in the documentation) have Bash equivalents or are written in a cross-platform way.
Create pull request
Flagged Code Snippets
$webhookAadTenantId = "[REPLACE_WITH_YOUR_TENANT_ID]"
Connect-MgGraph -TenantId $webhookAadTenantId -Scopes "Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All"
New-MgServicePrincipalAppRoleAssignment: Error occurred while executing NewServicePrincipalAppRoleAssignment
Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.
$webhookAadTenantId = "[REPLACE_WITH_YOUR_TENANT_ID]"
Connect-MgGraph -TenantId $webhookAadTenantId -Scopes "Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All"
New-MgServicePrincipalAppRoleAssignment: Error occurred while executing NewServicePrincipalAppRoleAssignment
Code: Authorization_RequestDenied
Message: Insufficient privileges to complete the operation.