Skip to content

Commit ea26003

Browse files
committed
updating examples
1 parent 53a5cf9 commit ea26003

File tree

4 files changed

+51
-36
lines changed

4 files changed

+51
-36
lines changed

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,28 @@ These types of resources supported:
2020
```hcl
2121
module "vmscaleset" {
2222
source = "kumarvna/vm-scale-sets/azurerm"
23-
version = "2.0.0"
23+
version = "2.1.0"
2424
2525
# Resource Group and location, VNet and Subnet detials (Required)
26-
resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
27-
virtual_network_name = "vnet-default-hub-westeurope"
28-
subnet_name = "snet-management-default-hub-westeurope"
26+
resource_group_name = "rg-shared-westeurope-01"
27+
virtual_network_name = "vnet-shared-hub-westeurope-001"
28+
subnet_name = "snet-management"
2929
vmscaleset_name = "testvmss"
3030
3131
# (Optional) To enable Azure Monitoring and install log analytics agents
32-
log_analytics_workspace_name = var.log_analytics_workspace_id
33-
hub_storage_account_name = var.hub_storage_account_id
32+
log_analytics_workspace_name = var.log_analytics_workspace_name
33+
hub_storage_account_name = var.hub_storage_account_name
34+
35+
# Deploy log analytics agents to virtual machine. Log analytics workspace name required.
36+
# Defaults to `false`
37+
deploy_log_analytics_agent = false
3438
3539
# This module support multiple Pre-Defined Linux and Windows Distributions.
3640
# These distributions support the Automatic OS image upgrades in virtual machine scale sets
3741
# Linux images: ubuntu1804, ubuntu1604, centos75, coreos
3842
# Windows Images: windows2012r2dc, windows2016dc, windows2019dc, windows2016dccore
3943
# Specify the RSA key for production workloads and set generate_admin_ssh_key argument to false
40-
# When you use Autoscaling feature, instances_count will become default and minimum instance count.
44+
# When you use Autoscaling feature, instances_count will become default and minimum instance count.
4145
os_flavor = "linux"
4246
linux_distribution_name = "ubuntu1804"
4347
generate_admin_ssh_key = false
@@ -48,15 +52,15 @@ module "vmscaleset" {
4852
# Specify health probe port to allow LB to detect the backend endpoint status
4953
# Standard Load Balancer helps load-balance TCP and UDP flows on all ports simultaneously
5054
# Specify the list of ports based on your requirement for Load balanced ports
51-
# for additional data disks, provide the list for required size for the disk.
55+
# for additional data disks, provide the list for required size for the disk.
5256
load_balancer_type = "public"
5357
load_balancer_health_probe_port = 80
5458
load_balanced_port_list = [80, 443]
5559
additional_data_disks = [100, 200]
5660
57-
# Enable Auto scaling feature for VM scaleset by set argument to true.
61+
# Enable Auto scaling feature for VM scaleset by set argument to true.
5862
# Instances_count in VMSS will become default and minimum instance count.
59-
# Automatically scale out the number of VM instances based on CPU Average only.
63+
# Automatically scale out the number of VM instances based on CPU Average only.
6064
enable_autoscale_for_vmss = true
6165
minimum_instances_count = 2
6266
maximum_instances_count = 5
@@ -65,7 +69,7 @@ module "vmscaleset" {
6569
6670
# Network Seurity group port allow definitions for each Virtual Machine
6771
# NSG association to be added automatically for all network interfaces.
68-
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
72+
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
6973
# For production environments, we recommend using a VPN or private connection
7074
nsg_inbound_rules = [
7175
{
@@ -82,7 +86,7 @@ module "vmscaleset" {
8286
]
8387
8488
# Adding TAG's to your Azure resources (Required)
85-
# ProjectName and Env are already declared above, to use them here, create a varible.
89+
# ProjectName and Env are already declared above, to use them here, create a varible.
8690
tags = {
8791
ProjectName = "demo-internal"
8892
Env = "dev"

examples/README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,28 @@ Following example creates Linux virtual machine scale sets with load balancer an
1313
```hcl
1414
module "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"

