Skip to content

Commit

Permalink
azurerm_network_security_rule & azurerm_network_security_rule -… (#4615)
Browse files Browse the repository at this point in the history
Attempt to fix #3937
  • Loading branch information
ignatz42 authored and katbyte committed Oct 17, 2019
1 parent 7adc7ee commit a3ac5c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions azurerm/resource_arm_network_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func resourceArmNetworkSecurityGroup() *schema.Resource {
string(network.SecurityRuleProtocolAsterisk),
string(network.SecurityRuleProtocolTCP),
string(network.SecurityRuleProtocolUDP),
string(network.SecurityRuleProtocolIcmp),
}, true),
DiffSuppressFunc: suppress.CaseDifference,
},
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_network_security_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ func resourceArmNetworkSecurityRule() *schema.Resource {
string(network.SecurityRuleProtocolAsterisk),
string(network.SecurityRuleProtocolTCP),
string(network.SecurityRuleProtocolUDP),
string(network.SecurityRuleProtocolIcmp),
}, true),
DiffSuppressFunc: suppress.CaseDifference,
},
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_network_security_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ resource "azurerm_network_security_rule" "test2" {
priority = 101
direction = "Inbound"
access = "Deny"
protocol = "Tcp"
protocol = "Icmp"
source_port_range = "*"
destination_port_range = "*"
source_address_prefix = "*"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/network_security_group.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Elements of `security_rule` support:

* `description` - (Optional) A description for this rule. Restricted to 140 characters.

* `protocol` - (Required) Network protocol this rule applies to. Can be `Tcp`, `Udp` or `*` to match both.
* `protocol` - (Required) Network protocol this rule applies to. Can be `Tcp`, `Udp`, `Icmp`, or `*` to match all.

* `source_port_range` - (Optional) Source Port or Range. Integer or range between `0` and `65535` or `*` to match any. This is required if `source_port_ranges` is not specified.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/network_security_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The following arguments are supported:

* `description` - (Optional) A description for this rule. Restricted to 140 characters.

* `protocol` - (Required) Network protocol this rule applies to. Possible values include `Tcp`, `Udp` or `*` (which matches both).
* `protocol` - (Required) Network protocol this rule applies to. Possible values include `Tcp`, `Udp`, `Icmp`, or `*` (which matches all).

* `source_port_range` - (Optional) Source Port or Range. Integer or range between `0` and `65535` or `*` to match any. This is required if `source_port_ranges` is not specified.

Expand Down

0 comments on commit a3ac5c6

Please sign in to comment.