I am creating a static web app via terraform, but I cannot reproduce the same result as I get when I create it manually via portal azure.
I want to connect my static web app to an azure DevOps project:
From the documentation is not clear how to do:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/static_web_app
Can anyone help me please?
Thank you
EDIT:
That is how I create the static web app:
resource "azurerm_static_web_app" "admin_crm_app" {
name = "${var.env_prefix}-crm-stapp-westeu"
resource_group_name = azurerm_resource_group.admin_rg.name
location = azurerm_service_plan.admin_plan.location
sku_tier = "Free"
sku_size = "Free"
preview_environments_enabled = false
app_settings = {
WEBSITE_TIME_ZONE = "Europe/Rome"
ASPNETCORE_ENVIRONMENT = "${var.env}"
# WEBSITE_WEBDEPLOY_USE_SCM = false
APPINSIGHTS_INSTRUMENTATIONKEY = azurerm_application_insights.admin_appi.instrumentation_key
APPLICATIONINSIGHTS_CONNECTION_STRING = azurerm_application_insights.admin_appi.connection_string
ApplicationInsightsAgent_EXTENSION_VERSION = "~3"
}
tags = {
Source = "${var.iac}"
}
}
Here the template that has been generate when I create the static web app manually on portal azure:
That are properties that have been generate from terraform instead:






