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
⚠️ windows_first
Summary:
The documentation page demonstrates a Windows bias by providing only Azure PowerShell scripting examples (with no Bash/CLI or Linux-native alternatives), referencing Microsoft accounts (with a link to Windows Server documentation), and listing PowerShell as the only automation method. The prerequisites and instructions focus on PowerShell and Windows-centric tools, with no mention of Azure CLI or cross-platform scripting options. The order of presentation also places PowerShell before any mention of CLI or Linux-friendly tools.
Recommendations:
  • Add equivalent Azure CLI (az) examples for all PowerShell scripts, as Azure CLI is cross-platform and widely used on Linux and macOS.
  • Include instructions for installing and using Azure CLI on Linux/macOS, alongside PowerShell.
  • Reference generic Microsoft Entra ID documentation rather than Windows Server-specific Microsoft account links.
  • Present automation options in a neutral order (e.g., 'Azure portal', 'Azure CLI', 'Azure PowerShell') or group them by platform-neutrality.
  • Explicitly state that all procedures can be performed from any OS using Azure CLI or the portal, not just from Windows/PowerShell environments.
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

# Values to change $subscriptionId = "<Azure subscription ID>" $labResourceGroup = "<Lab resource group name>" $labName = "<Lab name>" $userDisplayName = "<User display name>" # Sign into your Azure account. Connect-AzAccount # Select the Azure subscription that contains the lab. This step is optional if you have only one subscription. Select-AzSubscription -SubscriptionId $subscriptionId # Get the user object. $adObject = Get-AzADUser -SearchString $userDisplayName # Create the role assignment. $labId = ('/subscriptions/' + $subscriptionId + '/resourceGroups/' + $labResourceGroup + '/providers/Microsoft.DevTestLab/labs/' + $labName) New-AzRoleAssignment -ObjectId $adObject.Id -RoleDefinitionName 'DevTest Labs User' -Scope $labId