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
⚠️ missing_linux_example
⚠️ windows_first
Summary:
The documentation provides a PowerShell example for configuring snapshot retention but does not include equivalent instructions or examples for Linux users (e.g., using Azure CLI or REST API). The only command-line automation shown is via PowerShell, which is primarily a Windows tool. There is no mention of Linux-specific tools or parity in scripting approaches, and the PowerShell section appears before any mention of cross-platform methods.
Recommendations:
  • Add equivalent Azure CLI examples for configuring snapshot retention, as Azure CLI is cross-platform and widely used on Linux.
  • Include REST API instructions or examples for users who may automate backup configuration outside of PowerShell or the Azure portal.
  • Explicitly mention that PowerShell is available on Linux and macOS, or clarify when examples are cross-platform.
  • Ensure that all automation and scripting instructions are presented in a platform-neutral way, or provide both Windows (PowerShell) and Linux (Azure CLI/bash) examples side by side.
  • Consider adding a section or note for Linux administrators highlighting supported tools and recommended workflows.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-19 00:01 #85 completed ✅ Clean
2025-07-19 13:51 #54 completed ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

$bkpPol = Get-AzRecoveryServicesBackupProtectionPolicy -WorkloadType "AzureVM" $bkpPol.SnapshotRetentionInDays=5 Set-AzRecoveryServicesBackupProtectionPolicy -policy $bkpPol