This page contains Windows bias

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
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation page demonstrates a strong bias towards Windows by exclusively providing Azure PowerShell examples and instructions for managing Azure reservations. There are no examples or references to cross-platform tools such as Azure CLI, nor are there any Bash or Linux shell script equivalents. The use of PowerShell as the only automation/scripting method implicitly assumes a Windows environment or familiarity with PowerShell, which is less common among Linux users.
Recommendations:
  • Add equivalent Azure CLI (az) command examples for all PowerShell scripts and management tasks, as Azure CLI is cross-platform and widely used on Linux and macOS.
  • Provide Bash shell script examples alongside PowerShell scripts for automation scenarios.
  • Explicitly state that PowerShell Core is available cross-platform, but clarify whether the provided scripts are compatible with PowerShell Core on Linux/macOS.
  • Include guidance or links for installing and using Azure CLI and/or PowerShell Core on non-Windows platforms.
  • Review all sections to ensure Linux users are not excluded from management workflows, and mention any platform-specific caveats.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-12 00:58 #8 cancelled ✅ Clean
2025-07-10 05:06 #7 processing ✅ Clean

Flagged Code Snippets

Import-Module Az.Accounts Import-Module Az.Resources Connect-AzAccount -Tenant <TenantId> New-AzRoleAssignment -Scope "/providers/Microsoft.Capacity" -PrincipalId <ObjectId> -RoleDefinitionName "Reservations Administrator"
Import-Module Az.Accounts Import-Module Az.Resources Connect-AzAccount -Tenant <TenantId> $response = Invoke-AzRestMethod -Path /providers/Microsoft.Capacity/reservations?api-version=2020-06-01 -Method GET $responseJSON = $response.Content | ConvertFrom-JSON $reservationObjects = $responseJSON.value foreach ($reservation in $reservationObjects) { $reservationOrderId = $reservation.id.substring(0, 84) Write-Host "Assigning Owner role assignment to "$reservationOrderId New-AzRoleAssignment -Scope $reservationOrderId -ObjectId <ObjectId> -RoleDefinitionName Owner }
Import-Module Az.Accounts Import-Module Az.Resources Connect-AzAccount -Tenant <TenantId> New-AzRoleAssignment -Scope "/providers/Microsoft.Capacity" -PrincipalId <ObjectId> -RoleDefinitionName "Reservations Reader"