
update readmes clean up tf provider add readme and initial templates add initial pass at readmes more readme updates update various quickstarts finish cleaning up 101s more updates lots fo template updates add remaining more updates
25 lines
1.1 KiB
HCL
25 lines
1.1 KiB
HCL
resource "azurerm_app_service_plan" "webAppFrontend" {
|
|
name = "${var.siteName}serviceplan"
|
|
resource_group_name = "${azurerm_resource_group.webAppMySqlRg.name}"
|
|
location = "${azurerm_resource_group.webAppMySqlRg.location}"
|
|
tags = "${azurerm_resource_group.webAppMySqlRg.tags}"
|
|
|
|
sku {
|
|
tier = "${var.servicePlanTier}"
|
|
size = "${var.servicePlanSize}"
|
|
}
|
|
}
|
|
|
|
resource "azurerm_app_service" "webAppFrontend" {
|
|
name = "${var.siteName}"
|
|
location = "${azurerm_resource_group.webAppMySqlRg.location}"
|
|
resource_group_name = "${azurerm_resource_group.webAppMySqlRg.name}"
|
|
tags = "${azurerm_resource_group.webAppMySqlRg.tags}"
|
|
|
|
app_service_plan_id = "${azurerm_app_service_plan.webAppFrontend.id}"
|
|
connection_string {
|
|
name = "DefaultConnect"
|
|
type = "MySql"
|
|
value = "Database=${azurerm_mysql_database.webAppBackend.name};Data Source=${azurerm_mysql_server.webAppBackend.fqdn};User Id=${var.administratorLogin}@${azurerm_mysql_server.webAppBackend.name};Password=${var.administratorLoginPassword}"
|
|
}
|
|
} |