
我正在嘗試按照本教程將 ML 模型部署到 AKShttps://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-deploy-azure-kubernetes-service。
使用Python SDK建立叢集時:
from azureml.core.compute import AksCompute, ComputeTarget
# Use the default configuration (you can also provide parameters to customize this).
# For example, to create a dev/test cluster, use:
# prov_config = AksCompute.provisioning_configuration(cluster_purpose = AksCompute.ClusterPurpose.DEV_TEST)
prov_config = AksCompute.provisioning_configuration()
aks_name = 'myaks'
# Create the cluster
aks_target = ComputeTarget.create(workspace = ws,
name = aks_name,
provisioning_configuration = prov_config)
# Wait for the create process to complete
aks_target.wait_for_completion(show_output = True)
我收到以下錯誤:
ComputeTargetException: ComputeTargetException:
Message: Compute object provisioning polling reached non-successful terminal state, current provisioning state: Failed
Provisioning operation error:
StatusCode: 400
Message: The request is invalid
InnerException None
ErrorResponse
{
"error": {
"message": "Compute object provisioning polling reached non-successful terminal state, current provisioning state: Failed\nProvisioning operation error:\nStatusCode: 400\nMessage: The request is invalid"
}
}
在 Azure 入口網站中,計算目標顯示預配狀態失敗並出現下列錯誤:預配錯誤:InvalidTemplateDeployment:根據驗證過程,範本部署「0086633c-90b8-466d-9124-7e2cd78c5abc」無效。追蹤 ID 為「f0ca368a-dd3c-4fa3-9daf-ee49c82f41e4」。有關詳細信息,請參閱內部錯誤。
用戶端請求 ID:fe9ff62f-666d-4b23-b6ff-33cd38f669ff 服務請求 ID:|64f42c9db113451395735386668ae64c。
我嘗試了不同的虛擬機器大小,但都遇到了相同的錯誤。我正在美國東部地區部署。