Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CyprienLecallier/b72cb70e1b55b143ccc41c8f7710ac3d to your computer and use it in GitHub Desktop.
Save CyprienLecallier/b72cb70e1b55b143ccc41c8f7710ac3d to your computer and use it in GitHub Desktop.
resource "azurerm_app_service_slot" "my_app_service_container_staging" {
name = "staging"
app_service_name = azurerm_app_service.my_app_service_container.name
location = "France central"
resource_group_name = "MYRG"
app_service_plan_id = azurerm_app_service_plan.my_service_plan.id
https_only = true
client_affinity_enabled = true
site_config {
scm_type = "VSTSRM"
always_on = "true"
health_check_path = "/login"
}
identity {
type = "SystemAssigned, UserAssigned"
identity_ids = [data.azurerm_user_assigned_identity.assigned_identity_acr_pull.id]
}
app_settings = local.env_variables
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment