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
Summary:
The documentation provides examples for managing Azure Storage account access keys using the Azure portal, PowerShell, and Azure CLI. PowerShell examples are given equal prominence to Azure CLI, and in some cases, PowerShell is listed before Azure CLI. This ordering and the presence of detailed PowerShell scripts reflect a mild Windows bias, as PowerShell is primarily a Windows-centric tool (though it is now cross-platform). There are no explicit Linux shell (bash) or scripting examples outside of Azure CLI, and no mention of Linux-specific tools or workflows. The documentation does not provide any examples using native Linux utilities or shell scripting outside of Azure CLI, nor does it mention Linux as a platform in the narrative.
Recommendations:
  • Ensure that Azure CLI examples are always presented before or alongside PowerShell examples, as Azure CLI is cross-platform and more familiar to Linux users.
  • Add explicit bash or shell script examples where appropriate, especially for common automation scenarios.
  • Clarify in the introduction that PowerShell examples are also available on Linux and macOS, or provide a note about PowerShell Core's cross-platform support.
  • Where possible, include references to Linux-native tools or workflows, or at least acknowledge their absence.
  • Consider adding a 'Linux' or 'macOS' tab for scenarios where platform-specific steps or considerations exist.
GitHub Create pull request

Scan History

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

Flagged Code Snippets

$storageAccountKey = ` (Get-AzStorageAccountKey -ResourceGroupName <resource-group> ` -Name <storage-account>).Value[0]
New-AzStorageAccountKey -ResourceGroupName <resource-group> ` -Name <storage-account> ` -KeyName key1
$rgName = "<resource-group>" $accountName = "<account-name>" $account = Get-AzStorageAccount -ResourceGroupName $rgName -Name $accountName # Check whether the KeyCreationTime property has a value for each key # before creating the key expiration policy. if ($account.KeyCreationTime.Key1 -eq $null -or $account.KeyCreationTime.Key2 -eq $null) { Write-Host("You must regenerate both keys at least once before setting expiration policy") } else { $account = Set-AzStorageAccount -ResourceGroupName $rgName -Name ` $accountName -KeyExpirationPeriodInDay 60 }
$account.KeyPolicy