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 exclusively providing instructions and examples using Windows PowerShell, including explicit references to 'elevated Windows PowerShell session' and Windows-specific output. No Linux or cross-platform CLI examples (such as Azure CLI, Bash, or Python) are provided, and the workflow assumes the user is on a Windows system with PowerShell 5.0 or higher.
Recommendations:
  • Add equivalent examples using Azure CLI (az storage blob update) that work on Linux, macOS, and Windows.
  • Provide Bash and/or Python script examples for blob tiering to support non-Windows environments.
  • Avoid language such as 'Open an elevated Windows PowerShell session'; instead, use neutral phrasing or provide parallel instructions for Linux/macOS terminals.
  • Include a section or callout for Linux/macOS users, clarifying how to perform the same operations using cross-platform tools.
  • Where possible, present cross-platform tools (e.g., Azure CLI) before or alongside Windows-specific tools like PowerShell.
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

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>