最近,我发现我们可以使用VisualStudioCredential使用 Azure Key Vault 进行身份验证。请参阅this GitHub 页面。
我正在尝试从源代码中删除客户端 ID、客户端密码、租户 ID 等信用信息。我目前需要这些来实例化 Microsoft.Azure.Management.ResourceManager.Fluent
NuGet 包中的 AzureCredentials
。
是否可以将 VisualStudioCredential
用于 StorageManagementClient
和 EventGridManagementClient
?
最佳答案
您可以使用Microsoft.Azure.Management.EventGrid对于 EventGridManagementClient
。此软件包有较新的预发布版本可用。
您还可以查看此 github重现 Microsoft.Azure.Management.EventGrid 中有很多可用的模型,EventGridManagementClient 就是其中之一。
关于azure - 创建 StorageManagementClient 和 EventGridManagementClient 时如何使用 VisualStudioCredential,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72326162/