@@ -12,20 +12,25 @@ These types of resources supported:
1212* [ Network Security Group] ( https://www.terraform.io/docs/providers/azurerm/r/network_security_group.html )
1313* [ Availability Set] ( https://www.terraform.io/docs/providers/azurerm/r/availability_set.html )
1414* [ SSH2 Key generation for Dev Environments] ( https://www.terraform.io/docs/providers/tls/r/private_key.html )
15+ * [ Azure Monitoring Diagnostics] ( https://www.terraform.io/docs/providers/azurerm/r/monitor_diagnostic_setting.html )
1516
1617## Module Usage
1718
1819``` hcl
1920module "virtual-machine" {
2021 source = "kumarvna/virtual-machine/azurerm"
21- version = "1 .0.0"
22+ version = "2 .0.0"
2223
2324 # Resource Group, location, VNet and Subnet details
2425 resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
2526 location = "westeurope"
2627 virtual_network_name = "vnet-default-hub-westeurope"
2728 subnet_name = "snet-management-default-hub-westeurope"
28- virtual_machine_name = "testvm"
29+ virtual_machine_name = "vm-linux"
30+
31+ # (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
2934
3035 # This module support multiple Pre-Defined Linux and Windows Distributions.
3136 # Linux images: ubuntu1804, ubuntu1604, centos75, centos77, centos81, coreos
@@ -102,7 +107,8 @@ If the pre-defined Windows or Linux variants are not sufficient then, you can sp
102107
103108``` hcl
104109module "virtual-machine" {
105- source = "github.com/kumarvit/terraform-azurerm-virtual-machine"
110+ source = "kumarvna/virtual-machine/azurerm"
111+ version = "2.0.0"
106112
107113 # .... omitted
108114
@@ -194,7 +200,7 @@ In the Source and Destination columns, `VirtualNetwork`, `AzureLoadBalancer`, an
194200``` hcl
195201module "virtual-machine" {
196202 source = "kumarvna/virtual-machine/azurerm"
197- version = "1 .0.0"
203+ version = "2 .0.0"
198204
199205 # .... omitted
200206
@@ -254,7 +260,7 @@ End Date of the Project|Date when this application, workload, or service is plan
254260``` hcl
255261module "virtual-machine" {
256262 source = "kumarvna/virtual-machine/azurerm"
257- version = "1 .0.0"
263+ version = "2 .0.0"
258264
259265 # Resource Group, location, VNet and Subnet details
260266 resource_group_name = "rg-hub-demo-internal-shared-westeurope-001"
0 commit comments