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
windows_first
powershell_heavy
windows_tools
missing_linux_example
Summary
The documentation demonstrates a Windows bias by consistently referencing Windows PowerShell as the default local shell for Azure CLI and PowerShell examples, using Windows file paths (e.g., C:\demo-file.txt), and omitting explicit Linux/macOS shell or file path examples. The instructions for running CLI commands locally mention Windows PowerShell but not Bash or other Unix shells, and there are no Linux-specific notes or parity in examples.
Recommendations
  • When referencing local command consoles for Azure CLI, mention Bash (Linux/macOS) alongside Windows PowerShell. For example: 'open a command console such as Bash or Windows PowerShell.'
  • Provide file path examples in both Windows (C:\demo-file.txt) and Linux/macOS (/home/user/demo-file.txt) formats for all relevant commands.
  • Add explicit notes or examples for running commands in Bash or other Unix shells, especially where quoting or path syntax may differ.
  • Avoid defaulting to Windows terminology (e.g., 'Windows PowerShell') when instructions are cross-platform; use neutral terms like 'command prompt' or 'terminal.'
  • Where possible, include screenshots or references to Linux/macOS environments in addition to Windows.
  • Audit for other subtle Windows-centric language or assumptions and revise for cross-platform inclusivity.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Biased Biased
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 Biased Biased
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

   Connect-AzAccount
   
   $context = Get-AzSubscription -SubscriptionId <subscription-id>
   Set-AzContext $context
   $storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
   $ctx = $storageAccount.Context   
   
   Connect-AzAccount
   
    $containerName = "myContainer"
    $file = "C:\demo-file.txt"

    Set-AzStorageBlobContent -File $file -Container $containerName -Context $ctx -Tag @{"tag1" = "value1"; "tag2" = "value2" }
    
   az storage blob upload --account-name mystorageaccount --container-name myContainer --name demo-file.txt --file C:\demo-file.txt --tags tag1=value1 tag2=value2 --auth-mode login
   
   $context = Get-AzSubscription -SubscriptionId <subscription-id>
   Set-AzContext $context
   $storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
   $ctx = $storageAccount.Context   
   
    $containerName = "myContainer"
    $blobName = "myBlob" 
    Get-AzStorageBlobTag -Context $ctx -Container $containerName -Blob $blobName
    
    $containerName = "myContainer"
    $blobName = "myBlob" 
    $tags = @{"tag1" = "value1"; "tag2" = "value2" }
    Set-AzStorageBlobTag -Context $ctx -Container $containerName -Blob $blobName -Tag $tags
    
   Connect-AzAccount
   
   $context = Get-AzSubscription -SubscriptionId <subscription-id>
   Set-AzContext $context
   $storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
   $ctx = $storageAccount.Context   
   
    $filterExpression = """tag1""='value1'"
    Get-AzStorageBlobByTag -TagFilterSqlExpression $filterExpression -Context $ctx
    
    $filterExpression = "@container='myContainer' AND ""tag1""='value1'"
    Get-AzStorageBlobByTag -TagFilterSqlExpression $filterExpression -Context $ctx
    
   az storage blob filter --account-name mystorageaccount --tag-filter """tag1""='value1' and ""tag2""='value2'" --auth-mode login
   
   az storage blob filter --account-name mystorageaccount --tag-filter """@container""='myContainer' and ""tag1""='value1' and ""tag2""='value2'" --auth-mode login