Azure / Azure/azure-rest-api-specs

Unable to attach the azure firewall policy to azure firewall using terraform

Open
#16,117 1 comment 1 reaction 0 assignees View on GitHub
customer-reported Network - Firewall question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

i'm unable to attach firewall policy to firewall
[https://github.com/hashicorp/terraform-provider-azurerm/issues/13435](https://github.com/hashicorp/terraform-provider-azurerm/issues/13435)
```
resource "azurerm_firewall" "az_firewall" {
name = var.name
location = var.location #"eastus"
resource_group_name = var.rg_name
sku_tier = var.sku_tier #"Premium"
firewall_policy_id = "/subscriptions/xxxxx/resourceGroups/sub01-tag-demo001/providers/Microsoft.Network/firewallPolicies/test-policy"
dynamic "ip_configuration"{
for_each = var.ip_configuration
content {
name = "${var.name}-firewallConfig-${ip_configuration.value.name}"
public_ip_address_id = module.datasource_public_ip[join("-",[ip_configuration.value.public_ip.name,ip_configuration.value.public_ip.rg_name])].public_ip_id
subnet_id = module.datasource_subnet[join("-",[ip_configuration.value.vnet_subnet.vnet_name,ip_configuration.value.vnet_subnet.subnet_name])].subnet_id
}
}
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the Terraform azurerm_firewall configuration in the report and the referenced provider issue 13435. Determine which Azure firewall API specification entry governs firewall_policy_id and identify the missing error or expected behavior. Done means the attachment behavior is reproducible and the relevant specification or issue has a clear, actionable resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, terraform
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.