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
missing_linux_example
Summary
The documentation provides both Azure CLI and PowerShell examples for configuring selective disk backup and restore, but the PowerShell examples are inherently Windows-centric. There is a notable emphasis on Windows tools and patterns, such as referencing BitLocker for encryption and using PowerShell as a primary scripting interface. Linux-specific instructions are limited to brief notes (e.g., ensuring 'lsblk' and 'lsscsi' are available), and there are no Linux shell (bash) script examples or explicit Linux command-line walkthroughs. Windows terminology and tools (e.g., drive C:, BitLocker) are mentioned before or more prominently than their Linux equivalents.
Recommendations
  • Add explicit Linux (bash) command-line examples for common operations, such as using Azure CLI from a Linux shell.
  • Include Linux-specific scripting examples (e.g., bash scripts) alongside PowerShell examples.
  • When discussing encryption, mention Linux (dm-crypt) and Windows (BitLocker) equivalently and in parallel.
  • Ensure that Linux prerequisites and troubleshooting steps are as detailed as those for Windows (e.g., provide sample commands to install 'lsblk' and 'lsscsi' on various distributions).
  • Where possible, use neutral language (e.g., 'command line' instead of 'PowerShell') and avoid assuming Windows as the default environment.
  • Add screenshots or walkthroughs of the Azure portal experience for both Windows and Linux VMs, highlighting any differences.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2025-07-12 23:44 #41 cancelled Biased Biased
2025-07-12 00:58 #8 cancelled Clean Clean
2025-07-10 05:06 #7 processing Clean Clean

Flagged Code Snippets

Enable-AzRecoveryServicesBackupProtection -Policy $pol -Name "V2VM" -ResourceGroupName "RGName1"  -ExclusionDisksList $disks -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"  -ExcludeAllDataDisks -VaultId $targetVault.ID
$item= Get-AzRecoveryServicesBackupItem -BackupManagementType "AzureVM" -WorkloadType "AzureVM" -VaultId $targetVault.ID -FriendlyName "V2VM"
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