Skip to content

Instantly share code, notes, and snippets.

@dilani14
Created April 27, 2020 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilani14/a7d8014fe5255f5692fea572778352a6 to your computer and use it in GitHub Desktop.
Save dilani14/a7d8014fe5255f5692fea572778352a6 to your computer and use it in GitHub Desktop.
deploy app service
resource "azurerm_app_service_plan" "serviceplan" {
name = "diltf-appserviceplan"
location = var.location
resource_group_name = azurerm_resource_group.rg.name
sku {
tier = "Standard"
size = "S1"
}
}
resource "azurerm_app_service" "appservice" {
name = "diltf-app-service"
location = var.location
resource_group_name = azurerm_resource_group.rg.name
app_service_plan_id = azurerm_app_service_plan.serviceplan.id
app_settings = {
"ASPNETCORE_ENVIRONMENT" = "QA"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment