Fix batch-score.sh: use defaults.deployment instead of deprecated def… - #4035
Merged
Merged
Conversation
yetamsft
requested review from
achauhan-scc,
imatiach-msft,
jayesh-tanna and
kingernupur
as code owners
June 9, 2026 20:59
yetamsft
force-pushed
the
yeta-microsoft/fix-batch-score-deployment-name
branch
5 times, most recently
from
June 9, 2026 22:03
4a42dff to
d2c2014
Compare
The --set-default flag on batch-deployment create fails with a RequestInvalid error because the API can no longer find 'deployment_name' on BatchEndpointDefaults when sent through that code path. Replace --set-default with a two-step approach: create the deployment, then explicitly update the endpoint with --set defaults.deployment_name to set the default deployment. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
yetamsft
force-pushed
the
yeta-microsoft/fix-batch-score-deployment-name
branch
from
June 9, 2026 22:28
d2c2014 to
34c2687
Compare
ekmalkan
approved these changes
Jun 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the cli/batch-score.sh example to avoid using az ml batch-deployment create --set-default (which relies on a deprecated BatchEndpointDefaults property) by explicitly setting the batch endpoint’s default deployment via az ml batch-endpoint update.
Changes:
- Remove
--set-defaultfrom the initialaz ml batch-deployment create. - Add an explicit
az ml batch-endpoint update --set ...call to set the endpoint default deployment.
trimicrosoft
approved these changes
Jun 10, 2026
achauhan-scc
approved these changes
Jun 10, 2026
jayesh-tanna
approved these changes
Jun 10, 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.
Description
Replace --set-default with an explicit endpoint update using defaults.deployment_name=$DEPLOYMENT_NAME
Checklist