Unable to return properties of Azure Recovery Vault returns empty values

Hi

I’m tryin to get the backup properties of an Azure REcoery Vault. Get-AzRecoveryServicesVaultProperty seems to be the right command but the StorageModelType always comes back blank

Any Ideas?

Alex

I installed the latest version of the Az module and repeated the same steps as you. I get the same result.

Further, when I’m just on Azure looking through the management panes I’m not sure I’m finding anything that looks like “StorageModelType” anywhere. It could be that this is a deprecated property? I also can’t find any documentation about the output object type for this cmdlet.

Hi,

thanks for the reply. These are the values I expected this property to supply, basically whether the Recovery vault is set up for GRS or LRS storage.

Gotcha. I explored a little more and looked at the original RecoveryServicesVault object before we ran the Vault Services Property cmdlet and found that data as a property there:

$vault = Get-AzRecoveryServicesVault -ResourceGroupName "resourceGroup" -Name "vaultName"
$vault.Properties.RedundancySettings

Yep, that works. Thnaks :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.