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
⚠️
missing_linux_example
Summary:
The documentation provides detailed instructions for managing soft delete of VM backups via the Azure Portal and Azure PowerShell, but does not mention or provide examples for Linux command-line tools (such as Azure CLI) or shell scripting. PowerShell is emphasized as the only scripting/automation interface, which is more familiar to Windows users. There are no Linux-specific examples or guidance, and the documentation does not mention parity with Linux tools.
Recommendations:
- Add equivalent Azure CLI (az) command examples for all PowerShell operations, as Azure CLI is cross-platform and widely used on Linux.
- Explicitly mention that all operations can be performed from Linux environments using Azure CLI or REST API, and provide links or examples.
- Where scripting is shown, offer both PowerShell and Bash/Azure CLI snippets side by side.
- Review screenshots and UI instructions to ensure they are not Windows-centric (e.g., avoid referencing right-click if not applicable on all platforms).
- Include a section or note on automation from Linux/macOS environments, referencing relevant tools and documentation.
Create pull request
Flagged Code Snippets
Disable-AzRecoveryServicesBackupProtection -Item $myBkpItem -RemoveRecoveryPoints -VaultId $myVaultID -Force
WorkloadName Operation Status StartTime EndTime JobID
------------ --------- ------ --------- ------- -----
AppVM1 DeleteBackupData Completed 12/5/2019 12:44:15 PM 12/5/2019 12:44:50 PM 0488c3c2-accc-4a91-a1e0-fba09a67d2fb
Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultId $myVaultID | Where-Object {$_.DeleteState -eq "ToBeDeleted"}
Name ContainerType ContainerUniqueName WorkloadType ProtectionStatus HealthStatus DeleteState
---- ------------- ------------------- ------------ ---------------- ------------ -----------
VM;iaasvmcontainerv2;selfhostrg;AppVM1 AzureVM iaasvmcontainerv2;selfhostrg;AppVM1 AzureVM Healthy Passed ToBeDeleted
$myBkpItem = Get-AzRecoveryServicesBackupItem -BackupManagementType AzureVM -WorkloadType AzureVM -VaultId $myVaultID -Name AppVM1
Undo-AzRecoveryServicesBackupItemDeletion -Item $myBKpItem -VaultId $myVaultID -Force
WorkloadName Operation Status StartTime EndTime JobID
------------ --------- ------ --------- ------- -----
AppVM1 Undelete Completed 12/5/2019 12:47:28 PM 12/5/2019 12:47:40 PM 65311982-3755-46b5-8e53-c82ea4f0d2a2