azure - 是否可以通过 C# 在 Azure 中创建 key 保管库

标签 azure azure-keyvault

是否可以通过 C# 在 Azure 中创建 Key Vault?我可以通过 KeyVaultClient 操作 secret 和 key ,但我需要

A)。查看 key 保管库是否已存在并且 B)。如果 key 保管库不存在,则创建它。

最佳答案

是的,您可以使用 KeyVault 管理客户端列出 Azure 订阅中存在 Key Vault 的位置,并根据需要创建 KeyVault。有针对 Azure 资源管理器的这些操作的 C# SDK。

https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.keyvault.vaultsoperationsextensions?view=azure-dotnet

关于azure - 是否可以通过 C# 在 Azure 中创建 key 保管库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50860784/

相关文章:

Azure key 保管库创建错误 : VaultAlreadyExists - I can't find the existing vault

Azure Keyvault - "The operation "列表“在此 Key Vault 的访问策略中未启用。”以编程方式创建 KeyVault 时

c# - 在azure网站中将rdlc渲染为pdf

azure - 将应用程序洞察与 Power BI 集成时数据未更新

python - Azure 函数 - Python - ServiceBus 输出绑定(bind) - 设置自定义属性

asp.net-mvc - 列出与 AD 用户帐户关联的 key 保管库?

pki - 我可以从 Azure Key Vault 创建 CSR 吗?

azure - 在 Github Actions 中使用 Powershell 的输出

css - 从 Azure CDN 请求的字体文件被 CORS 策略阻止

Azure key 保管库。如何设置哪个 Web 应用程序使用哪个 Key Vault?