例如,无法使Azure ML模型管理API在德国西部中心区工作,而在东部美国区工作

xzlaal3s  于 2023-01-14  发布在  其他
关注(0)|答案(1)|浏览(106)

考虑到Azure ML API以及如何使用它管理模型,我遇到了以下问题。

以下是有效的顺序:

1.获取令牌(确定)-〉POST https://login.microsoftonline.com/{{TenantId}}/oauth2/token
1.列出工作区(OK)-〉获取https://management.azure.com/subscriptions/{{SubscriptionId}}/providers/Microsoft.MachineLearningServices/workspaces?api-version=2018-03-01-preview我有几个工作区,一些在美国东部创建,一些在德国中西部地区创建
1.在之前API调用返回的json中,为每个工作区返回了一个名为discoveryUrl的属性,该属性为"https://germanywestcentral.api.azureml.ms/discovery"或"https://eastus.api.azureml.ms/discovery"
1.调用GET https://germanywestcentral.api.azureml.ms/discovery返回

{
    "api": "https://germanywestcentral.api.azureml.ms",
    "catalog": "https://catalog.cortanaanalytics.com",
    "experimentation": "https://germanywestcentral.api.azureml.ms",
    "gallery": "https://gallery.cortanaintelligence.com/project",
    "history": "https://germanywestcentral.api.azureml.ms",
    "hyperdrive": "https://germanywestcentral.api.azureml.ms",
    "labeling": "https://germanywestcentral.api.azureml.ms",
    "modelmanagement": "https://germanywestcentral.api.azureml.ms",
    "pipelines": "https://germanywestcentral.aether.ms",
    "studio": "https://ml.azure.com"
}

1.调用GET https://eastus.api.azureml.ms/discovery返回

{
    "api": "https://eastus.api.azureml.ms",
    "catalog": "https://catalog.cortanaanalytics.com",
    "experimentation": "https://eastus.experiments.azureml.net",
    "gallery": "https://gallery.cortanaintelligence.com/project",
    "history": "https://eastus.experiments.azureml.net",
    "hyperdrive": "https://eastus.experiments.azureml.net",
    "labeling": "https://eastus.experiments.azureml.net",
    "modelmanagement": "https://eastus.modelmanagement.azureml.net",
    "pipelines": "https://eastus.aether.ms",
    "studio": "https://ml.azure.com"
}
  1. modelmanagement url在两个区域中的结构不同
  • "模型管理":"示例网站"https://germanywestcentral.api.azureml.ms"
  • 与"模型管理":例如"www.example.com",https://eastus.modelmanagement.azureml.net",

(well很好,这应该不是问题)
1.现在调用GEThttps://eastus.modelmanagement.azureml.net/api/subscriptions/{{SubscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.MachineLearningServices/workspaces/{{workspaceName}}/services?api-version=2018-03-01-preview&count=100确实返回描述工作区下可用服务的数据

但问题是调用:

GET https://germanywestcentral.api.azureml.ms/api/subscriptions/{{SubscriptionId}}/resourceGroups/{{resourceGroupName}}/providers/Microsoft.MachineLearningServices/workspaces/{{workspaceName}}/services?api-version=2018-03-01-preview&count=100返回一个530错误,在响应正文中包含"unknown to the cluster
有什么想法或提示,为什么这样做,以及如何绕过这个问题?

相关问题