Skip to content

Azure Firewall policies & rule collections groups #601

Open
@ttaing3

Description

@ttaing3

Trying to run aztfexport query -n "resourceGroup =~ 'rg-example' and (type contains 'Microsoft.Network/firewallPolicies' or type contains 'Microsoft.Network/firewallPolicies/ruleCollectionGroups' or type contains 'Microsoft.Network/azureFirewalls')"

It'll export the state file and will show the firewall & firewall policy in the mapping file.. However there isn't any explicit config in the main.tf showing the rule collection groups , network rules , or application rules for us to modify . Seems like the rcgs aren't it's own seperate resource in Azure and nested under firewall policies. Is this possibly a limitation of the aztfexport tool?

I've tried running aztfexport query -n "resourceGroup =~ 'rg-example' and "type contains 'Microsoft.Network/firewallPolicies/ruleCollectionGroups'" and i get "Error: generating Terraform configuration: converting from state to configurations: converting terraform state to config: no state"

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions