Skip to content

Fix quickstart MLflow deploy: add azureml-ai-monitoring to model cond…#3923

Open
Chakradhar886 wants to merge 25 commits into
mainfrom
fix/quickstart-mlflow-deploy-azureml-ai-monitoring
Open

Fix quickstart MLflow deploy: add azureml-ai-monitoring to model cond…#3923
Chakradhar886 wants to merge 25 commits into
mainfrom
fix/quickstart-mlflow-deploy-azureml-ai-monitoring

Conversation

@Chakradhar886
Copy link
Copy Markdown
Member

…a_env

The MLflow no-code online deployment uses an auto-generated score script that imports azureml.ai.monitoring.Collector. Because the notebook overrides MLflow's auto-detected conda_env with a fully custom one, that package was missing in the inference image, causing the worker to crash with ModuleNotFoundError: No module named 'azureml' and liveness/readiness probes returning HTTP 502.

Also relax 'pip<=21.3.1' to 'pip' so modern pip is used to resolve the dependencies.

Description

Checklist

  • I have read the contribution guidelines.
  • I have coordinated with the docs team (mldocs@microsoft.com) if this PR deletes files or changes any file names or file extensions.
  • Pull request includes test coverage for the included changes.
  • This notebook or file is added to the CODEOWNERS file, pointing to the author or the author's team.

…a_env

The MLflow no-code online deployment uses an auto-generated score script that imports azureml.ai.monitoring.Collector. Because the notebook overrides MLflow's auto-detected conda_env with a fully custom one, that package was missing in the inference image, causing the worker to crash with ModuleNotFoundError: No module named 'azureml' and liveness/readiness probes returning HTTP 502.

Also relax 'pip<=21.3.1' to 'pip' so modern pip is used to resolve the dependencies.
lavakumarrepala added a commit that referenced this pull request May 7, 2026
- Unpin pip (pip<=21.3.1 -> pip) to allow newer package installs
- Add azureml-ai-monitoring to model conda env for deployment liveness probe
- Pin mlflow<3 and mlflow-skinny<3 at runtime to avoid logged-models API 404

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Chakradhar886 Chakradhar886 force-pushed the fix/quickstart-mlflow-deploy-azureml-ai-monitoring branch from 66aa4e7 to 78a0ec1 Compare May 8, 2026 07:06
…azureml-ai-monitoring, psutil, pin pandas==1.5.3)
…rt (add azureml-ai-monitoring, psutil, pin pandas==1.5.3)"

This reverts commit 7126f33.
…ntainer (sklearn 1.5.2, mlflow 2.17.0, numpy<2)"

This reverts commit 78a0ec1.
…de inference image

Workaround for inference-base-2204 image whose auto-injected mlflow_score_script.py imports azureml.ai.monitoring (not installed in baked env), causing all no-code MLflow online deployments to crashloop. Switch deploy-model.ipynb's blue/green deployments to a custom scoring script and a custom Environment built from inference-env.yaml so the broken auto-injected script is never used. Also re-applies the regenerated credit_defaults_model artifact (sklearn 1.5.2 / mlflow 2.17.0) so mlflow.pyfunc.load_model can deserialize it under the modern stack.
…ow no-code inference image"

This reverts commit afd9ef4.
…low no-code inference image"

This reverts commit 11b825c.
…oken MLflow no-code inference image""

This reverts commit 1c85776.
…da.yaml (minimal fix for inference image 502)
… inference server ModuleNotFoundError: azureml.contrib)
…ainer 502: ModuleNotFoundError azureml.contrib)
…ces in training cmd so MLflow infers them into model requirements (fix container 502: ModuleNotFoundError azureml)
…itoring & azureml-contrib-services are written into model requirements.txt (MLflow no-code deploy uses requirements.txt, not conda_env)
…v); rely on conda_env which already lists azureml-ai-monitoring & azureml-contrib-services
…() lookup, so deployment always uses the static model just registered (avoids picking up a quickstart-registered version that lacks azureml packages)
…match new inference base image (py3.8 unsupported); resolves liveness probe 502 when deploying the static credit_defaults_model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant