@@ -9,7 +9,7 @@ This terraform module is designed to deploy azure Windows or Linux virtual machi
99``` hcl
1010module "virtual-machine" {
1111 source = "kumarvna/virtual-machine/azurerm"
12- version = "1 .0.0"
12+ version = "2 .0.0"
1313
1414 # Resource Group, location, VNet and Subnet details
1515 resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
@@ -18,6 +18,10 @@ module "virtual-machine" {
1818 subnet_name = "snet-management-default-hub-westeurope"
1919 virtual_machine_name = "vm-linux"
2020
21+ # (Optional) To enable Azure Monitoring and install log analytics agents
22+ log_analytics_workspace_name = var.log_analytics_workspace_id
23+ hub_storage_account_name = var.hub_storage_account_id
24+
2125 # This module support multiple Pre-Defined Linux and Windows Distributions.
2226 # Linux images: ubuntu1804, ubuntu1604, centos75, centos77, centos81, coreos
2327 # Windows Images: windows2012r2dc, windows2016dc, windows2019dc, windows2016dccore
@@ -29,7 +33,7 @@ module "virtual-machine" {
2933 # Bring your own License (BOYL) images: mssql2019ent-byol, mssql2019std-byol
3034 os_flavor = "linux"
3135 linux_distribution_name = "ubuntu1804"
32- virtual_machine_size = "Standard_A2_v2"
36+ virtual_machine_size = "Standard_A2_v2"
3337 generate_admin_ssh_key = false
3438 admin_ssh_key_data = "~/.ssh/id_rsa.pub"
3539 instances_count = 2
@@ -70,14 +74,18 @@ module "virtual-machine" {
7074``` hcl
7175module "virtual-machine" {
7276 source = "kumarvna/virtual-machine/azurerm"
73- version = "1 .0.0"
77+ version = "2 .0.0"
7478
7579 # Resource Group, location, VNet and Subnet details
7680 resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
7781 location = "westeurope"
7882 virtual_network_name = "vnet-default-hub-westeurope"
7983 subnet_name = "snet-management-default-hub-westeurope"
80- virtual_machine_name = "vm-winsrv"
84+ virtual_machine_name = "vm-linux"
85+
86+ # (Optional) To enable Azure Monitoring and install log analytics agents
87+ log_analytics_workspace_name = var.log_analytics_workspace_id
88+ hub_storage_account_name = var.hub_storage_account_id
8189
8290 # This module support multiple Pre-Defined Linux and Windows Distributions.
8391 # Linux images: ubuntu1804, ubuntu1604, centos75, centos77, centos81, coreos
@@ -88,10 +96,10 @@ module "virtual-machine" {
8896 # RHEL8 images: mssql2019ent-rhel8, mssql2019std-rhel8, mssql2019dev-rhel8
8997 # Ubuntu images: mssql2019ent-ubuntu1804, mssql2019std-ubuntu1804, mssql2019dev-ubuntu1804
9098 # Bring your own License (BOYL) images: mssql2019ent-byol, mssql2019std-byol
91- os_flavor = "windows"
92- windows_distribution_name = "windows2019dc"
93- virtual_machine_size = "Standard_A2_v2"
94- admin_username = "azureadmin"
99+ os_flavor = "windows"
100+ windows_distribution_name = "windows2019dc"
101+ virtual_machine_size = "Standard_A2_v2"
102+ admin_username = "azureadmin"
95103 admin_password = "complex_password"
96104 instances_count = 2
97105 enable_vm_availability_set = true
@@ -132,14 +140,18 @@ module "virtual-machine" {
132140``` hcl
133141module "virtual-machine" {
134142 source = "kumarvna/virtual-machine/azurerm"
135- version = "1 .0.0"
143+ version = "2 .0.0"
136144
137145 # Resource Group, location, VNet and Subnet details
138146 resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
139147 location = "westeurope"
140148 virtual_network_name = "vnet-default-hub-westeurope"
141149 subnet_name = "snet-management-default-hub-westeurope"
142- virtual_machine_name = "vm-mssql"
150+ virtual_machine_name = "vm-linux"
151+
152+ # (Optional) To enable Azure Monitoring and install log analytics agents
153+ log_analytics_workspace_name = var.log_analytics_workspace_id
154+ hub_storage_account_name = var.hub_storage_account_id
143155
144156 # This module support multiple Pre-Defined Linux and Windows Distributions.
145157 # Linux images: ubuntu1804, ubuntu1604, centos75, centos77, centos81, coreos
@@ -152,7 +164,7 @@ module "virtual-machine" {
152164 # Bring your own License (BOYL) images: mssql2019ent-byol, mssql2019std-byol
153165 os_flavor = "windows"
154166 windows_distribution_name = "mssql2017std"
155- virtual_machine_size = "Standard_A2_v2"
167+ virtual_machine_size = "Standard_A2_v2"
156168 admin_username = "azureadmin"
157169 admin_password = "complex_password"
158170 instances_count = 2
0 commit comments