Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

"Deploy and monitor a model in Azure Machine Learning" deploy-prod fails at "Deploy model to managed online endpoint"

未关闭
#72 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@v-vfarias 已经在做这个了。

开始于 2026年9月4日。

  • #73 来自 @v-vfarias —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
azure, github-actions, python

调研方向

从 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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

MicrosoftLearning/mslearn-mlops 的其他 Issue

查看 MicrosoftLearning/mslearn-mlops 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。