Secret name is not supporting special character

杀马特。学长 韩版系。学妹 提交于 2020-04-30 10:13:44

问题


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-]+$'.


回答1:


It seems that we could not find any technical reason as to why the basic special characters are not supported. Also in the REST API Set Secret, it just mentioned the name should be like Regex pattern: ^[0-9a-zA-Z-]+$ without the reason, it should by designed.

There are also some user voices in the azure feedback: Secret Names do not support special characters, if you want to improve azure keyvault, you could vote it.



来源:https://stackoverflow.com/questions/53723706/secret-name-is-not-supporting-special-character

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!