Skip to content

MPG migration SDK - SqlVirtualMachine#55334

Merged
ArthurMa1978 merged 10 commits intoAzure:mainfrom
mzhongl524:pr-sqlvirtual-machine-from-tsp
Feb 5, 2026
Merged

MPG migration SDK - SqlVirtualMachine#55334
ArthurMa1978 merged 10 commits intoAzure:mainfrom
mzhongl524:pr-sqlvirtual-machine-from-tsp

Conversation

@mzhongl524
Copy link
Member

Fixed: #54774
TSP PR: Azure/azure-rest-api-specs#40022

Use the new code generator to generate SDK code from TSP.

Contributing to the Azure SDK

Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.

For specific information about pull request etiquette and best practices, see this section.

@github-actions github-actions bot added the Mgmt This issue is related to a management package. label Jan 29, 2026
@github-actions
Copy link

github-actions bot commented Jan 29, 2026

API Change Check

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

Azure.ResourceManager.SqlVirtualMachine

@mzhongl524 mzhongl524 marked this pull request as ready for review January 29, 2026 09:16
Copilot AI review requested due to automatic review settings January 29, 2026 09:16
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 pull request migrates the SqlVirtualMachine SDK from the legacy autorest-based code generator to the new TypeSpec-based Management Plane Generator (MPG). The migration is referenced in issue #54774 and uses the TypeSpec specification from Azure/azure-rest-api-specs PR #40022.

Changes:

  • Migrated SDK code generation from autorest to TypeSpec using the new Management Plane Generator
  • Updated serialization patterns and internal implementation details across all generated files
  • Added new troubleshooting-related models and operations
  • Updated project configuration to remove autorest dependency

Reviewed changes

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

Show a summary per file
File Description
tsp-location.yaml New configuration file specifying TypeSpec source location and generator settings
SqlVmResource.Serialization.cs, SqlVmGroupResource.Serialization.cs Updated deserialization instance typing and added XML documentation comments
RestOperations/* New REST operation classes for troubleshooting and operations endpoints
Models/* Updated model classes with renamed serialization fields, additional enums, and new troubleshooting models
LongRunningOperation/* Modified operation sources to use direct JSON deserialization instead of ModelReaderWriter
Internal/* Added new utility classes and updated existing ones for the new generator
CollectionResults/* New pageable collection implementation classes
Azure.ResourceManager.SqlVirtualMachine.csproj Removed autorest dependency flag
metadata.json New file specifying API version

@mzhongl524 mzhongl524 requested a review from jsquire as a code owner January 30, 2026 07:41
@ArthurMa1978 ArthurMa1978 merged commit d9c5671 into Azure:main Feb 5, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

** MPG migration - sqlvirtualmachine

3 participants