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
⚠️ windows_first
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation demonstrates a Windows bias by providing detailed PowerShell instructions (which are Windows-centric), referencing 'Open a Windows PowerShell command window', and using Windows-style file paths (e.g., 'C:\Logs\Storage') in examples. There are no equivalent CLI or Bash/Linux shell examples, nor are cross-platform tools like Azure CLI or Bash scripts presented alongside PowerShell. The documentation also refers to tools and workflows (like PowerShell and Windows file paths) that are specific to Windows environments, without mentioning or providing parity for Linux or macOS users.
Recommendations:
  • Add Azure CLI examples for all operations currently shown only in PowerShell, as Azure CLI is cross-platform and widely used on Linux/macOS.
  • Replace or supplement Windows file paths (e.g., 'C:\Logs\Storage') with POSIX-style paths (e.g., '/home/user/Logs/Storage') or note both formats.
  • Explicitly mention that PowerShell Core is cross-platform, and provide guidance for running scripts on Linux/macOS if PowerShell is retained.
  • Include Bash or shell script examples where appropriate, especially for automation tasks.
  • Ensure that references to 'open a Windows PowerShell command window' are generalized to 'open a terminal' or provide OS-specific instructions.
  • Highlight cross-platform tools (like AzCopy and Azure Storage Explorer) and provide usage notes for Linux/macOS where relevant.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-19 00:01 #85 completed ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-12 23:44 #41 in_progress ❌ Biased

Flagged Code Snippets

$storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>" $ctx = $storageAccount.Context
Set-AzStorageServiceLoggingProperty -ServiceType Queue -LoggingOperations read,write,delete -RetentionDays 5 -Context $ctx
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
Get-AzStorageServiceLoggingProperty -ServiceType Blob, Queue -Context $ctx
Set-AzStorageServiceLoggingProperty -ServiceType Blob, Queue -RetentionDays 4 -Context $ctx
azcopy copy 'https://mystorageaccount.blob.core.windows.net/$logs/queue' 'C:\Logs\Storage' --include-path '2014/05/20/09;2014/05/20/10;2014/05/20/11' --recursive
Connect-AzAccount
$context = Get-AzSubscription -SubscriptionId <subscription-id> Set-AzContext $context
Set-AzStorageServiceLoggingProperty -ServiceType Table -LoggingOperations none -Context $ctx