-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[PS] Migrate MySQL module to autorest v4 #28784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this 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 removes support for Azure Database for MySQL single-server cmdlets and focuses exclusively on Azure Database for MySQL flexible servers. This is a breaking change that removes approximately 20+ legacy cmdlets and introduces several improvements for flexible server management.
Key changes:
- Removed all single-server cmdlets (e.g.,
Get-AzMySqlServer,New-AzMySqlServer,Update-AzMySqlConfiguration) - Retained and updated flexible server cmdlets
- Updated module dependencies, output types, and parameter types
- Added breaking change exception file with 102 documented breaking changes
- Updated help documentation and tests
Reviewed Changes
Copilot reviewed 138 out of 217 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/MySql/MySql/ChangeLog.md |
Added breaking change notice with reference link |
src/MySql/MySql/Az.MySql.psd1 |
Removed single-server cmdlets from exports; updated Az.Accounts dependency to 5.3.0 |
tools/StaticAnalysis/Exceptions/Az.MySql/BreakingChangeIssues.csv |
Added 102 breaking change exception entries documenting removed cmdlets and API changes |
| Multiple help files | Removed documentation for single-server cmdlets; updated output types for flexible server cmdlets |
| Test files | Removed tests for single-server cmdlets; updated flexible server test scenarios |
src/MySql/MySql.Autorest/test/utils.ps1 |
Simplified test setup; improved password handling |
Various .md files |
Updated parameter types from enums to strings; removed "To construct" notes for InputObject parameters |
| @@ -18,6 +18,7 @@ | |||
| - Additional information about change #1 | |||
| --> | |||
| ## Upcoming Release | |||
| * Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249). | |||
Copilot
AI
Nov 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changelog entry is too vague for users. It should explicitly state that single-server cmdlets have been removed and list the major breaking changes. Users need to understand what specific cmdlets are no longer available and what alternatives they should use. Consider adding bullet points listing the removed cmdlet categories (e.g., "Removed single-server cmdlets: Get-AzMySqlServer, New-AzMySqlServer, Update-AzMySqlConfiguration, etc.") and guidance to migrate to flexible server cmdlets.
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.