azure-web-app-service - 从 Azure 应用服务访问时间序列见解 Gen2

标签 azure-web-app-service azure-managed-identity azure-timeseries-insights

对时间序列见解的访问是通过获取 Azure Active Directory 中应用程序的访问 token 来处理的,该应用程序根据 the documentation 被授予对时间序列见解的访问权限。 .

如果我的应用程序在 Azure 应用服务中运行,是否可以跳过在 AD 中创建应用程序的步骤并使用应用服务的托管标识以这种方式访问​​时序见解?这种情况下如何获取Access Token?

最佳答案

是的,你绝对可以做到。在这种情况下,您需要遵循 Azure AD 指南,了解如何以 MSI 的形式获取资源 token 。请参阅文档here 。该资源将为 https://api.timeseries.azure.com/,并且需要可选属性之一。请注意,您还必须首先向 MSI 授予您的 TSI 环境的读取者或贡献者角色。

关于azure-web-app-service - 从 Azure 应用服务访问时间序列见解 Gen2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64892306/

相关文章:

python-3.x - 从 Function App 读取 Azure Key Vault Secret

azure - 我可以在 Azure 逻辑应用中分配用户分配的标识吗?

c# - DefaultAzureCredential 对于 AzureAppConfiguration 失败,但在本地运行时适用于 SecretClient

c# - 如何发送延续 token 来查询azure时间序列见解?

azure - 容器的 WebApp 正在尝试从错误的容器注册表中提取

Azure 应用服务从 HttpClient 返回 502 错误网关

Azure Devops 部署组自动配置脚本在 Azure VM 上失败,无法访问 : vstsagentpackage. azureedge.net

c# - 单元测试 .NET Core Web 应用程序的正确方法是什么?