Azure ML 推理管道部署授权令牌错误

Azure ML inference pipeline deployment authorization token error

在 Azure ML 中部署实时推理管道时(根据 this 教程),我收到以下错误。我试过使用 OAuth 强制注销。尝试创建新的 Azure 工作区,但继续收到相同的错误。

看起来导致问题的租户 ID 是 example.onmicrosoft.com (72f988bf-86f1-41af-91ab-2d7cd011db47)


部署:步骤 CreateServiceFromModels 失败。详细信息:AzureML 服务 API 错误。调用 ServiceCreate 时出错:{"code":"Unauthorized","statusCode":401,"message":"Unauthorized","details":[{"code" :"EmptyOrInvalidToken","message":"Error: Service invocation failed!\r\nRequest: GET https://management.azure.com/subscriptions/subscription_id/resourceGroups/dev-rg/providers/Microsoft.MachineLearningServices/workspaces/dev-ws/providers/Microsoft.Authorization/permissions?api-version=2015-07-01\r\nStatus Code: 401 Unauthorized\r\nReason Phrase: Unauthorized\r\nResponse Body: {\"error\":{\"code\":\"InvalidAuthenticationTokenTenant\",\"message\":\"The access token is from the wrong issuer 'https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/'. It must match the tenant 'https://sts.windows.net/correct_tenant_id/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/correct_tenant_id' 获取令牌。注意,如果订阅被转移到另一个租户那里我

我似乎只有用户访问管理员角色(除了经典服务管理员)。我将自己添加到 Azure 门户的访问控制 (IAM) 部分中的所有者角色后,部署就成功了。