Ignoring the case for NSG Protocol's in the state (#13153)

This commit is contained in:
Tom Harvey 2017-03-29 17:55:20 +02:00 committed by Paul Stack
parent f1fba64926
commit 25da340543
2 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@ func resourceArmNetworkSecurityGroup() *schema.Resource {
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
ValidateFunc: validateNetworkSecurityRuleProtocol, ValidateFunc: validateNetworkSecurityRuleProtocol,
StateFunc: ignoreCaseStateFunc,
}, },
"source_port_range": { "source_port_range": {

View File

@ -204,7 +204,7 @@ resource "azurerm_network_security_group" "test" {
priority = 100 priority = 100
direction = "Inbound" direction = "Inbound"
access = "Allow" access = "Allow"
protocol = "Tcp" protocol = "TCP"
source_port_range = "*" source_port_range = "*"
destination_port_range = "*" destination_port_range = "*"
source_address_prefix = "*" source_address_prefix = "*"