Microsoft Azure-保管箱删除错误 [英] Microsoft Azure- Vault deletion error

查看:48
本文介绍了Microsoft Azure-保管箱删除错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试删除保管库时,它给了我保险柜删除错误:无法删除保管库"sqldbvault",因为保管库中已有资源.请删除所有复制的项目,注册的服务器,Hyper-V站点(用于站点恢复),System Center VMM云的策略关联(用于站点恢复),然后删除该保管库.

When I tried to delete the vault it gives me Vault deletion error: Vault 'sqldbvault' cannot be deleted as there are existing resources within the vault. Please delete any replicated items, registered servers, Hyper-V sites (Used for Site Recovery), policy associations for System Center VMM clouds (Used for Site Recovery) and then delete the vault.

在复制的项目,注册的服务器,Hyper-V站点(用于站点恢复),System Center VMM云的策略关联中没有任何条目.但是我仍然得到错误.请帮忙.

There are no entries in replicated items, registered servers, Hyper-V sites (Used for Site Recovery), policy associations for System Center VMM clouds. However I still get the error. Please help.

推荐答案

也许是由于对该保管库应用了长期保留,并且尚未在门户网站上看到SQL备份(请注意,您已接受预览术语;-))检查此powershell脚本(感谢另一个论坛门户上的theLateWizard)

Maybe it's due Long Term Retention was applied over this vault, and SQL Backups aren't seen over portal yet (remenber you accepted preview terms ;-) ) Check this powershell script (thanks to theLateWizard on another forum portal)

Login-AzureRmAccount

Set-AzureRmContext -SubscriptionId <yoursubscriptionid>

$vault = Get-AzureRmRecoveryServicesVault -Name <vaultname>
Set-AzureRmRecoveryServicesVaultContext -Vault $vault

$containers = Get-AzureRmRecoveryServicesBackupContainer -ContainerType AzureSQL -FriendlyName $vault.Name
ForEach ($container in $containers) {
    $items = Get-AzureRmRecoveryServicesBackupItem -container $container -WorkloadType AzureSQLDatabase
    ForEach ($item in $items) {
        Disable-AzureRmRecoveryServicesBackupProtection -item $item -RemoveRecoveryPoints -ea SilentlyContinue
    }
    Unregister-AzureRmRecoveryServicesBackupContainer -Container $container
}
Remove-AzureRmRecoveryServicesVault -Vault $vault

这篇关于Microsoft Azure-保管箱删除错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