Sad Tux - Windows bias detected
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

Detected Bias Types
powershell_heavy
windows_tools
windows_first
Summary
The documentation provides detailed PowerShell examples and instructions, which are primarily Windows-centric, before presenting Azure CLI examples. The PowerShell section is more prominent and detailed, and there is no mention of Linux-native tools or shell scripting alternatives. While Azure CLI is cross-platform, the scripting examples (e.g., variable assignment) use Bash syntax, but the overall flow and depth favor PowerShell. There are no explicit Linux-specific instructions or parity notes for Linux users.
Recommendations
  • Ensure that Azure CLI examples are as detailed and prominent as PowerShell examples, and clarify that Azure CLI is fully supported on Linux, macOS, and Windows.
  • Add explicit Bash and/or shell scripting examples for common Linux environments, especially for variable assignment and command chaining.
  • Where PowerShell is mentioned, note that PowerShell Core is cross-platform and provide installation instructions for Linux/macOS if relevant.
  • Consider adding a 'Linux/macOS' tab or section with native shell examples, or at least a note on how to adapt the steps for Linux users.
  • Review the ordering of sections so that cross-platform tools (Azure CLI, Bicep, ARM templates) are presented before or alongside Windows-specific tools like PowerShell.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Clean Clean
2026-01-13 00:00 #246 completed Biased Biased
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Biased Biased
2026-01-09 00:34 #234 completed Biased Biased
2026-01-08 00:53 #231 completed Biased Biased
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-19 00:01 #85 completed Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

   $startTime = $startTime = (Get-Date).AddMinutes(10) 
   $reportPrefix = "my-storage-task-report"
   $triggerType = RunOnce
   $targetPrefix = "mycontainer/"
   
   New-AzRoleAssignment `
   -ResourceGroupName "<resource-group>" `
   -ResourceName "<storage-account-name>" `
   -ResourceType "Microsoft.Storage/storageAccounts" `
   -ObjectId $task.IdentityPrincipalId  `
   -RoleDefinitionName "Storage Blob Data Owner"
   
   $task = Get-AzStorageActionTask -Name <"storage-task-name"> -ResourceGroupName "<resource-group>"
   
   New-AzStorageTaskAssignment `
   -ResourceGroupName "<resource-group>" `
   -AccountName "<storage-account-name>" `
   -name "<storage-task-assignment-name>" `
   -TaskId $task.ID `
   -ReportPrefix $reportPrefix `
   -TriggerType $triggerType `
   -StartOn $startTime.ToUniversalTime() `
   -Description "<description>" `
   -Enabled:$true `
   -TargetPrefix $targetPrefix `
   -TargetExcludePrefix ""
   
    $managedIdentity = Get-AzUserAssignedIdentity -ResourceGroupName <resource-group> -Name <user-assigned-managed-identity-name>

    New-AzRoleAssignment `
    -ResourceGroupName "<resource-group>" `
    -ResourceName "<storage-account-name>" `
    -ResourceType "Microsoft.Storage/storageAccounts" `
    -ObjectId $managedIdentity.Id  `
    -RoleDefinitionName "Storage Blob Data Owner"
   
   $storageAccountID=az storage account show --name <storage-account-name> --resource-group <resource-group> --query "id"
   $roleDefinitionId="b7e6dc6d-f1e8-4753-8033-0f276bb0955b" \


   az role assignment create \
      --assignee-object-id $principalID \
      --scope $storageAccountID \
      --role $roleDefinitionId \
      --description "My role assignment" 
   
   $storageAccountID=az storage account show --name <storage-account-name> --resource-group <resource-group> --query "id"
   $roleDefinitionId="b7e6dc6d-f1e8-4753-8033-0f276bb0955b"
   $identityId=az identity show --name <user-assigned-managed-identity-name> \
   --resource-group <resource-group> --query "id"

    az role assignment create \
    --assignee-object-id $identityId 
      --role $roleDefinitionId \
      --description "My role assignment"