Edgar Dockus ,
I did a lab and I was able to see the Description.
I create the Firewall Policy and Rule Collection Group via the Terraform template.
resource "azurerm_resource_group" "fwrg" {
name = "fwrg"
location = "West Europe"
}
resource "azurerm_firewall_policy" "fwpolicy" {
name = "fwpolicy"
resource_group_name = azurerm_resource_group.fwrg.name
location = azurerm_resource_group.fwrg.location
}
resource "azurerm_firewall_policy_rule_collection_group" "rcg" {
name = "rcg"
firewall_policy_id = azurerm_firewall_policy.fwpolicy.id
priority = 500
network_rule_collection {
name = "network_rule_collection1"
priority = 400
action = "Deny"
rule {
name = "network_rule_collection1_rule1"
protocols = ["TCP", "UDP"]
source_addresses = ["10.0.0.1"]
destination_addresses = ["192.168.1.1", "192.168.1.2"]
destination_ports = ["80", "1000-2000"]
description = "testDescFromTerraform"
}
}
}
I then try to get the Description field of the rule, using Powershell
$ruleCollectionGroup = Get-AzFirewallPolicyRuleCollectionGroup -Name rcg -ResourceGroupName fwrg -AzureFirewallPolicyName fwpolicy
$ruleCollectionGroup.properties.rulecollection[0].rules[0].description
As you can see, I am successful
Thanks,
Kapil