-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
82 lines (69 loc) · 2.42 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
variable "name" {
type = string
description = "(Required) Specifies the name of the Virtual Machine. Changing this forces a new resource to be created."
}
variable "resource_group_name" {
type = string
description = "(Required) Specifies the name of the Resource Group in which the Virtual Machine should exist. Changing this forces a new resource to be created."
}
variable "location" {
type = string
description = "(Required) Specifies the Azure Region where the Virtual Machine exists. Changing this forces a new resource to be created."
}
variable "subnet_id" {
type = string
description = "(Required) Reference to a subnet in which this Virtual Machine has been created."
}
variable "image" {
type = map(string)
description = "(Optional) To provision vm from an Azure Platform Image."
default = {
publisher = "MicrosoftWindowsDesktop"
offer = "Windows-10"
sku = "rs4-pro"
version = "latest"
}
}
variable "os_profile_windows_config" {
type = map(string)
description = "(Optional) To configure windows profile."
default = {
enable_automatic_upgrades = true
provision_vm_agent = true # Required VM Agent to execute Azure virtual machine extensions.
timezone = "Singapore Standard Time" # Specifies the time zone of the virtual machine, the possible values are defined http://jackstromberg.com/2017/01/list-of-time-zones-consumed-by-azure/
}
}
variable "vm_size" {
type = string
description = "(Optional) Specifies the size of the Virtual Machine."
default = "Standard_D4s_v3"
}
variable "fqdn" {
type = string
description = "(Required) FQDN"
}
variable "admin_username" {
type = string
description = "(Required) OS admin name for remote access."
}
variable "admin_password" {
type = string
description = "(Required) OS admin password for remote access."
}
variable "boot_diagnostics" {
description = "(Optional) Enable or Disable boot diagnostics"
default = true
}
variable "tags" {
description = "(Required) Map of tags for the deployment"
}
variable "file_uris" {
type = string
description = "(Optional) Azure Virtual Machine CustomScriptExtension file URIs"
default = ""
}
variable "file_name" {
type = string
description = "(Optional) Azure Virtual Machine CustomScriptExtension file name"
default = ""
}