forked from pauldotyu/azure-virtual-desktop-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
155 lines (128 loc) · 2.9 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
variable "location" {
type = string
}
variable "tags" {
type = map(any)
}
variable "vnet_address_space" {
type = list(string)
}
variable "vnet_custom_dns_servers" {
type = list(string)
}
variable "snet_address_space" {
type = list(string)
}
variable "host_pool_type" {
type = string
default = "Pooled"
}
variable "host_pool_load_balancer_type" {
type = string
default = "DepthFirst"
}
variable "host_pool_validate_environment" {
type = bool
default = false
}
variable "host_pool_max_sessions_allowed" {
type = number
default = 999999
}
variable "desktop_app_group_type" {
type = string
default = "Desktop"
validation {
condition = can(index([
"Desktop",
"RemoteApp"
], var.desktop_app_group_type) >= 0)
error_message = "Pick desktop application group or remote application group but not both."
}
}
variable "vm_count" {
type = number
default = 1
}
variable "vm_sku" {
type = string
description = "Virtual machine SKU"
}
variable "vm_username" {
type = string
}
variable "vm_password" {
type = string
sensitive = true
}
variable "vm_marketplace_image" {
type = object({
publisher = string
offer = string
sku = string
version = string
})
description = "Virtual machine image - Use 'az vm image' command to find your image"
}
variable "vm_os_disk_caching" {
type = object({
caching = string
storage_account_type = string
})
description = "Virtual machine OS disk caching"
}
variable "vnet_peerings" {
type = list(object({
vnet_resource_group_name = string
vnet_name = string
}))
description = "List of remote virtual networks to peer with"
}
variable "sig_image_name" {
type = string
description = "Image definition name"
}
variable "sig_name" {
type = string
description = "Shared Image Gallery name"
}
variable "sig_resource_group_name" {
type = string
description = "Shared Image Gallery resource group name"
}
variable "configure_using_ansible" {
type = bool
description = "Set this to true if you want to use Ansible to perform the domain join and session host agent installation"
default = false
}
####################################################
# The variables listed below are only needed
# if not using Ansible to configure session hosts
####################################################
variable "domain_name" {
type = string
default = ""
}
variable "domain_ou_path" {
type = string
default = ""
}
variable "domain_username" {
type = string
default = ""
}
variable "domain_password" {
type = string
default = ""
}
variable "session_hosts" {
type = list(object({
batch = string
status = string
count = number
sig_image_version = string
}))
}
variable "host_pool_token_expiration" {
type = string
}