Skip to content

Conversation

@Francisco-Gamino
Copy link
Contributor

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-AzFunctionAppAvailableLocation PlanType to include FlexConsumption.
    - Added ZoneRedundant to 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-AzFunctionApp to 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

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings November 15, 2025 05:34
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@Francisco-Gamino
Copy link
Contributor Author

Adding Functions folks for FYI
@nzthiago @amamounelsayed @CooperLink @castrodd

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Contributor

Copilot AI left a 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-AzFunctionAppFlexConsumptionRuntime to retrieve supported runtimes for Flex Consumption at specific locations
  • Enhanced Cmdlets: Extended Get-AzFunctionAppAvailableLocation with FlexConsumption plan type and zone redundancy support; added new parameter set to New-AzFunctionApp for 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

@Francisco-Gamino
Copy link
Contributor Author

This PR is replaced by #28873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Functions] Add support to create Flex Consumption function apps

2 participants