Skip to content

Comments

MPG migration SDK - AppConfiguration#55448

Open
mzhongl524 wants to merge 12 commits intoAzure:mainfrom
mzhongl524:pr-appconfiguration-form-tsp
Open

MPG migration SDK - AppConfiguration#55448
mzhongl524 wants to merge 12 commits intoAzure:mainfrom
mzhongl524:pr-appconfiguration-form-tsp

Conversation

@mzhongl524
Copy link
Member

Fixed: #54711
Spec PR: Azure/azure-rest-api-specs#40111

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 Feb 3, 2026
@github-actions
Copy link

github-actions bot commented Feb 13, 2026

API Change Check

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

Azure.ResourceManager.AppConfiguration

@ArcturusZhang ArcturusZhang marked this pull request as ready for review February 13, 2026 09:06
Copilot AI review requested due to automatic review settings February 13, 2026 09:06
Copy link
Member

@live1206 live1206 left a comment

Choose a reason for hiding this comment

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

we can just remove the autorest.md file

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 Azure.ResourceManager.AppConfiguration SDK from the legacy Autorest-based generator to the new TypeSpec-based Management Plane Generator (MPG). The migration updates the API version from 2024-05-01 to 2025-06-01-preview and regenerates the entire SDK codebase using the new generator, resulting in significant structural changes while maintaining backward compatibility where possible.

Changes:

  • Adds TypeSpec configuration (tsp-location.yaml) and metadata.json for the new generator
  • Regenerates all model, operation, and internal utility classes with new patterns (e.g., _additionalBinaryDataProperties instead of _serializedAdditionalRawData)
  • Updates test code to reflect API changes (e.g., PrivateEndpointId property accessor)
  • Adds custom compatibility code to maintain backward compatibility for breaking changes

Reviewed changes

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

Show a summary per file
File Description
tsp-location.yaml New TypeSpec configuration file specifying API spec location and generator settings
metadata.json Tracks the new API version (2025-06-01-preview)
autorest.md.bak Backup of old Autorest configuration for reference
RestOperations/*.cs Regenerated protocol layer with new generator patterns
Models/*.cs Updated model classes with new serialization patterns and flattened property accessors
Internal/*.cs New/updated internal utilities for the MPG generator (e.g., RawRequestUriBuilderExtensions, CollectionResults)
LongRunningOperation/*.cs Updated operation sources to use JsonDocument instead of ModelReaderWriter
CollectionResults/*.cs New collection result classes for pagination handling
Custom/*.cs Custom code to maintain backward compatibility (e.g., AppConfigurationStoreData constructor, SnapshotType property)
Tests/*.cs Updated test to use new property accessor (PrivateEndpointId)
Azure.ResourceManager.AppConfiguration.csproj Removed old Autorest dependency

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 - appconfiguration

3 participants