Skip to content

Fix availability zone checks for Flex Consumption plans - #3983

Open
Behzad Motaghi (Motaghi) wants to merge 2 commits into
Azure:mainfrom
Motaghi:fix/psrule-3958-prep
Open

Behzad Motaghi (Motaghi) wants to merge 2 commits into
Azure:mainfrom
Motaghi:fix/psrule-3958-prep

Conversation

@Motaghi

Copy link
Copy Markdown

PR Summary

Fixes #3958.

Azure.AppService.AvailabilityZone fails zone-redundant Azure Functions Flex Consumption plans because FC1 and FlexConsumption are missing from the rule's SKU lists. This adds both, so a Flex Consumption plan passes when properties.zoneRedundant is true and still fails when it is false or not set. The rule documentation and the Unreleased changelog are updated.

Microsoft documents zone redundancy for Flex Consumption in Reliability in Azure Functions. The rule keeps its existing region check, which uses virtual machine scale set zone mappings. Flex Consumption supports zone redundancy in a narrower set of regions that the rule doesn't check, so an FC1 plan in a zone-enabled region without Flex zone support can still fail, as it does today.

The new cases sit in a separate fixture file so the existing plan fixtures and the other plan rules' expectations don't change. They fail against the current rule and pass with the change, and all tests in Azure.AppService.Tests.ps1 pass locally. I didn't run the full test suite. #3930 touches the same files, so a small changelog conflict is likely.

PR Checklist

  • PR has a meaningful title
  • Summarized changes
  • Change is not breaking
  • This PR is ready to merge and is not Work in Progress
  • Rule changes
    • Unit tests created/ updated
    • Rule documentation created/ updated
    • Link to a filed issue
    • Change log has been updated with change under unreleased section
  • Other code changes (not applicable)
    • Unit tests created/ updated
    • Link to a filed issue
    • Change log has been updated with change under unreleased section

I used gpt-6.1-sol via Codex, run from T3 Code, to write the patch and tests, and Claude Opus 5.5 reviewed the change independently. I've read and verified the diff myself.

@Motaghi
Behzad Motaghi (Motaghi) requested a review from a team as a code owner November 21, 2026 08:31

This branch has not been deployed

No deployments
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.

[BUG] Azure.AppService.AvailabilityZone fails zone-redundant Flex Consumption (FC1) plans

1 participant