MPG migration SDK - SqlVirtualMachine#55334
Merged
ArthurMa1978 merged 10 commits intoAzure:mainfrom Feb 5, 2026
Merged
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Contributor
There was a problem hiding this comment.
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 |
...ure.ResourceManager.SqlVirtualMachine/api/Azure.ResourceManager.SqlVirtualMachine.net10.0.cs
Outdated
Show resolved
Hide resolved
ArthurMa1978
approved these changes
Feb 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.
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.