2023-09-01 23:27:50 +01:00
|
|
|
resource "azurerm_service_plan" "selector" {
|
|
|
|
name = var.site_name
|
|
|
|
resource_group_name = var.resource_group_name
|
|
|
|
location = var.resource_group_location
|
|
|
|
os_type = "Linux"
|
2023-09-04 23:23:25 +01:00
|
|
|
sku_name = var.service_plan_sku
|
2023-09-01 23:27:50 +01:00
|
|
|
}
|
|
|
|
|
2023-09-04 23:23:25 +01:00
|
|
|
resource "azurerm_linux_web_app" "selector" {
|
2023-09-01 23:27:50 +01:00
|
|
|
name = var.site_name
|
|
|
|
resource_group_name = var.resource_group_name
|
|
|
|
location = azurerm_service_plan.selector.location
|
|
|
|
service_plan_id = azurerm_service_plan.selector.id
|
|
|
|
|
|
|
|
site_config {
|
|
|
|
always_on = false
|
|
|
|
}
|
|
|
|
}
|