gpt4 book ai didi

Azure 成本管理 API - 想要连接使用 API?

转载 作者:行者123 更新时间:2023-12-03 03:36:54 30 4
gpt4 key购买 nike

因此,我正在使用 Power Automate 连接 API 以进行 Azure 成本管理使用,特别是这个人:

https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP

但是,Powerautoamte 虽然具有 ADAuth 和 Oauth2 选项,但需要称为“受众?”的东西。我真的不知道该放什么在这里。

我确实注册了一个应用程序,为其授予了用户模拟权限,批准了它用于我的域,并为该应用程序生成了一个客户端/ key 。我所需要的只是“观众”

enter image description here

最佳答案

Audience 是您的 AAD 应用拥有权限的 API。

要找到此 URL,请尝试导航到 Azure AD应用注册,然后选择您的应用程序,然后单击 API 权限

选择 API/权限名称,这将弹出权限详细信息以及所使用的 API。

例如,我的 AAD 应用具有 Microsoft Graph 权限

enter image description here

如果我选择 Microsoft Graph 行或单击其中一项权限,弹出窗口会显示详细信息

enter image description here

enter image description here

URL https://graph.microsoft.com/ 代表我的案例中的受众。

您可能正在使用 Azure 服务管理,因此在您的情况下,受众将是 https://management.azure.com/

enter image description here

关于Azure 成本管理 API - 想要连接使用 API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72988226/

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