-
Notifications
You must be signed in to change notification settings - Fork 10
/
data.tf
35 lines (29 loc) · 1.24 KB
/
data.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
data "azurerm_key_vault" "keyvaultsecrets" {
name = "${var.keyVaultConfig.existingVaultName}"
resource_group_name = "${var.keyVaultConfig.existingRGName}"
}
data "azurerm_key_vault_secret" "localAdminPasswordSecret" {
name = "${var.keyVaultConfig.localAdminPasswordSecret}"
key_vault_id = "${data.azurerm_key_vault.keyvaultsecrets.id}"
}
data "azurerm_key_vault_secret" "domainAdminPasswordSecret" {
name = "${var.keyVaultConfig.domainAdminPasswordSecret}"
key_vault_id = "${data.azurerm_key_vault.keyvaultsecrets.id}"
}
data "azurerm_key_vault_secret" "sqlAdminPasswordSecret" {
name = "${var.sqlServerConfig.sqlServerServiceAccountPasswordSecret}"
key_vault_id = "${data.azurerm_key_vault.keyvaultsecrets.id}"
}
data "azurerm_subnet" "subnet" {
name = "${var.vnetConfig.dbSubnetName}"
virtual_network_name = "${var.vnetConfig.existingVnetName}"
resource_group_name = "${var.vnetConfig.existingVnetRG}"
}
data "azurerm_virtual_network" "vnet" {
name = "${var.vnetConfig.existingVnetName}"
resource_group_name = "${var.vnetConfig.existingVnetRG}"
}
# =============== TEMPLATES =============== #
data "template_file" "sqlvm" {
template = file("./Templates/SQLVirtualMachine.json")
}