保险柜设置丢失。 请导入Vault设置并validation相同

当我尝试获取Azure恢复计划时,我得到:

Get-AzureRmSiteRecoveryRecoveryPlan : Operation failed. ClientRequestId: Vault Settings are missing. Please import Vault Settings and verify the same At line:1 char:1 + Get-AzureRmSiteRecoveryRecoveryPlan -Name $name + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureRmSiteRecoveryRecoveryPlan], Exception + FullyQualifiedErrorId : Microsoft.Azure.Commands.SiteRecovery.GetAzureRmSiteRecoveryRecoveryPlan 

我的脚本的其余部分是:

 $AzureSubscriptionName = "SubscriptionName" $vPath = "C:\Path\" $login = Login-AzureRmAccount $Subcription = Get-AzureRmSubscription –SubscriptionName $AzureSubscriptionName | Select-AzureRmSubscription $vault = Get-AzureRmRecoveryServicesVault -Name Name -ResourceGroupName rgName $vFile = Get-AzureRmRecoveryServicesVaultSettingsFile -Vault $vault -Path $vPath Get-AzureRmSiteRecoveryRecoveryPlan -Name Test3CloudASR 

根据错误日志,似乎恢复计划名称是不正确的。 我在我的实验室里testing 如果我使用错误的名字,我会得到同样的错误。 你最好检查恢复计划的名称。

有关恢复计划的更多信息,请参阅此链接 。