秘密名称不支持特殊字符

编程入门 行业动态 更新时间:2024-10-12 03:17:41
本文介绍了秘密名称不支持特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个要求,我需要将我的秘密名称存储为fname_lname.但是当我尝试使用下划线时,出现以下错误.为了暂时避免错误,我编写了一个实用程序,可将下划线转换为连字符,反之亦然.

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

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

推荐答案

似乎我们找不到关于不支持基本特殊字符的任何技术原因.同样在REST API 设置机密中,它只是提到的名字应该 像Regex pattern: ^[0-9a-zA-Z-]+$一样没有理由,应该是故意设计的.

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.

更多推荐

秘密名称不支持特殊字符

本文发布于:2023-10-24 20:58:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524987.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不支持   特殊字符   名称   秘密

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!