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
windows_tools
missing_linux_example
Summary
The documentation provides extensive examples for Azure CLI and PowerShell, with PowerShell (a Windows-centric tool) featured as a primary automation method. There are no explicit Linux shell (bash) or cross-platform scripting examples, and PowerShell is presented as the only scripting alternative to the CLI. Windows-specific tools and terminology (e.g., drive letters, BitLocker) are mentioned before Linux equivalents, and Linux-specific instructions are limited to brief notes about required utilities (lsblk, lsscsi) rather than full examples. There are no bash or Linux-native command examples for configuring or managing selective disk backup, and the documentation assumes familiarity with Windows tools and patterns.
Recommendations
  • Add bash/Linux shell script examples for common operations (e.g., using Azure CLI in bash scripts, handling output with jq, etc.).
  • Provide Linux-native automation examples alongside PowerShell, such as bash scripts for configuring selective disk backup.
  • When discussing OS-specific requirements (e.g., BitLocker for Windows, dm-crypt for Linux), present Linux and Windows information in parallel rather than Windows-first.
  • Include troubleshooting steps and examples for common Linux distributions, not just notes about required utilities.
  • Clarify that PowerShell Core is cross-platform, but also provide bash alternatives for users who prefer native Linux tooling.
  • Ensure that all CLI examples are shown in a way that is copy-paste friendly for both Windows (cmd/PowerShell) and Linux (bash) environments.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-25 00:00 #165 completed Clean Clean
2026-01-24 00:00 #161 completed Clean Clean
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

Enable-AzRecoveryServicesBackupProtection -Policy $pol -Name "V2VM" -ResourceGroupName "RGName1"  -ExcludeAllDataDisks -VaultId $targetVault.ID
$disks = ("0","1")
$targetVault = Get-AzRecoveryServicesVault -ResourceGroupName "rg-p-recovery_vaults" -Name "rsv-p-servers"
Set-AzRecoveryServicesVaultContext -Vault $targetVault
Get-AzRecoveryServicesBackupProtectionPolicy
$pol = Get-AzRecoveryServicesBackupProtectionPolicy -Name "P-Servers"
Enable-AzRecoveryServicesBackupProtection -Policy $pol -Name "V2VM" -ResourceGroupName "RGName1"  -InclusionDisksList $disks -VaultId $targetVault.ID
Enable-AzRecoveryServicesBackupProtection -Policy $pol -Name "V2VM" -ResourceGroupName "RGName1"  -ExclusionDisksList $disks -VaultId $targetVault.ID
$item= Get-AzRecoveryServicesBackupItem -BackupManagementType "AzureVM" -WorkloadType "AzureVM" -VaultId $targetVault.ID -FriendlyName "V2VM"
Enable-AzRecoveryServicesBackupProtection -Item $item -InclusionDisksList[Strings] -VaultId $targetVault.ID  -Policy $pol
Enable-AzRecoveryServicesBackupProtection -Item $item  -ExcludeAllDataDisks -VaultId $targetVault.ID -Policy $pol
Enable-AzRecoveryServicesBackupProtection -Item $item -ResetExclusionSettings -VaultId $targetVault.ID -Policy $pol
$startDate = (Get-Date).AddDays(-7)
$endDate = Get-Date
$rp = Get-AzRecoveryServicesBackupRecoveryPoint -Item $item -StartDate $startdate.ToUniversalTime() -EndDate $enddate.ToUniversalTime() -VaultId $targetVault.ID
Restore-AzRecoveryServicesBackupItem -RecoveryPoint $rp[0] -StorageAccountName "DestAccount" -StorageAccountResourceGroupName "DestRG" -TargetResourceGroupName "DestRGforManagedDisks" -VaultId $targetVault.ID -RestoreDiskList [$disks]
Restore-AzRecoveryServicesBackupItem -RecoveryPoint $rp[0] -StorageAccountName "DestAccount" -StorageAccountResourceGroupName "DestRG" -TargetResourceGroupName "DestRGforManagedDisks" -VaultId $targetVault.ID -RestoreOnlyOSDisk