Lorsque j'essaie d'obtenir le plan de récupération Azure, j'obtiens :
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
le reste de mon script est :
$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 TestASR