无法使用PowerShell删除保险柜 [英] Can't delete a Vault using PowerShell

查看:83
本文介绍了无法使用PowerShell删除保险柜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用AzurePowerShell删除保管库,但我认为我做错了事,或者从Azure门户中删除时做错了事.

I'm trying to delete my vault using AzurePowerShell but I think I'm doing something wrong or I did something wrong when I remove from Azure portal.

我使用以下命令:

.$ vault   -名称 

1.$vault= Get-AzureRmRecoveryServicesVault -Name "TestAspira"

< span style =" border:0px; font-weight:inherit; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px; color:navy>-Vault  

2.Set-AzureRmRecoveryServicesVaultContext -Vault $Vault

< span style =" border:0px; font-weight:inherit; font-style:inherit; font-family:inherit; margin:0px; outline:0px; padding:0px; color:navy>-ContainerType   BackupManagementType  

3.Get-AzureRmRecoveryServicesBackupContainer -ContainerType AzureVM -BackupManagementType AzureVM 

但是我在第二步中遇到了这个错误.

But I got this error with the second step.

Set-AzureRmRecoveryServicesVaultContext -Vault $ vault
Set-AzureRmRecoveryServicesVaultContext:无法验证参数"Vault"上的参数.参数为null或
空的.提供一个不为null或为空的参数,然后重试该命令.
在第1行:char:48
+ Set-AzureRmRecoveryServicesVaultContext -Vault $ vault
+                                                ~~~~~~
    + CategoryInfo          :InvalidData:(:) [Set-AzureRmRecoveryServicesVaultContext],ParameterBindingValidationEx
   接待
    + FullyQualifiedErrorId:ParameterArgumentValidationError,Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlet
    s.SetAzureRmRecoveryServicesVaultContext

有人遇到相同的错误吗?

Set-AzureRmRecoveryServicesVaultContext -Vault $vault
Set-AzureRmRecoveryServicesVaultContext : Cannot validate argument on parameter 'Vault'. The argument is null or
empty. Provide an argument that is not null or empty, and then try the command again.
At line:1 char:48
+ Set-AzureRmRecoveryServicesVaultContext -Vault $vault
+                                                ~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-AzureRmRecoveryServicesVaultContext], ParameterBindingValidationEx
   ception
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlet
   s.SetAzureRmRecoveryServicesVaultContext

Someone got the same error?

我现在需要做什么?

谢谢.

卫斯理

推荐答案

如果如果您要删除恢复服务库,则可以参考以下文档链接.这可以帮助您删除恢复服务库.看看是否有帮助.

参考:-     使用 Azure门户.

Ref:-   Delete recovery services vault using PowerShell or Azure portal.

注意:-

Note: -

您可以使用PowerShell强制删除Recovery Services保管库.通过强制手段,Recovery Services保管库以及所有相关的备份数据将被永久删除.

--------------- -------------------------------------------------- ------------------------------

如果此答案有帮助,请单击标记为答案"或投票.要提供有关您的论坛体验的其他反馈,请单击

If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click here.


这篇关于无法使用PowerShell删除保险柜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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