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:
⚠️
windows_first
⚠️
powershell_heavy
⚠️
windows_tools
⚠️
missing_linux_example
Summary:
The documentation demonstrates a moderate Windows bias. PowerShell examples are provided extensively and in detail, and Windows-specific tools and terminology (e.g., BitLocker, C: drive, PowerShell cmdlets) are used throughout. While Linux is mentioned, Linux-specific instructions, examples, or command-line usage are minimal or absent. The documentation assumes familiarity with Windows paradigms and tools, and Linux considerations are often relegated to notes or limitations rather than being integrated into the main workflow.
Recommendations:
- Add explicit Linux command-line examples (e.g., bash scripts, Linux CLI usage) alongside PowerShell, especially for disk identification and management.
- Provide Linux-specific troubleshooting steps and error messages, similar to those given for Windows/PowerShell.
- When discussing OS-specific limitations or requirements (e.g., BitLocker for Windows, dm-crypt for Linux), present them in parallel and with equal detail.
- Include Linux-first or Linux-equal examples in all sections, not just as notes or afterthoughts.
- Clarify any differences in workflow or prerequisites for Linux VMs (e.g., how to install and use lsblk/lsscsi, how to identify LUNs on Linux, how to check backup status from the Linux VM).
- Balance the order of presentation: do not always mention Windows/PowerShell first; alternate or present both together.
- Where possible, provide sample outputs or screenshots from Linux VMs in the portal/UI sections.
Create pull request
Flagged Code Snippets
$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
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 -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