Skip to content

Conversation

@kjilla
Copy link

@kjilla kjilla commented Oct 25, 2025

Description

Azure firewalls can be now created in extended locations. Adding a new parameter for create az firewall called -EdgeZone

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 October 25, 2025 05:27
@azure-client-tools-bot-prd
Copy link

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

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 deploying Azure Firewalls in extended locations (edge zones) by introducing a new -EdgeZone parameter to the New-AzFirewall cmdlet. The key change is that when an EdgeZone is specified, availability zones are automatically set to null, as edge zone deployments do not support availability zones.

Key changes:

  • Added -EdgeZone parameter to New-AzFirewall cmdlet with validation that prevents simultaneous specification of both EdgeZone and availability zones
  • Updated the PSAzureFirewall model to include ExtendedLocation property
  • Added comprehensive test coverage for EdgeZone scenarios including CRUD operations, Virtual Hub deployments, and parameter validation

Reviewed Changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Network/Network/help/New-AzFirewall.md Updated cmdlet help documentation to include the new -EdgeZone parameter and added Example 18 demonstrating edge zone deployment
src/Network/Network/Models/AzureFirewall/PSAzureFirewall.cs Added ExtendedLocation property to the PSAzureFirewall model to support edge zone information
src/Network/Network/ChangeLog.md Documented the new EdgeZone parameter feature in the upcoming release notes
src/Network/Network/AzureFirewall/NewAzureFirewallCommand.cs Implemented the EdgeZone parameter with validation logic and ExtendedLocation initialization for both VNet and Virtual Hub firewall deployments
src/Network/Network.Test/ScenarioTests/AzureFirewallTests.ps1 Added three comprehensive test functions covering EdgeZone CRUD operations, Virtual Hub scenarios, and parameter validation
src/Network/Network.Test/ScenarioTests/AzureFirewallTests.cs Registered the new EdgeZone test methods as XUnit test cases

@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

Looks good but please double check with the tests

@github-actions
Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

- Add validation to ensure VirtualNetwork, PublicIpAddress, and ManagementPublicIpAddress are in the same EdgeZone as the firewall when EdgeZone parameter is specified
- Update ChangeLog.md with EdgeZone Extended Location parameter support
- Validation throws ArgumentException with descriptive error messages for mismatched ExtendedLocations
@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel isra-fel self-assigned this Oct 28, 2025
@DanielMicrosoft DanielMicrosoft changed the base branch from main to release-2025-11-04 October 28, 2025 04:06
@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).

@kjilla kjilla removed their assignment Oct 31, 2025
@isra-fel
Copy link
Member

isra-fel commented Nov 1, 2025

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants