Azure / Azure/azure-cli

HSM Backup/Restore Storage Behavior

Open
#24,106 1 comment 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-identity-squad Auto-Assign Azure CLI Team customer-reported feature-request KeyVault
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.