azurerm_palo_alto_local_rulestack_rule

Manages a Palo Alto Local Rulestack Rule.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "rg-example"
  location = "West Europe"
}

resource "azurerm_palo_alto_local_rulestack" "example" {
  name                = "lrs-example"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

resource "azurerm_palo_alto_local_rulestack_rule" "example" {
  name         = "example-rule"
  rulestack_id = azurerm_palo_alto_local_rulestack.example.id
  priority     = 1000
  action       = "Allow"

  applications = ["any"]

  source {
    cidrs = ["10.0.0.0/8"]
  }

  destination {
    cidrs = ["192.168.16.0/24"]
  }
}

Arguments Reference

The following arguments are supported:



A category block supports the following:


A destination block supports the following:


A source block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Palo Alto Local Rulestack Rules can be imported using the resource id, e.g.

terraform import azurerm_palo_alto_local_rulestack_rule.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/myLocalRulestack/localRules/myRule1