创建和处置秘密
如何从azure.security.keyvault.secrets
创建和处置SecretClient?我从keyVaultClient
迁移,似乎找不到太多的文档。
How do I create and dispose of SecretClient from Azure.Security.KeyVault.Secrets
? I'm migrating from KeyVaultClient
and can't seem to find much documentation on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据应用程序的用例,SecretClient提供 同步和异步 活动。您可以在初始化秘密级别后与Azure密钥保险库中的秘密进行交互。
创建秘密:
有关更多信息,请请参阅下面的链接 :
azure.security.keyvault.secrets
azure / azure-sdk-for-net
Depending on the use case of an application, a SecretClient offers both synchronous and asynchronous activities. You can interact with secrets in Azure Key Vault once a SecretClient has been initialised.
Creating secret :
StartDeleteSecret to delete a secret stored in the Azure Key Vault. When soft-delete is not enabled for the Azure Key Vault permanently disposes the secret.
For more information in detail, please refer below links:
Azure.Security.KeyVault.Secrets
Azure/azure-sdk-for-net
有一篇非常好的文章解释了Azure SDK的客户如何工作 - azure sdk .net客户端的寿命管理:
来自 azure键保管库秘密客户端库.net ,有关于如何使用新客户的许多示例:
There is a really good article explaining how Azure SDK's clients work - Lifetime management for Azure SDK .NET clients:
From Azure Key Vault secret client library for .NET, there are lots of samples on how to use the new clients: