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 page, while focused on Azure CLI (which is cross-platform), exhibits Windows bias in several ways. It references PowerShell and Windows object manipulation patterns first and in detail, and uses Windows-style file paths (e.g., '.\OSSPolicy.json') in CLI examples. The explanation of modifying policy templates emphasizes PowerShell object usage before discussing the CLI/file-based approach, and does not provide explicit Linux/Unix shell equivalents or path examples. There are no Linux-specific examples or notes about running the CLI commands on Linux or macOS.
Recommendations
  • Provide Linux/Unix shell command examples alongside or instead of Windows-style examples, especially for file paths (e.g., use './OSSPolicy.json' instead of '.\OSSPolicy.json').
  • When discussing object manipulation, avoid assuming PowerShell as the default and clarify that Linux/macOS users should use file-based approaches.
  • Explicitly mention that Azure CLI is cross-platform and can be used on Windows, Linux, and macOS, and provide notes or tips for users on different platforms.
  • If referencing PowerShell, also reference Bash or other common Linux shells where appropriate, or provide links to equivalent guidance.
  • Consider reordering explanations to avoid presenting Windows/PowerShell approaches first, or clearly separate platform-specific guidance.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-22 00:00 #153 completed Biased Biased
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Biased Biased
2026-01-10 00:00 #92 completed 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

az dataprotection backup-policy retention-rule create-lifecycle --retention-duration-count 6 --retention-duration-type Months --source-datastore VaultStore > VaultLifeCycle.JSON

az dataprotection backup-policy retention-rule set --lifecycles .\VaultLifeCycle.JSON --name Monthly --policy .\EditedOSSPolicy.json > AddedRetentionRulePolicy.JSON

az dataprotection backup-policy trigger create-schedule --interval-type Weekly --interval-count 1 --schedule-days 2021-08-15T22:00:00 2021-08-18T22:00:00 2021-08-20T22:00:00
[
  "R/2021-08-15T22:00:00+00:00/P1W",
  "R/2021-08-18T22:00:00+00:00/P1W",
  "R/2021-08-20T22:00:00+00:00/P1W"
]

az dataprotection backup-policy trigger set --policy .\OSSPolicy.json  --schedule R/2021-08-15T22:00:00+00:00/P1W R/2021-08-18T22:00:00+00:00/P1W R/2021-08-20T22:00:00+00:00/P1W > EditedOSSPolicy.json

az dataprotection backup-policy tag create-absolute-criteria --absolute-criteria FirstOfMonth > tagCriteria.JSON
az dataprotection backup-policy tag set --criteria .\tagCriteria.JSON --name Monthly --policy .\AddedRetentionRulePolicy.JSON > AddedRetentionRuleAndTag.JSON

az dataprotection backup-policy tag create-generic-criteria --days-of-week Sunday Friday > tagCriteria.JSON
az dataprotection backup-policy tag set --criteria .\tagCriteria.JSON --name Monthly --policy .\AddedRetentionRulePolicy.JSON > AddedRetentionRuleAndTag.JSON