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
windows_first
powershell_heavy
windows_tools
Summary
The documentation demonstrates a moderate Windows bias. PowerShell examples and terminology are presented before Azure CLI/Bash equivalents throughout the page, and PowerShell-specific features (such as splatting) are explained in detail. Instructions for opening terminals reference PowerShell and Visual Studio Code, which are more commonly used on Windows. There is little explicit mention of Linux environments, and no Linux-specific tooling or patterns (such as native shell scripting, package managers, or alternative editors) are discussed.
Recommendations
  • Alternate the order of PowerShell and Azure CLI examples so that neither is always presented first; consider leading with Azure CLI/Bash in some sections.
  • Add explicit instructions for Linux users, such as using native terminals (e.g., GNOME Terminal, Konsole) and referencing common Linux shell environments.
  • Include notes on installing required tools (Azure CLI, Bicep, VS Code) on Linux distributions, with links to Linux-specific installation guides.
  • Mention alternative editors (e.g., Vim, nano) for users who may not use Visual Studio Code.
  • Avoid PowerShell-specific terminology (like 'splatting') without providing equivalent Bash/Linux shell explanations.
  • Clarify that all CLI commands are cross-platform and provide troubleshooting tips for Linux-specific issues (e.g., file permissions, case sensitivity).
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Clean Clean
2026-01-11 06:20 #98 completed Clean Clean
2026-01-10 00:00 #92 completed Biased Biased
2026-01-09 00:00 #87 cancelled Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets

Connect-AzAccount
New-AzResourceGroup -Name packageStorageGroup -Location westus

$pkgstorageparms = @{
  ResourceGroupName = "packageStorageGroup"
  Name = "<pkgstorageaccountname>"
  Location = "westus"
  SkuName = "Standard_LRS"
  Kind = "StorageV2"
  MinimumTlsVersion = "TLS1_2"
  AllowBlobPublicAccess = $true
  AllowSharedKeyAccess = $false
}

$pkgstorageaccount = New-AzStorageAccount @pkgstorageparms
Get-AzManagedApplicationDefinition -ResourceGroupName bicepDefinitionGroup
$pkgstoragecontext = New-AzStorageContext -StorageAccountName $pkgstorageaccount.StorageAccountName -UseConnectedAccount

New-AzStorageContainer -Name appcontainer -Context $pkgstoragecontext -Permission blob

$blobparms = @{
  File = "app.zip"
  Container = "appcontainer"
  Blob = "app.zip"
  Context = $pkgstoragecontext
}

Set-AzStorageBlobContent @blobparms
$packageuri=(Get-AzStorageBlob -Container appcontainer -Blob app.zip -Context $pkgstoragecontext).ICloudBlob.StorageUri.PrimaryUri.AbsoluteUri
$principalid=(Get-AzADGroup -DisplayName <managedAppDemo>).Id
$roleid=(Get-AzRoleDefinition -Name Owner).Id
New-AzResourceGroup -Name bicepDefinitionGroup -Location westus

$deployparms = @{
  ResourceGroupName = "bicepDefinitionGroup"
  TemplateFile = "deployDefinition.bicep"
  TemplateParameterFile = "deployDefinition-parameters.bicepparam"
  Name = "deployDefinition"
}

New-AzResourceGroupDeployment @deployparms
Remove-AzResourceGroup -Name packageStorageGroup

Remove-AzResourceGroup -Name bicepDefinitionGroup