-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Az.Functions] Enable support for Flex Consumption apps #28873
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
[Az.Functions] Enable support for Flex Consumption apps #28873
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
|
Adding Functions folks for FYI |
|
/azp run |
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 PR adds support for creating Azure Functions Flex Consumption apps in the Az.Functions PowerShell module. The changes include updating AutoRest helper configurations, adding new test infrastructure for Flex Consumption scenarios, updating runtime version defaults across tests, and implementing comprehensive test coverage for the new Flex Consumption functionality.
Key Changes
- Updated AppInsights and Storage AutoRest helper configurations to use commit hashes and improve directive documentation
- Added new
Get-AzFunctionAppFlexConsumptionRuntimecmdlet and Flex Consumption support toNew-AzFunctionApp - Refreshed stack definitions and updated default runtime versions (PowerShell 7.2→7.4, Node 18→22, Python 3.10→3.12, DotNet 6→8)
- Added comprehensive Flex Consumption test suite with 15+ test scenarios covering various runtimes, scaling configurations, and identity options
Reviewed Changes
Copilot reviewed 46 out of 57 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/helpers/Storage/readme.noprofile.md | Added directives to expose blob container cmdlets for Flex Consumption deployment |
| src/helpers/AppInsights/readme.noprofile.md | Updated to use main branch (removed commit hash reference) and improved directive comments |
| src/Functions/Functions/ChangeLog.md | Added user-facing changelog entries for Flex Consumption support with issue reference |
| src/Functions/Functions.Autorest/test/utils.ps1 | Added Flex Consumption test infrastructure, updated runtime versions, improved logging |
| src/Functions/Functions.Autorest/test/loadEnv.ps1 | Added SubscriptionId to default parameters |
| src/Functions/Functions.Autorest/test/env.json | Updated test environment data with Flex Consumption resources |
| src/Functions/Functions.Autorest/test/*.Tests.ps1 | Removed empty stub tests, updated runtime versions, added verbose logging |
| src/Functions/Functions.Autorest/test/New-AzFunctionApp.FlexConsumption.Tests.ps1 | New comprehensive test suite for Flex Consumption scenarios |
| src/Functions/Functions.Autorest/test/New-AzFunctionApp.ACA.Tests.ps1 | Updated for test infrastructure consistency |
| src/Functions/Functions.Autorest/examples/New-AzFunctionApp.md | Added Flex Consumption example, fixed typos |
| src/Functions/Functions.Autorest/test/New-AzFunctionAppPlan.Recording.json | Updated test recording with latest API responses |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 28873 in repo Azure/azure-powershell |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
f6e2038 to
51afd91
Compare
…able float→int property updates)
de7cf09 to
22df60f
Compare
…Restart/Update) in Az.Functions
…table view (Sku column)
… subscription switch, input normalization)
|
/azp run azure-powershell - security-tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run azure-powershell - security-tools |
|
Azure Pipelines successfully started running 1 pipeline(s). |
notyashhh
left a comment
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.
Looks good!
Description
The PR contains the following changes:
Updated Az.Functions helpers:
1) AppInsights helper (
src/helpers/AppInsights/readme.noprofile.md) updated to build from the main branch. Previously, it was building from https://github.com/Azure/azure-rest-api-specs/blob/e0d9ceb1ca85e76a31b8496201499a7312824c09, but I needed a version that returns the APPLICATIONINSIGHTS_CONNECTION_STRING.2) Storage helper (
src/helpers/Storage/readme.noprofile.md) updated to expose Blob container cmdlets, enabling creation, retrieval, and removal of blob containers. These are required to set deployment options for a Flex Consumption app.Added support for creating Flex Consumption function apps:
Resolves [Functions] Add support to create Flex Consumption function apps #24349
1) Updated
Get-AzFunctionAppAvailableLocationPlanTypeto includeFlexConsumption.- Added
ZoneRedundancyto list locations where zone redundancy is supported (currently applies only to Flex Consumption).2) Added
Get-AzFunctionAppFlexConsumptionRuntime, a new cmdlet to retrieve Flex Consumption function app runtimes supported at a specified location.3) Added a new parameter set to
New-AzFunctionAppto support creating Flex Consumption function apps.- Added regression tests for Flex Consumption scenarios.
Cmdlet review for the new cmdlet and parameter set: https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/1524
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.