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
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 ID Status Bias Status
2025-08-19 00:01 #85 completed ✅ Clean
2025-07-13 21:37 #48 completed ✅ Clean
2025-07-12 23:44 #41 in_progress ❌ 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,