-
Notifications
You must be signed in to change notification settings - Fork 4k
Add support to AppGw Exception feature #27863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Add support for Application Gateway WAF Exceptions by introducing a new exception cmdlet and wiring it through models, help, exports, and tests.
- Introduce
New-AzApplicationGatewayFirewallPolicyException
cmdlet and PS model - Extend managed rules cmdlets/models to accept exception entries
- Update help files, module exports, changelog, and add scenario tests
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.
Show a summary per file
File | Description |
---|---|
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyManagedRule.md | Added -Exception parameter to syntax and documented it |
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md | Created help file for the new exception cmdlet |
src/Network/Network/help/Az.Network.md | Added reference to the new exception cmdlet |
src/Network/Network/Models/PSApplicationGatewayFirewallPolicyManagedRules.cs | Added Exceptions property to PS model |
src/Network/Network/Models/PSApplicationGatewayFirewallPolicyException.cs | Introduced PS model for exception entries |
src/Network/Network/FirewallPolicy/ManagedRules/Exception/NewAzureApplicationGatewayFirewallPolicyExceptionCommand.cs | Implemented the New-...Exception cmdlet |
src/Network/Network/FirewallPolicy/ManagedRules/Exception/AzureApplicationGatewayFirewallPolicyException.cs | Defined base parameters and logic for exceptions |
src/Network/Network/FirewallPolicy/ManagedRules/AzureApplicationGatewayFirewallPolicyManagedRules.cs | Added Exception parameter to managed rules cmdlet |
src/Network/Network/ChangeLog.md | Logged the new exception cmdlet |
src/Network/Network/Az.Network.psd1 | Exported the new exception cmdlet |
src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.ps1 | Added PowerShell scenario test for exceptions |
src/Network/Network.Test/ScenarioTests/ApplicationGatewayTests.cs | Added C# test harness for exception scenario |
Comments suppressed due to low confidence (1)
src/Network/Network/FirewallPolicy/ManagedRules/AzureApplicationGatewayFirewallPolicyManagedRules.cs:40
- Rename the
Exception
property toExceptions
(plural) to match the PS model property and make the API consistent.
public PSApplicationGatewayFirewallPolicyException[] Exception { get; set; }
...allPolicy/ManagedRules/Exception/NewAzureApplicationGatewayFirewallPolicyExceptionCommand.cs
Outdated
Show resolved
Hide resolved
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md
Outdated
Show resolved
Hide resolved
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md
Outdated
Show resolved
Hide resolved
src/Network/Network/Models/PSApplicationGatewayFirewallPolicyException.cs
Outdated
Show resolved
Hide resolved
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyManagedRule.md
Show resolved
Hide resolved
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md
Outdated
Show resolved
Hide resolved
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md
Outdated
Show resolved
Hide resolved
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Commenter does not have sufficient privileges for PR 27863 in repo Azure/azure-powershell |
7c050d2
to
cc49340
Compare
cc49340
to
9e6fba7
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md
Outdated
Show resolved
Hide resolved
src/Network/Network/help/New-AzApplicationGatewayFirewallPolicyException.md
Outdated
Show resolved
Hide resolved
…yException.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…yException.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.