Regenerate initiatives.json to drop duplicate WAF-on-AppGw built-in#2172
Draft
pratyushverma63 with Copilot wants to merge 3 commits into
Draft
Conversation
…drails-Network_20250326 The built-in policy 564feb30-bf6a-4854-b4bb-0d2d2d1e6c66 (WAF should be enabled for Application Gateway) was referenced twice in the initiative: as Deny-Waf-Fw-rules (param wafFwRules) and Deny-AppGw-Without-Waf (param appGwWaf). Removed the duplicate Deny-AppGw-Without-Waf reference and the now-unused appGwWaf parameter.
Copilot
AI
changed the title
[WIP] Fix code based on review comment
Regenerate initiatives.json to drop duplicate WAF-on-AppGw built-in
Jul 14, 2026
pratyushverma63
force-pushed
the
pratyverma4078_Duplicate_Policy_in_Enforce-Guardrails-Network_20250326
branch
from
July 14, 2026 18:40
0071a58 to
8ad7730
Compare
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.
The source initiative
Enforce-Guardrails-Network_20250326was updated to remove the duplicateDeny-AppGw-Without-Wafreference (built-in564feb30-..., already referenced asDeny-Waf-Fw-rules) and its now-unusedappGwWafparameter, but the generated deployment artifact was not rebuilt — leaving the removed content in the published template and failing the Pester check that validates it against source.Changes
Regenerated
eslzArm/managementGroupTemplates/policyDefinitions/initiatives.jsonfromsrc/templates/initiatives.bicep:The regenerated artifact no longer contains the
appGwWafparameter or the duplicateDeny-AppGw-Without-Wafpolicy reference. The only incidental delta is the_generatormetadata (bicep version/hash), whichTest-BuildPoliciesstrips viaRemove-JSONMetadatabefore comparison.