Skip to content

Commit

Permalink
azurerm_firewall_policy_rule_collection_group - support ip range fo…
Browse files Browse the repository at this point in the history
…r addresses (#21542)
  • Loading branch information
myc2h6o authored Apr 26, 2023
1 parent 59e6ffa commit 6b53598
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func resourceFirewallPolicyRuleCollectionGroup() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
ValidateFunc: validation.Any(
validation.IsIPAddress,
validation.IsIPv4Range,
validation.IsCIDR,
validation.StringInSlice([]string{`*`}, false),
),
Expand All @@ -149,6 +150,7 @@ func resourceFirewallPolicyRuleCollectionGroup() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
ValidateFunc: validation.Any(
validation.IsIPAddress,
validation.IsIPv4Range,
validation.IsCIDR,
validation.StringInSlice([]string{`*`}, false),
),
Expand Down Expand Up @@ -252,6 +254,7 @@ func resourceFirewallPolicyRuleCollectionGroup() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
ValidateFunc: validation.Any(
validation.IsIPAddress,
validation.IsIPv4Range,
validation.IsCIDR,
validation.StringInSlice([]string{`*`}, false),
),
Expand Down Expand Up @@ -362,6 +365,7 @@ func resourceFirewallPolicyRuleCollectionGroup() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
ValidateFunc: validation.Any(
validation.IsIPAddress,
validation.IsIPv4Range,
validation.IsCIDR,
validation.StringInSlice([]string{`*`}, false),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ A `application_rule` (application rule) block supports the following:

* `protocols` - (Optional) One or more `protocols` blocks as defined below. Not required when specifying `destination_fqdn_tags`, but required when specifying `destination_fqdns`.

* `source_addresses` - (Optional) Specifies a list of source IP addresses (including CIDR and `*`).
* `source_addresses` - (Optional) Specifies a list of source IP addresses (including CIDR, IP range and `*`).

* `source_ip_groups` - (Optional) Specifies a list of source IP groups.

* `destination_addresses` - (Optional) Specifies a list of destination IP addresses (including CIDR and `*`).
* `destination_addresses` - (Optional) Specifies a list of destination IP addresses (including CIDR, IP range and `*`).

* `destination_urls` - (Optional) Specifies a list of destination URLs for which policy should hold. Needs Premium SKU for Firewall Policy. Conflicts with `destination_fqdns`.

Expand All @@ -167,11 +167,11 @@ A `network_rule` (network rule) block supports the following:

* `destination_ports` - (Required) Specifies a list of destination ports.

* `source_addresses` - (Optional) Specifies a list of source IP addresses (including CIDR and `*`).
* `source_addresses` - (Optional) Specifies a list of source IP addresses (including CIDR, IP range and `*`).

* `source_ip_groups` - (Optional) Specifies a list of source IP groups.

* `destination_addresses` - (Optional) Specifies a list of destination IP addresses (including CIDR and `*`) or Service Tags.
* `destination_addresses` - (Optional) Specifies a list of destination IP addresses (including CIDR, IP range and `*`) or Service Tags.

* `destination_ip_groups` - (Optional) Specifies a list of destination IP groups.

Expand All @@ -185,7 +185,7 @@ A `nat_rule` (NAT rule) block supports the following:

* `protocols` - (Required) Specifies a list of network protocols this rule applies to. Possible values are `TCP`, `UDP`.

* `source_addresses` - (Optional) Specifies a list of source IP addresses (including CIDR and `*`).
* `source_addresses` - (Optional) Specifies a list of source IP addresses (including CIDR, IP range and `*`).

* `source_ip_groups` - (Optional) Specifies a list of source IP groups.

Expand Down

0 comments on commit 6b53598

Please sign in to comment.