删除 Azure 恢复服务保管库时收到错误

Receiving an Error when deleting an Azure Recovery Services Vault

我有一个用于本地 Windows 桌面的旧 Azure 恢复服务保管库,我在上述桌面退役后试图将其删除。 Azure 正在响应此错误消息:

Vault cannot be deleted as there are existing resources within the vault. Please ensure there are no backup items, protected servers or backup management servers associated with this vault. Unregister the following containers associated with this vault before proceeding for deletion : VAULT-NAME. Unregister all containers from the vault and then retry to delete vault

其中 VAULT-NAME 是我的保管库的名称。

我按照 中引用的步骤进行操作,但由于 WorkloadType 参数没有相应的 "Windows" 或 "WindowsServer" 选项,因此无法通过此步骤。

$item = Get-AzureRmRecoveryServicesBackupItem -Container $container -WorkloadType AzureSQLDatabase

跳过项目检索和禁用步骤,而是尝试注销容器并使用以下命令删除保管库是没有用的,因为仍然有与容器关联的备份。

Unregister-AzureRmRecoveryServicesBackupContainer -Container $container
Remove-AzureRmRecoveryServicesVault -Vault $vault

我没有将此答案映射到相应的 Azure 命令,但我能够通过 Azure 门户找到解决方案。步骤如下:

  1. 选择了我的恢复服务资源
  2. 管理部分下,单击备份基础设施
  3. 管理服务器下,单击受保护的服务器
  4. 在随后的列表中,单击我的 Protected Server Count 大于 0 的行,在我的例子中,Azure Backup Agent(因为备份代理安装在我的 Windows 桌面上)
  5. 受保护的服务器列表
  6. 中单击了我的服务器名称
  7. 在我的受保护服务器的卡片中单击删除

完成后,我可以删除整个保险库。如果您有其他备份基础结构资源,甚至可能有与保管库关联的 Site Recovery 基础结构资源,这些步骤可能会有所帮助。

更新:Get-AzureRmRecoveryServicesBackupItem 似乎有一个 open issue 没有任何容量 return MARS 备份项目,这最终是问题所在这是。