diff --git a/builtin/providers/azurerm/import_arm_network_security_rule_test.go b/builtin/providers/azurerm/import_arm_network_security_rule_test.go index 8e871767e..f69c88322 100644 --- a/builtin/providers/azurerm/import_arm_network_security_rule_test.go +++ b/builtin/providers/azurerm/import_arm_network_security_rule_test.go @@ -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"}, }, }, }) diff --git a/builtin/providers/azurerm/resource_arm_network_security_rule.go b/builtin/providers/azurerm/resource_arm_network_security_rule.go index e9ea8f5b5..eb4a06d82 100644 --- a/builtin/providers/azurerm/resource_arm_network_security_rule.go +++ b/builtin/providers/azurerm/resource_arm_network_security_rule.go @@ -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)