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
⚠️
windows_first
⚠️
windows_tools
Summary:
The documentation demonstrates a Windows bias by prioritizing PowerShell-based (Windows-centric) instructions and tools. PowerShell is presented as the primary scripting interface, with detailed, step-by-step examples and explanations. The CLI section is present but less detailed and is positioned after the PowerShell section. There is no mention of Linux-native tools, shell scripting, or Linux-specific considerations, and the CLI examples do not reference Linux explicitly. The documentation assumes familiarity with Windows/PowerShell paradigms and does not provide parity for Linux users.
Recommendations:
- Add explicit Linux shell/bash scripting examples alongside PowerShell, especially for automation scenarios.
- Clarify that Azure CLI commands are cross-platform and provide Linux-specific usage notes (e.g., shell syntax, environment variables, file paths).
- Include Linux-native troubleshooting tips or references (e.g., common issues with az CLI on Linux, package dependencies, permissions).
- Balance the order of presentation: alternate or parallelize PowerShell and CLI/Linux instructions, or provide a clear navigation structure for both audiences.
- Mention and link to Linux installation and environment setup guides for Azure CLI and related tools.
- Where screenshots or UI references are given, note any differences in experience for Linux users (if applicable).
Create pull request
Flagged Code Snippets
$rp = Get-AzRecoveryServicesBackupRecoveryPoint -VaultId $vault.ID -Item $bckItm -StartDate $startdate.ToUniversalTime() -EndDate $enddate.ToUniversalTime() -IsReadyForMove $true -TargetTier VaultArchive
Restore-AzRecoveryServicesBackupItem -VaultLocation $vault.Location -RehydratePriority "Standard" -RehydrateDuration 15 -RecoveryPoint $rp -StorageAccountName "SampleSA" -StorageAccountResourceGroupName "SArgName" -TargetResourceGroupName $vault.ResourceGroupName -VaultId $vault.ID
$bckItm = $BackupItemList | Where-Object {$_.Name -match '<vmName>'}
$pol = Get-AzRecoveryServicesBackupProtectionPolicy -VaultId $vault.ID | Where { $_.Name -match "Archive" }
Set-AzContext -Subscription "SubscriptionName"
$BackupItemList = Get-AzRecoveryServicesBackupItem -vaultId $vault.ID -BackupManagementType "AzureVM" -WorkloadType "AzureVM"
$rp = Get-AzRecoveryServicesBackupRecoveryPoint -VaultId $vault.ID -Item $bckItm -StartDate $startdate.ToUniversalTime() -EndDate $enddate.ToUniversalTime() -IsReadyForMove $false -TargetTier VaultArchive
$rp[0].RecoveryPointMoveReadinessInfo["ArchivedRP"]
New-AzRecoveryServicesBackupProtectionPolicy: TierAfterDuration needs to be >= 3 months, at least one of monthly or yearly retention should be >= (TierAfterDuration + 6) months