examples/linux_vm_scale_sets/README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,28 @@ This module deploys Windows or Linux virtual machine scale sets with Public / Pr
77
```hcl
88
module "vmscaleset" {
99
source = "kumarvna/vm-scale-sets/azurerm"
10-
version = "2.0.0"
10+
version = "2.1.0"
1111
1212
# Resource Group and location, VNet and Subnet detials (Required)
13-
resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
14-
virtual_network_name = "vnet-default-hub-westeurope"
15-
subnet_name = "snet-management-default-hub-westeurope"
13+
resource_group_name = "rg-shared-westeurope-01"
14+
virtual_network_name = "vnet-shared-hub-westeurope-001"
15+
subnet_name = "snet-management"
1616
vmscaleset_name = "testvmss"
1717
1818
# (Optional) To enable Azure Monitoring and install log analytics agents
19-
log_analytics_workspace_name = var.log_analytics_workspace_id
20-
hub_storage_account_name = var.hub_storage_account_id
19+
log_analytics_workspace_name = var.log_analytics_workspace_name
20+
hub_storage_account_name = var.hub_storage_account_name
21+
22+
# Deploy log analytics agents to virtual machine. Log analytics workspace name required.
23+
# Defaults to `false`
24+
deploy_log_analytics_agent = false
2125
2226
# This module support multiple Pre-Defined Linux and Windows Distributions.
2327
# These distributions support the Automatic OS image upgrades in virtual machine scale sets
2428
# Linux images: ubuntu1804, ubuntu1604, centos75, coreos
2529
# Windows Images: windows2012r2dc, windows2016dc, windows2019dc, windows2016dccore
2630
# Specify the RSA key for production workloads and set generate_admin_ssh_key argument to false
27-
# When you use Autoscaling feature, instances_count will become default and minimum instance count.
31+
# When you use Autoscaling feature, instances_count will become default and minimum instance count.
2832
os_flavor = "linux"
2933
linux_distribution_name = "ubuntu1804"
3034
generate_admin_ssh_key = false
@@ -35,15 +39,15 @@ module "vmscaleset" {
3539
# Specify health probe port to allow LB to detect the backend endpoint status
3640
# Standard Load Balancer helps load-balance TCP and UDP flows on all ports simultaneously
3741
# Specify the list of ports based on your requirement for Load balanced ports
38-
# for additional data disks, provide the list for required size for the disk.
42+
# for additional data disks, provide the list for required size for the disk.
3943
load_balancer_type = "public"
4044
load_balancer_health_probe_port = 80
4145
load_balanced_port_list = [80, 443]
4246
additional_data_disks = [100, 200]
4347
44-
# Enable Auto scaling feature for VM scaleset by set argument to true.
48+
# Enable Auto scaling feature for VM scaleset by set argument to true.
4549
# Instances_count in VMSS will become default and minimum instance count.
46-
# Automatically scale out the number of VM instances based on CPU Average only.
50+
# Automatically scale out the number of VM instances based on CPU Average only.
4751
enable_autoscale_for_vmss = true
4852
minimum_instances_count = 2
4953
maximum_instances_count = 5
@@ -52,7 +56,7 @@ module "vmscaleset" {
5256
5357
# Network Seurity group port allow definitions for each Virtual Machine
5458
# NSG association to be added automatically for all network interfaces.
55-
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
59+
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
5660
# For production environments, we recommend using a VPN or private connection
5761
nsg_inbound_rules = [
5862
{
@@ -69,7 +73,7 @@ module "vmscaleset" {
6973
]
7074
7175
# Adding TAG's to your Azure resources (Required)
72-
# ProjectName and Env are already declared above, to use them here, create a varible.
76+
# ProjectName and Env are already declared above, to use them here, create a varible.
7377
tags = {
7478
ProjectName = "demo-internal"
7579
Env = "dev"

examples/windows_vm_scale_sets/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ module "vmscaleset" {
4949
scale_out_cpu_percentage_threshold = 80
5050
scale_in_cpu_percentage_threshold = 20
5151

52+
# Deploy IIS server minimal installation on VMMS instances
53+
intall_iis_server_on_instances = true
54+
5255
# Network Seurity group port allow definitions for each Virtual Machine
5356
# NSG association to be added automatically for all network interfaces.
5457
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.

0 commit comments

Comments
 (0)