Skip to content

Conversation

@Francisco-Gamino
Copy link
Contributor

@Francisco-Gamino Francisco-Gamino commented Nov 15, 2025

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 ZoneRedundancy 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 06:58
@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

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 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-AzFunctionAppFlexConsumptionRuntime cmdlet and Flex Consumption support to New-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
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@Francisco-Gamino
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link
Contributor

Commenter does not have sufficient privileges for PR 28873 in repo Azure/azure-powershell

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@Francisco-Gamino Francisco-Gamino force-pushed the functions-add-flex-support-1 branch from f6e2038 to 51afd91 Compare November 17, 2025 23:40
@Francisco-Gamino Francisco-Gamino force-pushed the functions-add-flex-support-1 branch from de7cf09 to 22df60f Compare November 18, 2025 03:59
@notyashhh
Copy link
Member

/azp run azure-powershell - security-tools

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@notyashhh notyashhh self-assigned this Nov 19, 2025
@notyashhh notyashhh added this to the Az 15.1.0 (12/02/2025) milestone Nov 19, 2025
@notyashhh
Copy link
Member

/azp run azure-powershell - security-tools

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@notyashhh notyashhh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@notyashhh notyashhh merged commit cc96420 into Azure:main Nov 20, 2025
12 checks passed
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

3 participants