-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Az.Functions] Enable support for Flex Consumption apps #28872
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 #28872
Conversation
… cmdlets for managing AppInsights
…onnection strings)
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
|
Adding Functions folks for FYI |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
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 comprehensive support for Azure Functions Flex Consumption apps, a new hosting plan type for serverless Azure Functions. The changes include updated helper modules, a new cmdlet, enhanced location querying, and extensive test coverage.
Key Changes
- Helper Module Updates: Updated AppInsights and Storage helpers to support Flex Consumption requirements (new API features and blob container operations)
- New Cmdlet: Added
Get-AzFunctionAppFlexConsumptionRuntimeto retrieve supported runtimes for Flex Consumption at specific locations - Enhanced Cmdlets: Extended
Get-AzFunctionAppAvailableLocationwithFlexConsumptionplan type and zone redundancy support; added new parameter set toNew-AzFunctionAppfor Flex Consumption creation - Test Infrastructure: Added dedicated Flex Consumption test file with comprehensive scenarios, updated existing tests with newer runtime versions, and improved test setup with Flex Consumption resources
Reviewed Changes
Copilot reviewed 46 out of 57 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/helpers/Storage/readme.noprofile.md | Exposed blob container cmdlets (New/Get/Remove) for deployment storage |
| src/helpers/AppInsights/readme.noprofile.md | Updated to use main branch and expose connection string property |
| src/Functions/Functions/ChangeLog.md | Documented new Flex Consumption features |
| src/Functions/Functions.Autorest/test/utils.ps1 | Added Flex Consumption and ACA test resources, updated runtime versions |
| src/Functions/Functions.Autorest/test/loadEnv.ps1 | Added SubscriptionId to default parameters |
| src/Functions/Functions.Autorest/test/env.json | Updated test environment with Flex resources and new runtime versions |
| 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 | Refactored to use centralized test resources |
| src/Functions/Functions.Autorest/test/*.Tests.ps1 | Updated multiple test files with improved logging and newer runtime versions |
| src/Functions/Functions.Autorest/test/Get-AzFunctionAppAvailableLocation.Tests.ps1 | Added Flex Consumption location tests |
| src/Functions/Functions.Autorest/examples/New-AzFunctionApp.md | Added Flex Consumption example |
| src/Functions/Functions.Autorest/docs/Az.Functions.md | Added new cmdlet documentation reference |
src/Functions/Functions.Autorest/test/New-AzFunctionApp.FlexConsumption.Tests.ps1
Show resolved
Hide resolved
|
This PR is replaced by #28873. |
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
ZoneRedundantto 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.