Fix import of resource group name for azurerm_network_security_group_rule.

This commit is contained in:
Andreas Kyrris 2016-09-27 18:21:18 +01:00
parent 8c678121e6
commit 9998adb6ad
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func TestAccAzureRMNetworkSecurityRule_importBasic(t *testing.T) {
ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name", "network_security_group_name"},
ImportStateVerifyIgnore: []string{"network_security_group_name"},
},
},
})

View File

@ -183,6 +183,7 @@ func resourceArmNetworkSecurityRuleRead(d *schema.ResourceData, meta interface{}
return nil
}
d.Set("resource_group_name", resGroup)
d.Set("access", resp.Properties.Access)
d.Set("destination_address_prefix", resp.Properties.DestinationAddressPrefix)
d.Set("destination_port_range", resp.Properties.DestinationPortRange)