From 90caad51660de99ee058bb20859692f93bcaac8a Mon Sep 17 00:00:00 2001 From: Jacob Crowther Date: Thu, 13 Oct 2016 17:20:09 -0600 Subject: [PATCH] Specified a variable's contents Specified that the security group needs to be addressed by it's id and not by its name. This will assist when debugging the error with message "{name} is invalid. Expect fully qualified resource Id that start with azure .properties.networkSecurityGroup.id" --- .../docs/providers/azurerm/r/virtual_network.html.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/source/docs/providers/azurerm/r/virtual_network.html.markdown b/website/source/docs/providers/azurerm/r/virtual_network.html.markdown index 4e8b87175..ec04a70f7 100644 --- a/website/source/docs/providers/azurerm/r/virtual_network.html.markdown +++ b/website/source/docs/providers/azurerm/r/virtual_network.html.markdown @@ -34,6 +34,7 @@ resource "azurerm_virtual_network" "test" { subnet { name = "subnet3" address_prefix = "10.0.3.0/24" + security_group = "${azurerm_network_security_group.test.id}" } tags { @@ -73,7 +74,7 @@ The `subnet` block supports: * `address_prefix` - (Required) The address prefix to use for the subnet. * `security_group` - (Optional) The Network Security Group to associate with - the subnet. + the subnet. (Referenced by `id`, ie. `azurerm_network_security_group.test.id`) ## Attributes Reference @@ -88,4 +89,4 @@ Virtual Networks can be imported using the `resource id`, e.g. ``` terraform import azurerm_virtual_network.testNetwork /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/virtualNetworks/myvnet1 -``` \ No newline at end of file +```