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:
⚠️
windows_first
⚠️
powershell_heavy
⚠️
missing_linux_example
Summary:
The documentation page, while focused on Azure CLI (which is cross-platform), demonstrates Windows bias in several ways. It references PowerShell objects and patterns before explaining CLI equivalents, uses Windows-style file paths (e.g., '.\OSSPolicy.json'), and does not provide Linux/macOS-specific examples or notes on differences (such as file path conventions or shell syntax). The guidance assumes a Windows environment for file manipulation and scripting, potentially confusing Linux users.
Recommendations:
- Provide both Windows (PowerShell/CMD) and Linux/macOS (Bash) command examples, especially for file paths and redirection.
- Replace or supplement Windows-style file paths (e.g., '.\OSSPolicy.json') with POSIX-style paths (e.g., './OSSPolicy.json') in CLI examples.
- Add notes or callouts explaining differences in file handling and command syntax between Windows and Linux/macOS shells.
- Avoid referencing PowerShell objects or behaviors unless specifically relevant, and clarify when instructions are Windows-specific.
- Explicitly state that Azure CLI is cross-platform and provide parity in examples and troubleshooting for all supported OSes.
Create pull request
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