Azure Key Vault - 如何更新 secret

标签 azure azure-keyvault

在 Azure 门户 > key 保管库 > secret 中,我有带有 json 值的 secret (我没有创建它)。像这样的东西:

...

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

  • 我想向其中添加另一个 url 值。我怎样才能编辑 Azure 门户的 secret ?

    • api-version 的值如何设置?

谢谢

最佳答案

您只能更改 secret 属性,例如到期日期、激活日期。您无法以编程方式或通过 Azure 门户更改 key 的值。如果您想更新您的 key 而不创建新的保管库(意味着 key 标识符仍然保持不变),您可以创建现有 key 的新版本。

enter image description here

如果 secret 值包含获取授权代码的变量,则不需要 api 版本,因为您调用的 URI 是授权端点。

关于Azure Key Vault - 如何更新 secret ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48907912/

相关文章:

azure - Azure key 保管库中使用的 TLS 版本

c# - Azure Key Vault - 编程创建

azure - 使用 API 在 Azure Key Vault 中创建 key

c# - 将存档的 blob 复制到在线层

Azure Artifacts 对于某些公共(public) npm 包返回 404

azure - 将 Docker 容器连接到与 Azure Pipelines 中当前容器相同的网络

reactjs - Azure 网站中的 React App 缓存问题,浏览器提供旧版本

azure - 获取在 Azure Key Vault key 中上传的 pem 文件

azure - 如何告诉 terraform 它应该尝试删除软删除的 azure keyvault key (如果存在)?

azure - dockerfile 中的蓝铜 Blob 存储