Skip to content

Commit fdcdf80

Browse files
Re-add PreviewMessage breaking change attributes from PR #29139
- Restore [PreviewMessage()] BC announcement attributes to all 14 custom cmdlet files. These were lost when the v4 migration commit overwrote the files with regenerated code from pre-#29139 base. - Attributes announce breaking changes in Az v16.0.0 (May 2026) per the BC announcement PR #29139
1 parent 55598a2 commit fdcdf80

18 files changed

Lines changed: 49 additions & 15 deletions

src/Functions/Functions.Autorest/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@
3434

3535

3636

37+

src/Functions/Functions.Autorest/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,25 @@ directive:
562562
- from: source-file-csharp
563563
where: $
564564
transform: $ = $.replace(/sb.AppendLine\(\$@\"\{Indent\}FunctionsToExport = \{cmdletsList\}\"\);/, '')
565+
566+
- where:
567+
verb: Restart|Start|Stop
568+
subject: App
569+
set:
570+
preview-announcement:
571+
preview-message: "*******************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v16.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*******************************************************************************************"
572+
- where:
573+
verb: New
574+
subject: App|AppPlan
575+
set:
576+
preview-announcement:
577+
preview-message: "*******************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v16.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*******************************************************************************************"
578+
- where:
579+
verb: Get|Remove|Update
580+
subject: App|AppPlan|AppSetting
581+
set:
582+
preview-announcement:
583+
preview-message: "*******************************************************************************************\\r\\n* This cmdlet will undergo a breaking change in Az v16.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*******************************************************************************************"
565584
```
566585
567586
``` yaml

src/Functions/Functions.Autorest/custom/Get-AzFunctionApp.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function Get-AzFunctionApp {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.ISite])]
34
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Gets function apps in a subscription.')]
45
[CmdletBinding(DefaultParametersetname="GetAll")]

src/Functions/Functions.Autorest/custom/Get-AzFunctionAppPlan.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function Get-AzFunctionAppPlan {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IAppServicePlan])]
34
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Get function apps plans in a subscription.')]
45
[CmdletBinding(DefaultParameterSetName='GetAll')]

src/Functions/Functions.Autorest/custom/Get-AzFunctionAppSetting.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function Get-AzFunctionAppSetting {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IStringDictionary])]
34
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Gets app settings for a function app.')]
45
[CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')]

src/Functions/Functions.Autorest/custom/New-AzFunctionApp.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function New-AzFunctionApp {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.ISite])]
34
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Creates a function app.')]
45
[CmdletBinding(SupportsShouldProcess=$true, DefaultParametersetname="Consumption")]

src/Functions/Functions.Autorest/custom/New-AzFunctionAppPlan.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function New-AzFunctionAppPlan {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IAppServicePlan])]
34
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Creates a function app service plan.')]
45
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]

src/Functions/Functions.Autorest/custom/Remove-AzFunctionApp.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function Remove-AzFunctionApp {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([System.Boolean])]
34
[CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')]
45
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Deletes a function app.')]

src/Functions/Functions.Autorest/custom/Remove-AzFunctionAppPlan.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function Remove-AzFunctionAppPlan {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([System.Boolean])]
34
[CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')]
45
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Deletes a function app plan.')]

src/Functions/Functions.Autorest/custom/Remove-AzFunctionAppSetting.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
function Remove-AzFunctionAppSetting {
2+
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.PreviewMessage("*******************************************************************************************`n * This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n * At least one change applies to this cmdlet. *`n * See all possible breaking changes at https://go.microsoft.com/fwlink/?linkid=2333486 *`n *******************************************************************************************")]
23
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.IStringDictionary])]
34
[Microsoft.Azure.PowerShell.Cmdlets.Functions.Description('Removes app settings from a function app.')]
45
[CmdletBinding(DefaultParameterSetName='ByName', SupportsShouldProcess=$true, ConfirmImpact='Medium')]

0 commit comments

Comments
 (0)