Skip to content

Commit d3ce2b5

Browse files
Migrate Az.Functions from AutoRest PowerShell v3 to v4
Breaking changes: - Replaced -IdentityType parameter with -EnableSystemAssignedIdentity (Boolean/SwitchParameter) in New-AzFunctionApp and Update-AzFunctionApp - Replaced -IdentityID parameter with -UserAssignedIdentity (String array of ARM resource IDs) in New-AzFunctionApp and Update-AzFunctionApp - New-AzFunctionApp and Update-AzFunctionApp now support combining SystemAssigned and UserAssigned identities in a single call - Output type property changes: enum types converted to strings, arrays converted to Lists (see BreakingChangeIssues.csv) Bug fixes: - Fix parameter set conflict between Create and CreateExpanded when passing identity params to internal cmdlet - Fix AppSetting list type (List[Object] to List[INameValuePair]) - Fix error messages to reference new parameter names - Fix variable typo (siteCofig to siteConfig) - Add SKU validation guards for Flex Consumption and Container App plans Tests: - Added combined SystemAssigned+UserAssigned identity tests for New-AzFunctionApp and Update-AzFunctionApp - Added Update-AzFunctionApp error guard test for Flex Consumption apps - Updated test assertions for new parameter names and ErrorIds - Removed 9 auto-generated template test stubs - All 64 tests pass in both record and playback modes Other: - Updated functionAppStacks.json (adds Node.js 24, Python 3.14, Java 25) - Added HelpMessage attributes for InputObject, DefaultProfile, and ResourceGroupName across all custom cmdlets - Added comment on StorageAccounts_Update remove-operation directive
1 parent 2581eda commit d3ce2b5

File tree

75 files changed

+13687
-9712
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+13687
-9712
lines changed

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

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

src/Functions/Functions.Autorest/README.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ In this directory, run AutoRest:
4848
``` yaml
4949
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
5050
use-extension:
51-
"@autorest/powershell": "3.x"
51+
"@autorest/powershell": "4.x"
5252

5353
directive:
5454
- suppress: XmsResourceInPutResponse
@@ -127,6 +127,8 @@ directive:
127127
- remove-operation: WebApps_GetProductionSiteDeploymentStatus
128128
- remove-operation: WebApps_GetSlotSiteDeploymentStatusSlot
129129
- remove-operation: Workflows_RegenerateAccessKey
130+
# Prevent generation of StorageAccounts cmdlet — Functions uses custom Storage helper for Flex Consumption
131+
- remove-operation: StorageAccounts_Update
130132
- from: WebApps.json
131133
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections/{privateEndpointConnectionName}"].delete.responses.200
132134
transform: delete $.schema
@@ -560,25 +562,6 @@ directive:
560562
- from: source-file-csharp
561563
where: $
562564
transform: $ = $.replace(/sb.AppendLine\(\$@\"\{Indent\}FunctionsToExport = \{cmdletsList\}\"\);/, '')
563-
564-
- where:
565-
verb: Restart|Start|Stop
566-
subject: App
567-
set:
568-
preview-announcement:
569-
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**************************************************************************************************"
570-
- where:
571-
verb: New
572-
subject: App|AppPlan
573-
set:
574-
preview-announcement:
575-
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**************************************************************************************************"
576-
- where:
577-
verb: Get|Remove|Update
578-
subject: App|AppPlan|AppSetting
579-
set:
580-
preview-announcement:
581-
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**************************************************************************************************"
582565
```
583566
584567
``` yaml

src/Functions/Functions.Autorest/custom/Functions.format.ps1xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<View>
55
<Name>FunctionApp</Name>
66
<ViewSelectedBy>
7-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Site</TypeName>
7+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Site</TypeName>
88
</ViewSelectedBy>
99
<TableControl>
1010
<TableHeaders>
@@ -36,7 +36,7 @@
3636
<View>
3737
<Name>FunctionAppPlan</Name>
3838
<ViewSelectedBy>
39-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlan</TypeName>
39+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.AppServicePlan</TypeName>
4040
</ViewSelectedBy>
4141
<TableControl>
4242
<TableHeaders>

src/Functions/Functions.Autorest/custom/Functions.types.ps1xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Types>
33
<Type>
4-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.Site</Name>
4+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Site</Name>
55
<Members>
66
<AliasProperty>
77
<Name>Status</Name>
@@ -27,7 +27,7 @@
2727
</Members>
2828
</Type>
2929
<Type>
30-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.AppServicePlan</Name>
30+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.AppServicePlan</Name>
3131
<Members>
3232
<AliasProperty>
3333
<Name>ResourceGroupName</Name>

0 commit comments

Comments
 (0)