templates
example dropdown
Example:
func main() {}
- Test
- build
Basic usage of this module is as follows:
module "example" {
source = "<module-path>"
# Required variables
location =
name =
# Optional variables
nsg_name = "my-tf-nsg"
public_ip_name = "my-tf-public-ip"
resource_group_name = "my-tf-resource-group"
storage_account_name = "my-tf-storage-account"
subnet_name = "my-tf-subnet"
vm_name = "my-tf-vm"
vm_size = "Standard_B1s"
vnet_name = "my-tf-vnet"
}
Name | Type |
---|---|
azurerm_virtual_machine.example | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
location | The location of the virtual machine | string |
n/a | yes |
name | The name of the virtual machine | string |
n/a | yes |
nsg_name | Name of the network security group | string |
"my-tf-nsg" |
no |
public_ip_name | Name of the public IP address | string |
"my-tf-public-ip" |
no |
resource_group_name | Name of the Azure resource group | string |
"my-tf-resource-group" |
no |
storage_account_name | Name of the storage account | string |
"my-tf-storage-account" |
no |
subnet_name | Name of the virtual network subnet | string |
"my-tf-subnet" |
no |
vm_name | Name of the virtual machine | string |
"my-tf-vm" |
no |
vm_size | Size of the virtual machine | string |
"Standard_B1s" |
no |
vnet_name | Name of the virtual network | string |
"my-tf-vnet" |
no |
Name | Description |
---|---|
public_ip_address | n/a |