You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Deploy log analytics agents to virtual machine. Log analytics workspace name required.
36
+
# Defaults to `false`
37
+
deploy_log_analytics_agent = false
34
38
35
39
# This module support multiple Pre-Defined Linux and Windows Distributions.
36
40
# Linux images: ubuntu1804, ubuntu1604, centos75, centos77, centos81, coreos
@@ -49,9 +53,12 @@ module "virtual-machine" {
49
53
instances_count = 2
50
54
enable_vm_availability_set = true
51
55
56
+
# Add public IP to your VM
57
+
enable_public_ip_address = true
58
+
52
59
# Network Seurity group port allow definitions for each Virtual Machine
53
60
# NSG association to be added automatically for all network interfaces.
54
-
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
61
+
# SSH port 22 and 3389 is exposed to the Internet recommended for only testing.
55
62
# For production environments, recommended to use a VPN or private connection.
56
63
nsg_inbound_rules = [
57
64
{
@@ -68,7 +75,7 @@ module "virtual-machine" {
68
75
]
69
76
70
77
# Adding TAG's to your Azure resources (Required)
71
-
# ProjectName and Env are already declared above, to use them here, create a varible.
78
+
# ProjectName and Env are already declared above, to use them here, create a varible.
72
79
tags = {
73
80
ProjectName = "demo-internal"
74
81
Env = "dev"
@@ -81,9 +88,9 @@ module "virtual-machine" {
81
88
82
89
## Default Local Administrator and the Password
83
90
84
-
This module utilizes __`azureadmin`__ as a local administrator on virtual machines. If you want to you use custom username, then specify the same by setting up the argument `admin_username` with valid user string.
91
+
This module utilizes __`azureadmin`__ as a local administrator on virtual machines. If you want to you use custom username, then specify the same by setting up the argument `admin_username` with a valid user string.
85
92
86
-
By default, this module generates a strong password for all virtual machines. If you want to set the custom password, specify the argument `admin_password` with valid string.
93
+
By default, this module generates a strong password for all virtual machines also allows you to change the length of the random password (currently 24) using the `random_password_length = 32` variable. If you want to set the custom password, specify the argument `admin_password` with a valid string.
87
94
88
95
This module also generates SSH2 Key pair for Linux servers by default, however, it is only recommended to use for dev environment. For production environments, please generate your own SSH2 key with a passphrase and input the key by providing the path to the argument `admin_ssh_key_data`.
89
96
@@ -108,7 +115,7 @@ If the pre-defined Windows or Linux variants are not sufficient then, you can sp
108
115
```hcl
109
116
module "virtual-machine" {
110
117
source = "kumarvna/virtual-machine/azurerm"
111
-
version = "2.0.0"
118
+
version = "2.1.0"
112
119
113
120
# .... omitted
114
121
@@ -200,7 +207,7 @@ In the Source and Destination columns, `VirtualNetwork`, `AzureLoadBalancer`, an
200
207
```hcl
201
208
module "virtual-machine" {
202
209
source = "kumarvna/virtual-machine/azurerm"
203
-
version = "2.0.0"
210
+
version = "2.1.0"
204
211
205
212
# .... omitted
206
213
@@ -260,7 +267,7 @@ End Date of the Project|Date when this application, workload, or service is plan
260
267
```hcl
261
268
module "virtual-machine" {
262
269
source = "kumarvna/virtual-machine/azurerm"
263
-
version = "2.0.0"
270
+
version = "2.1.0"
264
271
265
272
# Resource Group, location, VNet and Subnet details
@@ -295,22 +317,29 @@ Name | Description | Type | Default
295
317
`private_ip_address`|The Static IP Address which should be used. This is valid only when `private_ip_address_allocation` is set to `Static`.|string|`null`
296
318
`dns_servers`|List of dns servers to use for network interface|string|`[]`
297
319
`enable_vm_availability_set`|Manages an Availability Set for Virtual Machines.|string|`false`
320
+
`platform_fault_domain_count`|Specifies the number of fault domains that are used|number|`3`
321
+
`platform_update_domain_count`|Specifies the number of update domains that are used|number|`5`
298
322
`enable_public_ip_address`|Reference to a Public IP Address to associate with the NIC|string|`false`
323
+
`public_ip_allocation_method`|Defines the allocation method for this IP address. Possible values are `Static` or `Dynamic`|string|`Static`
324
+
`public_ip_sku`|The SKU of the Public IP. Accepted values are `Basic` and `Standard`|string|`Standard`
299
325
`source_image_id`|The ID of an Image which each Virtual Machine should be based on|string|`null`
300
326
`custom_image`|Provide the custom image to this module if the default variants are not sufficient|map(object)|`null`
301
327
`linux_distribution_list`|Pre-defined Azure Linux VM images list|map(object)|`ubuntu1804`
302
328
`linux_distribution_name`|Variable to pick an OS flavor for Linux based Virtual Machine. Possible values are `centos81`, `centos77`, `centos77`, `ubuntu1804`, `ubuntu1604`, `coreos`, `mssql2019ent-rhel8`, `mssql2019std-rhel8`, `mssql2019dev-rhel8`, `mssql2019ent-ubuntu1804`, `mssql2019std-ubuntu1804`, `mssql2019dev-ubuntu1804`|string|`ubuntu1804`
303
329
`windows_distribution_list`|Pre-defined Azure Windows VM images list|map(object)|`"windows2019dc"`
304
330
`windows_distribution_name`|Variable to pick an OS flavor for Windows based VM. Possible values are `windows2012r2dc`, `windows2016dc`, `windows2019dc`, `windows2016dccore`, `mssql2017exp`, `mssql2017dev`, `mssql2017std`, `mssql2017ent`, `mssql2019dev`, `mssql2019std`, `mssql2019ent`, `mssql2019ent-byol`, `mssql2019std-byol`|string|`"windows2019dc"`
305
331
`os_disk_storage_account_type`|The Type of Storage Account for Internal OS Disk. Possible values include Standard_LRS, StandardSSD_LRS and Premium_LRS.|string|`"StandardSSD_LRS"`
332
+
`enable_ultra_ssd_data_disk_storage_support`|Should the capacity to enable Data Disks of the UltraSSD_LRS storage account type be supported on this Virtual Machine|string|`false`
306
333
`generate_admin_ssh_key`|Generates a secure private key and encodes it as PEM|string|`true`
307
334
`admin_ssh_key_data`|specify the path to the existing SSH key to authenticate Linux virtual machine|string|`""`
308
335
`admin_username`|The username of the local administrator used for the Virtual Machine|string|`"azureadmin"`
309
336
`admin_password`|The Password which should be used for the local-administrator on this Virtual Machine|string|`null`
337
+
`random_password_length`|The desired length of random password created by this module|number|`24`
310
338
`disable_password_authentication`|Should Password Authentication be disabled on this Virtual Machine. Applicable to Linux Virtual machine|string|`true`
311
339
`nsg_inbound_rules`|List of network rules to apply to network interface|object|`{}`
312
340
`dedicated_host_id`|The ID of a Dedicated Host where this machine should be run on|string|`null`
313
341
`license_type`|Specifies the type of on-premise license which should be used for this Virtual Machine. Possible values are `None`, `Windows_Client` and `Windows_Server`.|string|`"None"`
342
+
`vm_time_zone`|Specifies the Time Zone which should be used by the Virtual Machine. Ex. `"UTC"` or `"W. Europe Standard Time"`[The possible values are defined here](https://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/) |string|`null`
314
343
`Tags`|A map of tags to add to all resources|map|`{}`
315
344
316
345
## Outputs
@@ -335,7 +364,7 @@ Name | Description | Type | Default
335
364
336
365
## Authors
337
366
338
-
Module is maintained by [Kumaraswamy Vithanala](mailto:[email protected]) with the help from other awesome contributors.
367
+
Originally created by [Kumaraswamy Vithanala](mailto:[email protected]).
0 commit comments