【问题标题】:Get Azure oauth token for Power BI Capacity suspend为 Power BI 容量挂起获取 Azure oauth 令牌
【发布时间】:2020-04-30 14:37:49
【问题描述】:

我需要为以下 Power BI 容量暂停请求发送授权令牌:

暂停 API 调用:

https://management.azure.com/subscriptions/f66cd382-5d26-427e-b345c-d11a6f474740/resourceGroups/%7BresourceGroupName%7D/providers/Microsoft.PowerBIDedicated/capacities/%7BdedicatedCapacityName%7D/suspend?api-version=2017-10-01

以下 API 调用用于获取身份验证令牌: 访问令牌 API 调用:

https://login.microsoftonline.com/{{tenantId}}/oauth2/token

对于此访问令牌 API 调用,它需要输入为 grant_type、client_id、client_secret 和资源。

我的问题是我需要为 Azure Power BI 嵌入类型服务获取 client_id 和 client_secret。

请给我建议

【问题讨论】:

标签: azure api powerbi-embedded


【解决方案1】:

您应该注册应用程序才能获取这些值。在 Azure AAD 中注册应用。

客户端 ID: 也称为为与 Power BI 一起使用而创建的应用程序的应用程序 ID。检查 Azure AD 中的应用注册。

客户端密码: 这也可以从 Azure AAD > App Registrations > Application > Certifications and Secrets 获得。

您还需要授予访问权限以启用和授予 PowerBI 相关的 API 权限。

【讨论】:

    猜你喜欢
    • 2018-12-04
    • 1970-01-01
    • 1970-01-01
    • 2021-05-23
    • 2021-12-01
    • 2021-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多