-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathvariables.tf
173 lines (142 loc) · 4.21 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
variable "location" {
type = string
}
variable "desktopvirtualization_location" {
type = string
description = "DesktopVirtualization resource location can be different from session host region. As of 2/28/22, this resource is only available in the following regions: 'uksouth,ukwest,canadaeast,canadacentral,northeurope,westeurope,eastus,eastus2,westus,westus2,northcentralus,southcentralus,westcentralus,centralus'"
}
variable "netops_subscription_id" {
type = string
description = "Adding a new provider here as some AVD deployments may need to peer with hub vnets in a different subscription. If the hub network is in the same subscription as the AVD deployment, then set the AVD subscription ID here."
}
variable "netops_role_tag_value" {
type = string
description = "Virtual network peerings will be made based on a \"role\" tags on the resource. Any resource virtual network resources with this value will peered."
}
variable "devops_subscription_id" {
type = string
description = "Adding a new provider here as some AVD deployments may need to peer with hub vnets in a different subscription. If the hub network is in the same subscription as the AVD deployment, then set the AVD subscription ID here."
}
variable "devops_role_tag_value" {
type = string
description = "Virtual network peerings will be made based on a \"role\" tags on the resource. Any resource virtual network resources with this value will peered."
}
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 "aad_group_name" {
type = string
description = "Azure AD Security-Enabled Group to be assigned to the Desktop Application Group"
}
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 "acg_image_name" {
type = string
description = "Image definition name"
}
variable "acg_name" {
type = string
description = "Shared Image Gallery name"
}
variable "acg_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
acg_image_version = string
}))
}