Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Http请求失败,因为获取AD OAuth令牌时出错:';AADSTS50001:名为https://management.azure.windows.net_Azure_Azure Active Directory_Azure Logic Apps - Fatal编程技术网

Http请求失败,因为获取AD OAuth令牌时出错:';AADSTS50001:名为https://management.azure.windows.net

Http请求失败,因为获取AD OAuth令牌时出错:';AADSTS50001:名为https://management.azure.windows.net,azure,azure-active-directory,azure-logic-apps,Azure,Azure Active Directory,Azure Logic Apps,我想通过logic APP中的rest API更改azure分析服务的价格层。 为了完成这项工作,我建立了 在logic应用程序中,我设置了这样一个请求 { "uri": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}?api-ve

我想通过logic APP中的rest API更改azure分析服务的价格层。 为了完成这项工作,我建立了

在logic应用程序中,我设置了这样一个请求

{
    "uri": "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}?api-version=2017-08-01",
    "method": "PATCH",
    "authentication": {
        "tenant": "GUID, which I get from Azure AD for AzureAS",
        "audience": "https://management.azure.windows.net",
        "clientId": "GUID, which I get from AzureAD for AzureAS",
        "secret": "*sanitized*",
        "type": "ActiveDirectoryOAuth"
    },
    "body": {
        "sku": {
            "capacity": 1,
            "name": "S4",
            "tier": "Standard"
        },
        "tags": {
            "testKey": "testValue"
        }
    }
}
发送此请求后,我收到以下消息:

BadRequest. Http request failed as there is an error getting AD OAuth token: 'AADSTS50001: The application named https://management.azure.windows.net was not found in the tenant named xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
在AzureAD,我看到了以下情况:


我现在的问题是,我应该在AzureAD中添加哪个API权限?

如评论中所述,应该获取代码/令牌的资源(受众)是
https://management.core.windows.net/

此外,您需要具有以下委托权限才能执行Azure API:执行Windows Azure服务管理API


完成此操作后,您应该能够执行该操作。

如注释中所述,应获取代码/令牌的资源(受众)为
https://management.core.windows.net/

此外,您需要具有以下委托权限才能执行Azure API:执行Windows Azure服务管理API


完成此操作后,您应该能够执行此操作。

应该是management.core.windows.net/。谢谢。我已将其更改为management.core.windows,现在出现错误403。禁止
“代码”:“授权失败”,
。我应该在AzureAD中添加一些内容吗?应该是management.core.windows.net/。谢谢。我已将其更改为management.core.windows,现在出现错误403。禁止
“代码”:“授权失败”,
。我应该在AzureAD中添加一些内容吗?