gpt4 book ai didi

azure - 使用 Azure MSI 访问 Azure 表存储

转载 作者:行者123 更新时间:2023-12-03 16:51:40 25 4
gpt4 key购买 nike

我最近设置了 .net core 应用程序以使用 MSI(托管身份)与 Azure Blob 进行通信。

MSI 是否可以与 Azure 表存储配合使用?似乎找不到任何有关它的文档。

我正在尝试使用 MSI,这样我就不必再管理我的 key (无 key )。

最佳答案

现在使用最新版本支持此功能 https://www.nuget.org/packages/Azure.Data.Tables/ (12.2.1)

您现在可以使用类似的东西创建客户端

  var tableServiceClient = new TableServiceClient(uri, new DefaultAzureCredential());

确保您已在 Azure 中为用户分配正确的权限以读取资源

关于azure - 使用 Azure MSI 访问 Azure 表存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53564739/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com