简体   繁体   English

Azure Key Vault - 如何更新机密

[英]Azure Key Vault - How to update the secrets

In Azure Portal > Key vaults > Secrets, I have secrets with json values (I did not create it).在 Azure 门户 > 密钥保管库 > 秘密中,我有带有 json 值的秘密(我没有创建它)。 Something like:类似的东西:

... ...

"SubscriptionId": "XXXXXXX", "订阅 ID": "XXXXXXX",
"BaseAuthUri": " https://login.microsoftonline.com/XXXXX/oauth/authorize?client_id= "&api-version= "BaseAuthUri": " https://login.microsoftonline.com/XXXXX/oauth/authorize?client_id="&api-version=
... ...

  • I would like to add another url value to it.我想向它添加另一个 url 值。 How can I edit the secrets with Azure portal?如何使用 Azure 门户编辑机密?

    • How the value of api-version set? api-version 的值如何设置?

Thanks谢谢

You can only change secret attributes such as expiration date, activation date.您只能更改机密属性,例如到期日期、激活日期。 You cannot change secret's value programatically or via Azure Portal.不能以编程方式或通过 Azure 门户更改机密的值。 If you want to update your secret without creating a new vault (meaning the secret identifier still remains intact) you can create a new version of the existing secret.如果您想在不创建新保管库的情况下更新您的机密(意味着机密标识符仍然保持不变),您可以创建现有机密的新版本。

在此处输入图片说明

If the secret value contains the variables to get authorization code, you don't need api version because the URI you call is the authorization endpoint.如果 secret 值包含用于获取授权代码的变量,则不需要 api 版本,因为您调用的 URI 是授权端点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM