Skip to content

Conversation

@kshitij-microsoft
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

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.

Copy link
Contributor

Copilot AI left a comment

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 integrates default deployment template support for models in Azure ML SDK and adds informational messaging when deploying models with configured deployment templates. The changes include:

  1. Adding defaultDeploymentTemplate field to Model entities with proper serialization
  2. Creating new DefaultDeploymentTemplate class for managing deployment template references
  3. Updating deployment operations to check for and inform users about default deployment templates
  4. Modifying REST client code generation for proper field naming (camelCase in JSON)
  5. Updating swagger configuration and auto-generated REST client operations

Key Changes

  • New DefaultDeploymentTemplate entity class with schema support
  • Model entity extended with default_deployment_template field
  • Deployment operations enhanced to display informational messages about default deployment templates
  • Sample file demonstrating usage patterns
  • Swagger configuration updated with new API version (v2025-04-01-preview)
  • REST client operations auto-regenerated with style improvements

Reviewed changes

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

Show a summary per file
File Description
swagger/.../readme.md Updated swagger configuration, fixed tag conditions, added v2025-04-01-preview
swagger/.../mfe.json Changed field name from DefaultDeploymentTemplate to defaultDeploymentTemplate (camelCase)
samples/model_with_deployment_template_example.py Example code demonstrating DefaultDeploymentTemplate usage (contains hardcoded credentials)
operations/_online_deployment_operations.py Added credential parameter to upload_dependencies call
operations/_model_operations.py Updated return type and imports for v2021_10_01_dataplanepreview models
operations/_deployment_template_operations.py Temporarily changed endpoint to test environment
operations/_batch_deployment_operations.py Added credential parameter to upload_dependencies call
entities/.../default_deployment_template.py New entity class for deployment template references
entities/.../model.py Added default_deployment_template field with serialization support
entities/init.py Exported DefaultDeploymentTemplate class
_utils/_endpoint_utils.py Added logic to check and log messages about default deployment templates
_schema/assets/model.py Added schema field for default_deployment_template
_schema/assets/default_deployment_template.py New schema for DefaultDeploymentTemplate
_restclient/v2021_10_01_dataplanepreview/operations/*.py Auto-generated REST client operations with style improvements

@github-actions
Copy link

github-actions bot commented Dec 4, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-ml

@jayesh-tanna
Copy link
Member

Please update changelog

@jayesh-tanna
Copy link
Member

Please update samples as per code change. this sample code will be published in the ms public documentation: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/ml/azure-ai-ml/samples

@jayesh-tanna
Copy link
Member

consider to add/update test cases wherever possible

@kshitij-microsoft kshitij-microsoft merged commit 6a79bf9 into Azure:main Dec 8, 2025
20 checks passed
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.

2 participants