-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstandard.tf
61 lines (52 loc) · 2.03 KB
/
standard.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
data "azurerm_subnet" "devcc-back" {
name = "devcc-back"
virtual_network_name = "devcc-vnet"
resource_group_name = "network-dev-rg"
}
data "azurerm_private_dns_zone" "mssql" {
name = "privatelink.database.windows.net"
resource_group_name = "network-management-rg"
provider = azurerm.mgmt
}
module "sqlserver" {
source = "git::https://github.com/canada-ca-terraform-modules/terraform-azurerm-mssql-server.git?ref=v2.0.1"
name = "servername"
environment = "dev"
location = "canadacentral"
resource_group_name = "hosting-sql-dev-rg"
active_directory_administrator_login_username = ""
active_directory_administrator_object_id = ""
active_directory_administrator_tenant_id = ""
administrator_login = ""
administrator_login_password = ""
kv_name = "hostingops-sql-dev-kv"
kv_rg = "hostingops-sql-dev-rg"
kv_enable = true
sa_resource_group_name = "hostingops-sql-dev-rg"
firewall_rules = [] #List of IP addresses: Ex. ["0.0.0.0"]
tags = { "key" : "value" }
/*
#[Optional] Configurations
mssql_version = "12.0"
emails = ["[email protected]"]
retention_days = 90
account_replication_type = "ZRS"
express_va_enabled = true
*/
/*
#[Optional] Firewall Configurations
subnets = [data.azurerm_subnet.devcc-back.id]
ssl_minimal_tls_version_enforced = "1.2"
connection_policy = "Default"
*/
/*
#[Optional] User Assigned Managed Identity Configurations
primary_mi_id = "abcdefg1234567"
*/
/*
#[Optional] Private Endpoint Configurations
private_endpoints = {
"pename" = { subnet_id = data.azurerm_subnet.devcc-back.id, private_dns_zone_ids = [data.azurerm_private_dns_zone.mssql.id] }
}
*/
}