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
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 Status Result
2026-01-14 00:00 #250 in_progress Clean Clean
2026-01-13 00:00 #246 completed Clean Clean
2026-01-11 00:00 #240 completed Clean Clean
2026-01-10 00:00 #237 completed Clean Clean
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-08-07 00:00 #73 completed Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

$account.KeyPolicy
$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
}