Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created February 24, 2019 04:34
Embed
What would you like to do?
Terraform - Project01 - Azure App Service Def
resource "azurerm_app_service" "test" {
name = "test-service123456789"
location = "${azurerm_resource_group.test.location}"
resource_group_name = "${azurerm_resource_group.test.name}"
app_service_plan_id = "${azurerm_app_service_plan.test.id}"
app_settings {
WEBSITES_ENABLE_APP_SERVICE_STORAFE = false
DOCKER_REGISTRY_SERVER_URL = "${data.azurerm_container_registry.test.login_server}"
DOCKER_REGISTRY_SERVER_USERNAME = "${data.azurerm_container_registry.test.admin_username}"
DOCKER_REGISTRY_SERVER_PASSWORD = "${data.azurerm_container_registry.test.admin_password}"
}
site_config {
linux_fx_version = "DOCKER|${data.azurerm_container_registry.test.login_server}/project01:latest"
always_on = "true"
}
identity {
type = "SystemAssigned"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment