I am wanting to do a back up of one key vault and restore it to another. But, as far as I can tell, this API that is well documented, doesn't really exist. There is the Backup-AzureKeyVaultSecret as well as Backup of other KeyVault items, and they simply don't seem to exist anywhere. I like the idea - it can only be restored to that subscription - and I need to duplicate a key vault. (There should be a Backup-AzureKeyVault but I can't find any docs on that)
I've tried running it powershell - where I can run commands to get or set keys, certs etc and all the other commands work.
I tried running it from the portal's command window and it doesn't run there either.
I tried upgrading the Module: AzureRM.KeyVault - but it says it wasn't installed using the same tool that I was trying to upgrade it with, so it failed.
I just installed the tools, including powershell within the last month, so unless this came out in the last month I'd think that it would just work.
Thanks.
Update: I typed the command by hand to avoid any 'special chars' in the command, then I retyped it to make sure the case was exactly the same?
What am I missing?
Update 2: I listed all the commands using 'get-command' stored it in a file, and 'grep'ed it for AzureRM.KeyVault and this is the output (I can backup/restore Keys but not Certs or Secrets??):
Cmdlet Add-AzureKeyVaultCertificate 2.1.0 AzureRM.KeyVault
Cmdlet Add-AzureKeyVaultCertificateContact 2.1.0 AzureRM.KeyVault
Cmdlet Add-AzureKeyVaultKey 2.1.0 AzureRM.KeyVault
Cmdlet Backup-AzureKeyVaultKey 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultCertificate 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultCertificateContact 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultCertificateIssuer 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultCertificateOperation 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultCertificatePolicy 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultKey 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureKeyVaultSecret 2.1.0 AzureRM.KeyVault
Cmdlet Get-AzureRmKeyVault 2.1.0 AzureRM.KeyVault
Cmdlet Import-AzureKeyVaultCertificate 2.1.0 AzureRM.KeyVault
Cmdlet New-AzureKeyVaultCertificateAdministratorDetails 2.1.0 AzureRM.KeyVault
Cmdlet New-AzureKeyVaultCertificateOrganizationDetails 2.1.0 AzureRM.KeyVault
Cmdlet New-AzureKeyVaultCertificatePolicy 2.1.0 AzureRM.KeyVault
Cmdlet New-AzureRmKeyVault 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureKeyVaultCertificate 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureKeyVaultCertificateContact 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureKeyVaultCertificateIssuer 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureKeyVaultCertificateOperation 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureKeyVaultKey 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureKeyVaultSecret 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureRmKeyVault 2.1.0 AzureRM.KeyVault
Cmdlet Remove-AzureRmKeyVaultAccessPolicy 2.1.0 AzureRM.KeyVault
Cmdlet Restore-AzureKeyVaultKey 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureKeyVaultCertificateAttribute 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureKeyVaultCertificateIssuer 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureKeyVaultCertificatePolicy 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureKeyVaultKeyAttribute 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureKeyVaultSecret 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureKeyVaultSecretAttribute 2.1.0 AzureRM.KeyVault
Cmdlet Set-AzureRmKeyVaultAccessPolicy 2.1.0 AzureRM.KeyVault
Cmdlet Stop-AzureKeyVaultCertificateOperation 2.1.0 AzureRM.KeyVault
Get-Module AzureRM.KeyVault -ListAvailable
what does it return? And is Backup-* one of the exported cmds? – bmoore-msft