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 page demonstrates a strong Windows bias by providing only Windows PowerShell examples, referencing Windows-specific tools and environments (such as 'elevated Windows PowerShell session'), and omitting any Linux or cross-platform CLI examples. There is no mention of Azure CLI, Bash, or other Linux-compatible scripting approaches, and all sample outputs are from a Windows environment.
Recommendations:
  • Add equivalent instructions and examples using Azure CLI (az commands), which is cross-platform and works on Linux, macOS, and Windows.
  • Provide Bash script examples for blob tiering operations, especially for users on Linux or macOS.
  • Explicitly mention that Azure PowerShell can be used on Linux and macOS (via PowerShell Core), and provide any necessary adjustments for those platforms.
  • Include sample outputs from non-Windows environments to demonstrate parity.
  • Rephrase steps to avoid assuming a Windows environment (e.g., 'Open a terminal' instead of 'Open an elevated Windows PowerShell session').
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

Foreach ($blob in $blobs) { $blob.ICloudBlob.SetStandardBlobTier("Archive") }
$StorageAccountName = "<enter account name>" $StorageAccountKey = "<enter account key>" $ContainerName = "<enter container name>" $ctx = New-AzStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. PS C:\WINDOWS\system32> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 1 17763 134 PS C:\WINDOWS\system32> Login-AzAccount Account : gus@contoso.com SubscriptionName : MySubscription SubscriptionId : subscription-id TenantId : tenant-id Environment : AzureCloud PS C:\WINDOWS\system32> $StorageAccountName = "mygpv2storacct" PS C:\WINDOWS\system32> $StorageAccountKey = "mystorageacctkey" PS C:\WINDOWS\system32> $ContainerName = "test" PS C:\WINDOWS\system32> $ctx = New-AzStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $StorageAccountKey PS C:\WINDOWS\system32> $blobs = Get-AzStorageBlob -Container "test" -Context $ctx PS C:\WINDOWS\system32> Foreach ($blob in $blobs) { >> $blob.ICloudBlob.SetStandardBlobTier("Archive") >> } PS C:\WINDOWS\system32>