"Deploy and monitor a model in Azure Machine Learning" deploy-prod fails at "Deploy model to managed online endpoint"
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- azure, github-actions, python
- 领域
- ci-cd, cloud, machine-learning
调研方向
从 deploy-prod GitHub Action 和 src/deploy_to_online_endpoint.py 开始,尤其关注第 57 行的 ensure_endpoint 和第 100 行的调用。重现托管在线终结点的部署,并检查 SubscriptionNotRegistered 错误背后的 Azure 操作。当 action 成功完成部署步骤时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Following Deploy and monitor a model in Azure Machine Learning, "/deploy-prod" fails.
After commenting "/deploy-prod", it is supposed to create an endpoint and deploy to it.
The GitHub action fails at the "Deploy model to managed online endpoint" step with the following error:
Run python src/deploy_to_online_endpoint.py \
Traceback (most recent call last):
Connecting to Azure Machine Learning workspace...
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/polling/base_polling.py", line 950, in run
Ensuring online endpoint 'diabetes-endpoint-73dcd7c9' exists...
self._poll()
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/polling/base_polling.py", line 982, in _poll
raise OperationFailed("Operation failed or canceled")
azure.core.polling.base_polling.OperationFailed: Operation failed or canceled
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/runner/work/mslearn-mlops/mslearn-mlops/src/deploy_to_online_endpoint.py", line 119, in <module>
main()
File "/home/runner/work/mslearn-mlops/mslearn-mlops/src/deploy_to_online_endpoint.py", line 100, in main
endpoint = ensure_endpoint(ml_client, args.endpoint_name)
File "/home/runner/work/mslearn-mlops/mslearn-mlops/src/deploy_to_online_endpoint.py", line 57, in ensure_endpoint
return ml_client.online_endpoints.begin_create_or_update(endpoint).result()
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/polling/_poller.py", line 323, in result
self.wait(timeout)
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
return func(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/polling/_poller.py", line 342, in wait
raise self._exception # type: ignore
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/polling/_poller.py", line 247, in _start
self._polling_method.run()
File "/opt/hostedtoolcache/Python/3.10.21/x64/lib/python3.10/site-packages/azure/core/polling/base_polling.py", line 965, in run
raise HttpResponseError(response=self._pipeline_response.http_response, error=err) from err
azure.core.exceptions.HttpResponseError: (SubscriptionNotRegistered) Resource provider [N/A] isn't registered with Subscription [N/A]. Please see troubleshooting guide, available here: https://aka.ms/register-resource-provider
Code: SubscriptionNotRegistered
Message: Resource provider [N/A] isn't registered with Subscription [N/A]. Please see troubleshooting guide, available here: https://aka.ms/register-resource-provider
Error: Process completed with exit code 1.
- 主要语言
- Jupyter Notebook
- 星标
- 47
- 派生
- 92
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MicrosoftLearning/mslearn-mlops 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
Track model training with MLFlow: Despite description, ROC curve is not logged as an artifact可能已有人在做 @mattflaschen 于 58 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
YAML text for "Automate model training with a manually triggered workflow" not rendered correctly on microsoftlearning.github.io可能已有人在做 @v-vfarias 于 55 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 56/100
MicrosoftLearning/mslearn-mlops#59 · 1 条评论 ·
查看 MicrosoftLearning/mslearn-mlops 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
objectionary/hone-maven-plugin#1340 ·
维护者通常 9 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
alunduil/alunduil-infrastructure#967 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 81/100
维护者通常 1 天内回复
-
help wanted
难度 2/5 1-3 小时 新手友好度 77/100
Aethelgard-Systems/agent-postbox#32 ·
维护者通常 1 天内回复