From af2cfe9093cd93957c7660ca8f0c4511a55da00b Mon Sep 17 00:00:00 2001 From: asudbring Date: Thu, 18 Jan 2024 22:46:17 -0800 Subject: [PATCH] edited readme --- .../101-virtual-network-create-two-subnets/main.tf | 2 +- .../101-virtual-network-create-two-subnets/readme.md | 9 +++++---- .../101-virtual-network-create-two-subnets/variables.tf | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/quickstart/101-virtual-network-create-two-subnets/main.tf b/quickstart/101-virtual-network-create-two-subnets/main.tf index 46a59836..b9b29045 100644 --- a/quickstart/101-virtual-network-create-two-subnets/main.tf +++ b/quickstart/101-virtual-network-create-two-subnets/main.tf @@ -29,6 +29,6 @@ resource "azurerm_subnet" "my_terraform_subnet_2" { } resource "random_pet" "prefix" { - prefix = var.prefix + prefix = var.resource_group_name_prefix length = 1 } diff --git a/quickstart/101-virtual-network-create-two-subnets/readme.md b/quickstart/101-virtual-network-create-two-subnets/readme.md index 377234a3..118baaa5 100644 --- a/quickstart/101-virtual-network-create-two-subnets/readme.md +++ b/quickstart/101-virtual-network-create-two-subnets/readme.md @@ -1,11 +1,13 @@ -# Azure resource group +# Azure Virtual Network with two subnets -This template deploys an Azure resource group with a random name beginning with "rg-". +This template deploys an Azure Virtual Network with two subnets. ## Terraform resource types - [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) - [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) +- [azurerm_virtual_network](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network) +- [azurerm_subnet](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subnet) ## Variables @@ -13,7 +15,6 @@ This template deploys an Azure resource group with a random name beginning with |-|-|-| | `resource_group_name_prefix` | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg | | `resource_group_location` | Location of the resource group. | eastus | +| `vnet_address_space` | Address space of the virtual network. | 10.0.0.0/16 | ## Example - -To see how to run this example, see [Create an Azure resource group using Terraform](https://docs.microsoft.com/azure/developer/terraform/create-resource-group). \ No newline at end of file diff --git a/quickstart/101-virtual-network-create-two-subnets/variables.tf b/quickstart/101-virtual-network-create-two-subnets/variables.tf index 8a8a8638..4238d09e 100644 --- a/quickstart/101-virtual-network-create-two-subnets/variables.tf +++ b/quickstart/101-virtual-network-create-two-subnets/variables.tf @@ -4,7 +4,7 @@ variable "resource_group_location" { description = "Location of the resource group." } -variable "prefix" { +variable "resource_group_name_prefix" { type = string default = "rg" description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."