-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HSM Backup/Restore Storage Behavior #24106
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamKeyVaultaz keyvaultaz keyvaultact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamKeyVaultaz keyvaultaz keyvaultact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Type
Fields
Give feedbackNo fields configured for issues without a type.
Related command
az keyvault backup start
az keyvault restore start
Describe the bug
I wasn't sure if this should be a bug or a feature. My request is to make the behavior between backup and restore more user friendly.
Currently when you call az keyvault backup start, it returns folderUrl that the backup will be stored in.
However, when you call az keyvault restore start, you can't just pass that URL to it in the --storage-resource-uri parameter, you have to separately pass the folder name in the --backup-folder parameter and strip the folder name from the URL if you are going to use --storage-resource-uri
Further, for az keyvault backup start, if you use --storage-resource-uri, you can't define the final path the backup is in. There are use cases where it would be nice to be able to control the folder name the backup ends up in instead of letting the HSM do it.