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 (with PowerShell environment) for all scripting and automation steps. There are no Bash, Linux shell, or cross-platform scripting examples provided. The instructions assume the user is familiar with PowerShell and do not mention or provide alternatives for Linux users, despite Azure Cloud Shell supporting Bash. This could hinder Linux users or those who prefer Bash scripting from following the guide effectively.
Recommendations:
- Provide equivalent Bash shell script examples for all PowerShell scripts and commands, especially for steps involving Microsoft Graph and Azure CLI.
- Explicitly mention that Azure Cloud Shell supports both Bash and PowerShell, and offer instructions for both environments.
- Where referencing downloadable scripts, provide both .ps1 (PowerShell) and .sh (Bash) versions.
- Ensure that all variable setup and authentication steps are shown in both PowerShell and Bash syntax.
- Review diagrams and screenshots to ensure they are not Windows-specific (e.g., showing only PowerShell prompts or Windows UI elements).
- Add a note at the beginning clarifying that the instructions are cross-platform and that users can choose their preferred shell environment.
Create pull request
Flagged Code Snippets
$webhookAadTenantId = "[REPLACE_WITH_YOUR_TENANT_ID]"
Connect-MgGraph -TenantId $webhookAadTenantId -Scopes "Application.ReadWrite.All, AppRoleAssignment.ReadWrite.All"
$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.