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
Summary
The documentation provides detailed PowerShell (Windows-centric) instructions and examples before CLI (cross-platform) equivalents. The PowerShell section is significantly more comprehensive, with step-by-step breakdowns and explanations, while the CLI section is more concise and lacks equivalent depth. There are no Linux-specific examples or references, and the documentation implicitly assumes familiarity with PowerShell and Windows tools.
Recommendations
  • Provide equally detailed Azure CLI examples and explanations for all steps, matching the depth of the PowerShell section.
  • Explicitly mention that Azure CLI commands are cross-platform and can be used on Linux, macOS, and Windows.
  • Add Bash shell usage examples where appropriate, especially for scripting or automation scenarios.
  • Ensure that screenshots and UI references do not assume a Windows environment (e.g., avoid showing only Windows-style file paths or interfaces).
  • Include a note or section for Linux users, highlighting any differences or considerations when using CLI or REST API.
  • If PowerShell is required, clarify that PowerShell Core is available cross-platform and provide installation links for Linux/macOS.
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

$SchPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -PolicySubType "Enhanced" -WorkloadType "AzureVM" -ScheduleRunFrequency “Hourly”  
$schedulePolicy = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType AzureVM -BackupManagementType AzureVM -PolicySubType Enhanced -ScheduleRunFrequency Hourly
$timeZone = Get-TimeZone -ListAvailable | Where-Object { $_.Id -match "India" }
$schedulePolicy.ScheduleRunTimeZone = $timeZone.Id
$windowStartTime = (Get-Date -Date "2022-04-14T08:00:00.00+00:00").ToUniversalTime()
$schPol.HourlySchedule.WindowStartTime = $windowStartTime
$schedulePolicy.HourlySchedule.ScheduleInterval = 4
$schedulePolicy.HourlySchedule.ScheduleWindowDuration = 23

Get-AzRecoveryServicesBackupRetentionPolicyObject -WorkloadType AzureVM -ScheduleRunFrequency "Hourly" 
$RetPol.DailySchedule.DurationCountInDays = 365

AzRecoveryServicesBackupProtectionPolicy
New-AzRecoveryServicesBackupProtectionPolicy -Name "NewPolicy" -WorkloadType AzureVM -RetentionPolicy $RetPol -SchedulePolicy $SchPol

$bkpPol = Get-AzRecoveryServicesBackupProtectionPolicy -Name "NewPolicy"
$bkpPol.SnapshotRetentionInDays=10
Set-AzRecoveryServicesBackupProtectionPolicy -policy $bkpPol -VaultId <VaultId>

Get-AzRecoveryServicesBackupProtectionPolicy -PolicySubType "Enhanced"

$targetVault = Get-AzRecoveryServicesVault -ResourceGroupName "Contoso-docs-rg" -Name "testvault"
$pol = Get-AzRecoveryServicesBackupProtectionPolicy -Name "NewPolicy" -VaultId $targetVault.ID
Enable-AzRecoveryServicesBackupProtection -Policy $pol -Name "V2VM" -ResourceGroupName "RGName1" -VaultId $targetVault.ID