I have a requirement where I need to store my secret name as fname_lname. But when I tried with underscore I got following error. For time being to bypass the error I wrote a utility to convert from underscore to hyphen and vice versa.
Is there any reason why there is no support for basic special character like underscore?
az keyvault secret set --vault-name 'my-kv' -n 'fname_lname' -v 'myvalue'
parameter 'secret_name' must conform to the following pattern: '^[0-9a-zA-Z-]+$'.