@@ -13,24 +13,28 @@ Following example creates Linux virtual machine scale sets with load balancer an
1313``` hcl
1414module "vmscaleset" {
1515 source = "kumarvna/vm-scale-sets/azurerm"
16- version = "2.0 .0"
16+ version = "2.1 .0"
1717
1818 # Resource Group and location, VNet and Subnet detials (Required)
19- resource_group_name = "rg-hub-demo-internal- shared-westeurope-001 "
20- virtual_network_name = "vnet-default -hub-westeurope"
21- subnet_name = "snet-management-default-hub-westeurope "
19+ resource_group_name = "rg-shared-westeurope-01 "
20+ virtual_network_name = "vnet-shared -hub-westeurope-001 "
21+ subnet_name = "snet-management"
2222 vmscaleset_name = "testvmss"
2323
2424 # (Optional) To enable Azure Monitoring and install log analytics agents
25- log_analytics_workspace_name = var.log_analytics_workspace_id
26- hub_storage_account_name = var.hub_storage_account_id
25+ log_analytics_workspace_name = var.log_analytics_workspace_name
26+ hub_storage_account_name = var.hub_storage_account_name
27+
28+ # Deploy log analytics agents to virtual machine. Log analytics workspace name required.
29+ # Defaults to `false`
30+ deploy_log_analytics_agent = false
2731
2832 # This module support multiple Pre-Defined Linux and Windows Distributions.
2933 # These distributions support the Automatic OS image upgrades in virtual machine scale sets
3034 # Linux images: ubuntu1804, ubuntu1604, centos75, coreos
3135 # Windows Images: windows2012r2dc, windows2016dc, windows2019dc, windows2016dccore
3236 # Specify the RSA key for production workloads and set generate_admin_ssh_key argument to false
33- # When you use Autoscaling feature, instances_count will become default and minimum instance count.
37+ # When you use Autoscaling feature, instances_count will become default and minimum instance count.
3438 os_flavor = "linux"
3539 linux_distribution_name = "ubuntu1804"
3640 generate_admin_ssh_key = false
@@ -41,15 +45,15 @@ module "vmscaleset" {
4145 # Specify health probe port to allow LB to detect the backend endpoint status
4246 # Standard Load Balancer helps load-balance TCP and UDP flows on all ports simultaneously
4347 # Specify the list of ports based on your requirement for Load balanced ports
44- # for additional data disks, provide the list for required size for the disk.
48+ # for additional data disks, provide the list for required size for the disk.
4549 load_balancer_type = "public"
4650 load_balancer_health_probe_port = 80
4751 load_balanced_port_list = [80, 443]
4852 additional_data_disks = [100, 200]
4953
50- # Enable Auto scaling feature for VM scaleset by set argument to true.
54+ # Enable Auto scaling feature for VM scaleset by set argument to true.
5155 # Instances_count in VMSS will become default and minimum instance count.
52- # Automatically scale out the number of VM instances based on CPU Average only.
56+ # Automatically scale out the number of VM instances based on CPU Average only.
5357 enable_autoscale_for_vmss = true
5458 minimum_instances_count = 2
5559 maximum_instances_count = 5
@@ -58,7 +62,7 @@ module "vmscaleset" {
5862
5963 # Network Seurity group port allow definitions for each Virtual Machine
6064 # NSG association to be added automatically for all network interfaces.
61- # SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
65+ # SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
6266 # For production environments, we recommend using a VPN or private connection
6367 nsg_inbound_rules = [
6468 {
@@ -75,7 +79,7 @@ module "vmscaleset" {
7579 ]
7680
7781 # Adding TAG's to your Azure resources (Required)
78- # ProjectName and Env are already declared above, to use them here, create a varible.
82+ # ProjectName and Env are already declared above, to use them here, create a varible.
7983 tags = {
8084 ProjectName = "demo-internal"
8185 Env = "dev"
0 commit comments