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
missing_linux_example
Summary
The documentation provides detailed examples for the Azure Portal, PowerShell, and Azure CLI. However, the scripting examples are heavily PowerShell-centric, with PowerShell always presented before Azure CLI. There are no explicit Linux/bash shell examples, and the CLI examples use Windows-style variable assignment and quoting, which may not work as expected in Linux shells. There is no mention of Linux-specific tools, shell syntax, or guidance for non-Windows users.
Recommendations
  • Provide explicit bash/Linux shell examples for Azure CLI, using appropriate variable assignment and quoting (e.g., conditionclause="[[endsWith(Name,'.docx')]]").
  • Add a section or note clarifying differences in CLI usage between Windows (cmd/PowerShell) and Linux/macOS (bash/zsh), especially regarding quoting and environment variable syntax.
  • Present Azure CLI examples before or alongside PowerShell examples to avoid the impression of Windows-first bias.
  • Where possible, include references to Linux-native tools or scripting environments, or at least acknowledge their use.
  • Ensure screenshots and instructions are not exclusively tailored to Windows environments.
GitHub Create Pull Request

Scan History

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

Flagged Code Snippets

   $operation = $policyoperation,$tagoperation
   
$conditions = "[[endsWith(Name, '.docx')]]"
$conditions = "[[and(endsWith(Name, '.docx'), equals(utcNow, dateTimeAdd(Creation-Time, Tags.Value[retainFor])))]]"
$conditions = "[[and(endsWith(Name, '.log'), equals(Tags.Value[Archive-Status], 'Ready'))]]"
$conditions = "[[and(equals(Tags.Value[Archive-Status], 'Ready'), endsWith(Name, '.log'))]]"
$conditions = "[[and(endsWith(Name,'/.log'/),or(equals(Tags.Value[Archive-Status],'/Ready'/),less(utcNow,dateTimeAdd(LastAccessTime,'/P120D'/))))]]"
   $policyoperation = New-AzStorageActionTaskOperationObject `
   -Name SetBlobImmutabilityPolicy `
   -Parameter @{"untilDate" = (Get-Date).AddDays(1); "mode" = "locked"} `
   -OnFailure break `
   -OnSuccess continue

   
    $tagoperation = New-AzStorageActionTaskOperationObject -Name SetBlobTags `
    -Parameter @{"tagsetImmutabilityUpdatedBy"="StorageTaskQuickstart"} `
    -OnFailure break `
    -OnSuccess continue
   
   $operation = $tagoperation,$policyoperation,