edited readme
This commit is contained in:
parent
8060a92890
commit
af2cfe9093
@ -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
|
||||
}
|
||||
|
@ -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).
|
@ -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."
|
||||
|
Loading…
x
Reference in New Issue
Block a user