Use this data source to access information about an existing Azure Firewall.
data "azurerm_firewall" "example" {
name = "firewall1"
resource_group_name = "firewall-RG"
}
output "firewall_private_ip" {
value = data.azurerm_firewall.example.ip_configuration[0].private_ip_address
}
name
- The name of the Azure Firewall.
resource_group_name
- The name of the Resource Group in which the Azure Firewall exists.
The following attributes are exported:
id
- The ID of the Azure Firewall.
location
- The Azure location where the Azure Firewall exists.
sku_name
- The SKU name of the Azure Firewall.
sku_tier
- The SKU tier of the Azure Firewall.
firewall_policy_id
- The ID of the Firewall Policy applied to the Azure Firewall.
ip_configuration
- A ip_configuration
block as defined below.
dns_servers
- The list of DNS servers that the Azure Firewall will direct DNS traffic to for name resolution.
dns_proxy_enabled
- Whether DNS proxy is enabled. It will forward DNS requests to the DNS servers when it is true
.
management_ip_configuration
- A management_ip_configuration
block as defined below, which allows force-tunnelling of traffic to be performed by the firewall.
threat_intel_mode
- The operation mode for threat intelligence-based filtering.
virtual_hub
- A virtual_hub
block as defined below.
zones
- A list of Availability Zones in which this Azure Firewall is located.
tags
- A mapping of tags assigned to the Azure Firewall.
A ip_configuration
block exports the following:
subnet_id
- The ID of the Subnet where the Azure Firewall is deployed.
private_ip_address
- The Private IP Address of the Azure Firewall.
public_ip_address_id
- The ID of the Public IP address of the Azure Firewall.
A management_ip_configuration
block exports the following:
subnet_id
- The ID of the Subnet where the Azure Firewall is deployed.
private_ip_address
- The Private IP Address of the Azure Firewall.
public_ip_address_id
- The ID of the Public IP address of the Azure Firewall.
A virtual_hub
block exports the following:
virtual_hub_id
- The ID of the Virtual Hub where the Azure Firewall resides in.
public_ip_count
- The number of public IPs assigned to the Azure Firewall.
public_ip_addresses
- The list of public IP addresses associated with the Azure Firewall.
private_ip_address
- The private IP address associated with the Azure Firewall.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Firewall.