Created
November 19, 2019 19:22
-
-
Save yardbirdsax/231f72426d85e6b983ea76aa242885ee to your computer and use it in GitHub Desktop.
Removing an Azure Recovery Vault
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vault = Get-AzRecoveryServicesVault -ResourceGroupName euw-dbclus02 -Name euw-dbclus02-recoveryvault | |
$container = Get-AzRecoveryServicesBackupContainer -VaultId $vault.ID -ContainerType AzureVM | |
$PI = Get-AzRecoveryServicesBackupItem -Container $container -WorkloadType AzureVM -VaultId $vault.ID | |
Disable-AzRecoveryServicesBackupProtection -Item $PI -VaultId $vault.ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment