Pin mlflow version in credit_defaults_model to fix deployment liveness probe 502 - #4097
Draft
lavakumarrepala with Copilot wants to merge 2 commits into
Draft
Pin mlflow version in credit_defaults_model to fix deployment liveness probe 502#4097lavakumarrepala with Copilot wants to merge 2 commits into
lavakumarrepala with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: lavakumarrepala <221403938+lavakumarrepala@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate and fix GitHub Actions failure for ML model deployment
Pin mlflow version in credit_defaults_model to fix deployment liveness probe 502
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
deploy-model.ipynbfails at theManagedOnlineDeploymentcell withBadArgument: Liveness probe failed: HTTP probe failed with statuscode: 502, because the container crashes on startup during no-code MLflow deployment.Root cause
credit_defaults_model'sconda.yaml/requirements.txtpin Python to 3.8.15 and scikit-learn to 0.24.2 but leavemlflowunpinned. Azure ML auto-generates the deployment environment from these files at deploy time, so pip resolves the newestmlflowrelease (3.x), which requires Python ≥3.10 — incompatible with the pinned 3.8.15 runtime. The resulting broken environment crashes the inference server, which fails the liveness probe.Fix
tutorials/get-started-notebooks/deploy/credit_defaults_model/conda.yaml— pinmlflow==1.26.1tutorials/get-started-notebooks/deploy/credit_defaults_model/requirements.txt— pinmlflow==1.26.1Version chosen to match
mlflow_version: 1.26.1already recorded in the model'sMLmodelfile, keeping the generated serving environment consistent with the environment the model was actually serialized in.No notebook cells were modified — only the model's environment spec files changed.