Hi,
Your PowerShell references -Vault $status. If $status if your Vault ID then you need to change this to -VaultID $status. You are missing the ID off the end of VaultID.
That should fix the identifier issue.
Thanks,
Matt
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have followed the Microsoft tech docs below but the command throws out an error:
Tech Docs:
Error:
Powershell
Set-AzRecoveryServicesVaultProperty : Invalid format of the resource identifier.
Parameter name: idFromServer
At line:1 char:1
I am not sure what the correct 'Identifier' is. According to the docs, it should be the vaultID but that does not work. I have also tried the vault name but that also throws back the same error.
I have also tried running the command on it's own in a single subscription with 1 ASR. The only paramerer requested is the Disable/Enable but when I type DIsable, it throws the following:
Powershell
PS C:\Users\CloudKid> Set-AzRecoveryServicesVaultProperty
cmdlet Set-AzRecoveryServicesVaultProperty at command pipeline position 1
Supply values for the following parameters:
SoftDeleteFeatureState: disable
Set-AzRecoveryServicesVaultProperty : One or more errors occurred.
At line:1 char:1
Hi,
Your PowerShell references -Vault $status. If $status if your Vault ID then you need to change this to -VaultID $status. You are missing the ID off the end of VaultID.
That should fix the identifier issue.
Thanks,
Matt
PS /home/CloudKid> $myVault = Get-AzRecoveryServicesVault -Name Vault773 -ResourceGroupName TestRG
PS /home/CloudKid> $myVault.Id
/subscriptions/9c75e489-54ef-4e72-99a4-e87860041a2c/resourceGroups/TestRG/providers/Microsoft.RecoveryServices/vaults/vault773