-
Notifications
You must be signed in to change notification settings - Fork 2
/
vm-sql-variables.tf
55 lines (45 loc) · 1.68 KB
/
vm-sql-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
##########################################
## Azure VM with SQL Module - Variables ##
##########################################
# Azure virtual machine settings #
variable "sql_vm_size" {
type = string
description = "Size (SKU) of the virtual machine to create"
}
variable "sql_license_type" {
type = string
description = "Specifies the BYOL type for the virtual machine. Possible values are 'Windows_Client' and 'Windows_Server' if set"
default = null
}
# Azure virtual machine storage settings #
variable "sql_delete_os_disk_on_termination" {
type = string
description = "Should the OS Disk (either the Managed Disk / VHD Blob) be deleted when the Virtual Machine is destroyed?"
default = "true" # Update for your environment
}
variable "sql_delete_data_disks_on_termination" {
description = "Should the Data Disks (either the Managed Disks / VHD Blobs) be deleted when the Virtual Machine is destroyed?"
type = string
default = "true" # Update for your environment
}
variable "sql_vm_image" {
type = map(string)
description = "Virtual machine source image information"
default = {
publisher = "MicrosoftSQLServer"
offer = "SQL2019-ws2019"
sku = "Standard" # enterprise, sqldev, standard, web
version = "latest"
}
}
# Azure virtual machine OS profile #
variable "sql_admin_username" {
description = "Username for Virtual Machine administrator account"
type = string
default = ""
}
variable "sql_admin_password" {
description = "Password for Virtual Machine administrator account"
type = string
default = ""
}