Repository navigation
Fix availability zone checks for Flex Consumption plans - #3983
Open
Behzad Motaghi (Motaghi) wants to merge 2 commits into
Open
Behzad Motaghi (Motaghi) wants to merge 2 commits into
Behzad Motaghi (Motaghi) wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
Fixes #3958.
Azure.AppService.AvailabilityZonefails zone-redundant Azure Functions Flex Consumption plans becauseFC1andFlexConsumptionare missing from the rule's SKU lists. This adds both, so a Flex Consumption plan passes whenproperties.zoneRedundantistrueand still fails when it isfalseor 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
FC1plan 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.ps1pass locally. I didn't run the full test suite. #3930 touches the same files, so a small changelog conflict is likely.PR Checklist
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.