Skip to content

appgw_rule01 fix for destination_address_prefixes#32

Open
ckellywilson wants to merge 9 commits intoAzure:mainfrom
ckellywilson:fix/appgw-nsg-management-rule
Open

appgw_rule01 fix for destination_address_prefixes#32
ckellywilson wants to merge 9 commits intoAzure:mainfrom
ckellywilson:fix/appgw-nsg-management-rule

Conversation

@ckellywilson
Copy link
Contributor

@ckellywilson ckellywilson commented Oct 26, 2025

Description

Fixes #35

Technical Issue Fixed:
The Application Gateway NSG management rule was using incorrect Terraform azurerm provider syntax:

  • Before: destination_address_prefixes = "*" (incorrect - expects array)
  • After: destination_address_prefix = "*" (correct - single string value)

Root Cause:
The destination_address_prefixes property expects an array of strings ["*"], but when using a single wildcard value "*", the correct property is destination_address_prefix (singular).

Microsoft Compliance:
The Application Gateway rule for the source GatewayManager specifies that the destination should be "*" for Any address. This fix brings the rule into compliance with both Microsoft documented configuration AND correct Terraform azurerm provider syntax.

Impact:

  • Fixes Terraform validation errors when applying the module
  • Maintains security compliance with Azure Application Gateway requirements
  • Ensures NSG rule allows management traffic on ports 65200-65535 from GatewayManager service tag

Validation

  • ✅ AVM pre-commit checks passed
  • ✅ Code formatting validated
  • ✅ Linting checks passed
  • ✅ Documentation generated successfully

github-actions[bot] and others added 7 commits October 6, 2025 01:38
- Update terraform.languageServer.terraform.path from incorrect /home/runtimeuser/tfenv/bin/terraform
  to correct /usr/bin/terraform
- Fixes devcontainer startup error where terraform binary was not found
- Terraform v1.12.2 is available at /usr/bin/terraform in the mcr.microsoft.com/azterraform:avm-latest container
- Add Docker-in-Docker feature for container builds
- Add Azure Developer CLI (azd) feature
- Add ms-azuretools.azure-dev extension for Azure development
- Maintain correct terraform binary path at /usr/bin/terraform
- Remove duplicate extensions and fix JSON structure
- Update devcontainer to use Ubuntu base with comprehensive tooling
- Add Azure MCP server integration for enhanced Azure operations
- Configure advanced GitHub Copilot Chat features (math, todo, thinking tool)
- Add Dependabot configuration for automated dev container updates
- Backup original devcontainer configuration
- Enable MCP server sampling for live Azure resource management

This update modernizes the development environment with:
- Latest Terraform, Azure CLI, Node.js, PowerShell support
- Enhanced AI assistance capabilities through MCP integration
- Automated dependency management via Dependabot
- Improved developer experience with extended chat features
- Switch from Ubuntu base container to mcr.microsoft.com/azterraform:avm-latest
- Configure container environment for AVM development
- Update Terraform language server path to /usr/bin/terraform
- Add azapi-vscode extension for Azure API support
- Remove old devcontainer.json.old backup file
- Optimize container setup for Azure Verified Modules development
Updates appgw_rule01 destination_address_prefixes from specific subnet
addresses to '*' to comply with Azure Application Gateway requirements.
This ensures proper management plane connectivity for Application Gateway
infrastructure operations.

Reference: https://learn.microsoft.com/en-us/azure/application-gateway/configuration-infrastructure#network-security-groups
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 Maintainers need to triage still label Oct 26, 2025
github-actions[bot] and others added 2 commits October 26, 2025 04:18
Change from destination_address_prefixes to destination_address_prefix
for single value '*' to match Terraform azurerm provider syntax.
@ckellywilson
Copy link
Contributor Author

Hi @mbilalamjad,

This PR has been open for a while without activity. Could someone please review or provide an update on its status? If additional information or changes are needed, please let me know.

Thank you for your time and support!

/cc @maintainers

MinHeinA added a commit to MinHeinA/terraform-azurerm-avm-ptn-aiml-landing-zone that referenced this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs: Triage 🔍 Maintainers need to triage still

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terraform Syntax Error in Application Gateway NSG Rule - destination_address_prefixes

1 participant