Skip to content

Commit d07d809

Browse files
authored
[PS] Mysql module migration autorest v4 breaking change announcement (#28788)
1 parent 2cc8bf3 commit d07d809

27 files changed

+104
-24
lines changed

src/MySql/MySql.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MySql")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.5.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.5.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/MySql/MySql.Autorest/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,18 @@ directive:
271271
- from: source-file-csharp
272272
where: $
273273
transform: $ = $.replace('public int StorageProfileBackupRetentionDay', '[System.Management.Automation.ValidateRangeAttribute(7,35)]\n public int StorageProfileBackupRetentionDay');
274+
- where:
275+
verb: Get|New|Update|Remove|Restart|Start|Stop
276+
subject: ^FlexibleServer
277+
set:
278+
preview-announcement:
279+
preview-message: "*****************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v15.0.0, to be released in May 2026. *\\r\\n* At least one change applies to this cmdlet. *\\r\\n* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *\\r\\n**************************************************************************************************"
280+
- where:
281+
verb: Get|New|Update|Remove|Restart|Restore
282+
subject: ^Configuration$|^FirewallRule$|^Replica$|^Server$|^VirtualNetworkRule$|ServerConfigurationsList
283+
set:
284+
breaking-change:
285+
deprecated-by-version: 2.0.0
286+
deprecated-by-azversion: 16.0.0
287+
change-effective-date: 2026/05
274288
```

src/MySql/MySql.Autorest/custom/Get-AzMySqlConnectionString.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
function Get-AzMySqlConnectionString {
1616
[OutputType([System.String])]
1717
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
18+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.CmdletBreakingChangeAttribute("16.0.0", "2.0.0", "2026/05")]
1819
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Get the connection string according to client connection provider.')]
1920
param(
2021
[Parameter(ParameterSetName='Get', Mandatory, HelpMessage = 'The name of the server.')]

src/MySql/MySql.Autorest/custom/Get-AzMySqlFlexibleServerConnectionString.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ Get the connection string according to client connection provider.
2222
function Get-AzMySqlFlexibleServerConnectionString {
2323
[OutputType([System.String])]
2424
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
25+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PreviewMessage("**********************************************************************************************`n
26+
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on November 19th 2025. *`n
27+
* At least one change applies to this cmdlet. *`n
28+
* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
29+
***************************************************************************************************")]
2530
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Get the connection string according to client connection provider.')]
2631
param(
2732
[Parameter(ParameterSetName='Get', Mandatory, HelpMessage = 'The name of the server.')]

src/MySql/MySql.Autorest/custom/Get-AzMySqlFlexibleServerLocationBasedCapability.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ Get the available SKU information for the location
2222
function Get-AzMySqlFlexibleServerLocationBasedCapability {
2323
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20210501.ICapabilityProperties])]
2424
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
25+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PreviewMessage("**********************************************************************************************`n
26+
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on November 19th 2025. *`n
27+
* At least one change applies to this cmdlet. *`n
28+
* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
29+
***************************************************************************************************")]
2530
param(
2631
[Parameter(Mandatory)]
2732
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Category('Path')]

src/MySql/MySql.Autorest/custom/New-AzMySqlFirewallRule.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Creates a new firewall rule or updates an existing firewall rule.
2121
#>
2222
function New-AzMySqlFirewallRule {
2323
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])]
24+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.CmdletBreakingChangeAttribute("16.0.0", "2.0.0", "2026/05")]
2425
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
2526
param(
2627
[Parameter()]

src/MySql/MySql.Autorest/custom/New-AzMySqlFlexibleServer.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ function New-AzMySqlFlexibleServer {
3030
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20210501.IServerAutoGenerated])]
3131
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
3232
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new MySQL flexible server.')]
33+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PreviewMessage("**********************************************************************************************`n
34+
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on November 19th 2025. *`n
35+
* At least one change applies to this cmdlet. *`n
36+
* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
37+
***************************************************************************************************")]
3338
param(
3439
[Parameter(HelpMessage = 'The name of the server.')]
3540
[Alias('ServerName')]

src/MySql/MySql.Autorest/custom/New-AzMySqlFlexibleServerFirewallRule.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Creates a new firewall rule for MySQL flexible server
2323
function New-AzMySqlFlexibleServerFirewallRule {
2424
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IFirewallRule])]
2525
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
26+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PreviewMessage("**********************************************************************************************`n
27+
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on November 19th 2025. *`n
28+
* At least one change applies to this cmdlet. *`n
29+
* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
30+
***************************************************************************************************")]
2631
param(
2732
[Parameter()]
2833
[Alias('FirewallRuleName')]

src/MySql/MySql.Autorest/custom/New-AzMySqlFlexibleServerReplica.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ function New-AzMySqlFlexibleServerReplica {
2424
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20210501.IServerAutoGenerated])]
2525
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
2626
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new replica from an existing database.')]
27+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.PreviewMessage("**********************************************************************************************`n
28+
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on November 19th 2025. *`n
29+
* At least one change applies to this cmdlet. *`n
30+
* See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n
31+
***************************************************************************************************")]
2732
param(
2833
[Parameter(Mandatory, HelpMessage = 'The name of the server.')]
2934
[Alias('ReplicaServerName', 'Name')]

src/MySql/MySql.Autorest/custom/New-AzMySqlReplica.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
function New-AzMySqlReplica {
1717
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MySql.Models.Api20171201.IServer])]
1818
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
19+
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Runtime.CmdletBreakingChangeAttribute("16.0.0", "2.0.0", "2026/05")]
1920
[Microsoft.Azure.PowerShell.Cmdlets.MySql.Description('Creates a new replica from an existing database.')]
2021
param(
2122
[Parameter(Mandatory, HelpMessage = 'The name of the server.')]

0 commit comments

Comments
 (0)