Hello ,
We have one script wich is used to create a Recovery Service Vault using the below commands. Which warking properly.
$VaultToUse = New-AzRecoveryServicesVault -ResourceGroupName $rgName -Name $rsvName -Location $location
Set-AzRecoveryServicesBackupProperty -Vault $VaultToUse -BackupStorageRedundancy 'ZoneRedundant'
However, since last few days back the above commands failed with below error:-
Error:-
Set-AzRecoveryServicesBackupProperty : Cannot bind parameter 'BackupStorageRedundancy'. Cannot convert value "ZoneRedundant" to type
"Microsoft.Azure.Commands.RecoveryServices.AzureRmRecoveryServicesBackupStorageRedundancyType". Error: "Unable to match the identifier name ZoneRedundant to a valid
enumerator name. Specify one of the following enumerator names and try again:
GeoRedundant, LocallyRedundant"
At line:1 char:82
+ ... pProperty -Vault $VaultToUse -BackupStorageRedundancy 'ZoneRedundant'
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzRecoveryServicesBackupProperty], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.RecoveryServices.SetAzureRmRecoveryServicesBackupProperties
But again the same command works if we change the BackupStorageRedundancy 'GeoRedundant' but the same does not work for "ZoneRedundant".
Can someone please help to if we can set the property value to 'ZoneRedundant'.