Skip to content

Commit 2ef733d

Browse files
authored
Update backup-azure-restore-key-secret.md
Restore-AzureKeyVaultKey gives error. Correct command should be Restore-AzKeyVaultKey
1 parent 8692a50 commit 2ef733d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/backup/backup-azure-restore-key-secret.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Once the JSON file is generated in the destination path mentioned above, generat
5252
```powershell
5353
$keyDestination = 'C:\keyDetails.blob'
5454
[io.file]::WriteAllBytes($keyDestination, [System.Convert]::FromBase64String($encryptionObject.OsDiskKeyAndSecretDetails.KeyBackupData))
55-
Restore-AzureKeyVaultKey -VaultName '<target_key_vault_name>' -InputFile $keyDestination
55+
Restore-AzKeyVaultKey -VaultName '<target_key_vault_name>' -InputFile $keyDestination
5656
```
5757

5858
## Restore secret

0 commit comments

Comments
 (0)