Skip to content

Add asset id none check in dt - #45618

Merged
Pratibha Shrivastav (PratibhaShrivastav18) merged 4 commits into
Azure:mainfrom
PratibhaShrivastav18:shrivastavp/dt_bug_fixes
Mar 12, 2026
Merged

Add asset id none check in dt#45618
Pratibha Shrivastav (PratibhaShrivastav18) merged 4 commits into
Azure:mainfrom
PratibhaShrivastav18:shrivastavp/dt_bug_fixes

Conversation

@PratibhaShrivastav18

Copy link
Copy Markdown
Contributor

Description

Adding asset id none check in deployment template to avoid wrong dt detections

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Azure ML deployment default deployment template detection/logging to avoid reporting a template when the registry model’s default_deployment_template.asset_id is missing (None).

Changes:

  • Tightened the check_default_deployment_template condition to require a non-None/truthy asset_id before logging template details.
  • Minor import reordering/cleanup within _endpoint_utils.py.
  • Added a corresponding bug-fix entry to the package changelog.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
sdk/ml/azure-ai-ml/azure/ai/ml/_utils/_endpoint_utils.py Ensures default deployment template info is only logged when asset_id is present.
sdk/ml/azure-ai-ml/CHANGELOG.md Documents the bug fix in the unreleased changelog.

@PratibhaShrivastav18
Pratibha Shrivastav (PratibhaShrivastav18) merged commit 6074492 into Azure:main Mar 12, 2026
20 checks passed
@PratibhaShrivastav18
Pratibha Shrivastav (PratibhaShrivastav18) deleted the shrivastavp/dt_bug_fixes branch March 12, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants