Skip to content

Instantly share code, notes, and snippets.

@rollendxavier
Created October 3, 2022 02:00
Show Gist options
  • Select an option

  • Save rollendxavier/015d5a4afee2f3180771af0fbbf6dde9 to your computer and use it in GitHub Desktop.

Select an option

Save rollendxavier/015d5a4afee2f3180771af0fbbf6dde9 to your computer and use it in GitHub Desktop.
resource "azurerm_app_service" "app" {
name = "myhealth-apiapp"
location = "Australia East"
resource_group_name = "myhealth-rg"
app_service_plan_id = var.asp_id
app_settings = {
"APPINSIGHTS_INSTRUMENTATIONKEY" = var.ai_ins_key
"APPLICATIONINSIGHTS_CONNECTION_STRING" = var.ai_con_string
}
site_config {
http2_enabled = true
health_check_path = "/health"
}
logs {
detailed_error_messages_enabled = true
failed_request_tracing_enabled = true
http_logs {
file_system {
retention_in_days = 7
retention_in_mb = 25
}
}
}
identity {
type = "SystemAssigned"
}
tags = {
domain = "health"
}
lifecycle {
ignore_changes = [
app_settings["ASPNETCORE_ENVIRONMENT"]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment