Skip to content

MPG migration - HealthBot#54915

Merged
ArthurMa1978 merged 6 commits intoAzure:mainfrom
mzhongl524:pr-healthbot-from-tsp
Jan 15, 2026
Merged

MPG migration - HealthBot#54915
ArthurMa1978 merged 6 commits intoAzure:mainfrom
mzhongl524:pr-healthbot-from-tsp

Conversation

@mzhongl524
Copy link
Copy Markdown
Member

Fixed: #54755
Spec PR: Azure/azure-rest-api-specs#39542

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 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 9, 2026

API Change Check

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

Azure.ResourceManager.HealthBot

@mzhongl524 mzhongl524 marked this pull request as ready for review January 9, 2026 05:33
Copilot AI review requested due to automatic review settings January 9, 2026 05:33
Copy link
Copy Markdown
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 migrates the Azure HealthBot SDK from the legacy AutoRest code generator to the new Management Plane Generator (MPG) using TypeSpec. The migration involves regenerating all SDK code with the new generator, which produces different code patterns and structures while maintaining the same API functionality.

Key Changes:

  • Added tsp-location.yaml configuration for TypeSpec-based generation
  • Backed up old autorest.md configuration
  • Regenerated all model classes with updated serialization patterns
  • Refactored REST operations to use protocol methods with RequestContext
  • Updated internal utilities and helper classes for the new generator

Reviewed changes

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

Show a summary per file
File Description
tsp-location.yaml New TypeSpec configuration specifying the API spec location and commit
autorest.md.bak Backup of legacy AutoRest configuration
BotsRestOperations.cs Refactored to protocol-style methods using RequestContext
ProviderConstants.cs Made partial and added documentation
HealthBotSkuName.Serialization.cs Removed S1 SKU value and improved formatting
Model classes (.cs) Updated to use _additionalBinaryDataProperties instead of _serializedAdditionalRawData
Serialization classes Enhanced with proper documentation and protected virtual methods
HealthBotResource.cs Updated to use protocol methods with RequestContext
HealthBotData.cs Restructured constructor parameter order and improved documentation
HealthBotCollection.cs Refactored to use new pageable wrappers
Internal utility classes Added new helper classes for the MPG generator
Custom model files Minor cleanup and formatting changes

@ArthurMa1978 ArthurMa1978 merged commit d9040d8 into Azure:main Jan 15, 2026
21 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 - healthbot

3 participants