computegroup
Azure/computegroup/azurerm
Terraform Azure RM Compute Group Module
Install
README
terraform-azurerm-computegroup Deploys a group of Virtual Machines exposed to a public IP via a Load Balancer  This Terraform module deploys a Virtual Machines Scale Set in Azure and opens the specified ports on the loadbalancer for external access and returns the id of the VM scale set deployed. This module requires a network and loadbalancer to be provider separately. You can provision them with the "Azure/network/azurerm" and "Azure/loadbalancer/azurerm" modules. Usage Using the vm_os_simple: ``hcl provider "azurerm" { version = "~> 1.0" } variable "resource_group_name" { default = "terraform-test" } module "network" { source = "Azure/network/azurerm" location = "westus" resource_group_name = "${var.resource_grou
Inputs (21)
| Name | Type | Description | Default |
|---|---|---|---|
| vnet_subnet_id | string | The subnet id of the virtual network on which the vm scale set will be connected | required |
| load_balancer_backend_address_pool_ids | string | The id of the backend address pools of the loadbalancer to which the VM scale se | required |
| network_profile | string | The name of the network profile that will be used in the VM scale set | "terraformnetworkprofile" |
| vm_os_simple | string | Specify Ubuntu or Windows to get the latest version of each os | "" |
| vm_os_publisher | string | The name of the publisher of the image that you want to deploy | "" |
| vm_os_sku | string | The sku of the image that you want to deploy | "" |
| vm_os_version | string | The version of the image that you want to deploy. | "latest" |
| resource_group_name | string | The name of the resource group in which the resources will be created | "vmssrg" |
| location | string | The location where the resources will be created | "" |
| computer_name_prefix | string | The prefix that will be used for the hostname of the instances part of the VM sc | "vmss" |
| managed_disk_type | string | Type of managed disk for the VMs that will be part of this compute group. Allowa | "Standard_LRS" |
| cmd_extension | string | Command to be excuted by the custom script extension | "echo hello" |
| vm_size | string | Size of the Virtual Machine based on Azure sizing | "Standard_A0" |
| admin_username | string | The admin username of the VMSS that will be deployed | "azureuser" |
| nb_instance | string | Specify the number of vm instances | "1" |
| vm_os_offer | string | The name of the offer of the image that you want to deploy | "" |
| tags | map | A map of the tags to use on the resources that are deployed with this module. | {
"source": "terraform"
} |
| vmscaleset_name | string | The name of the VM scale set that will be created in Azure | "vmscaleset" |
| admin_password | string | The admin password to be used on the VMSS that will be deployed. The password mu | "" |
| ssh_key | string | Path to the public key to be used for ssh access to the VM | "~/.ssh/id_rsa.pub" |
| vm_os_id | string | The ID of the image that you want to deploy if you are using a custom image. | "" |
Outputs (1)
vmss_id