Open jpenna opened 2 weeks ago
Same thing for custom domains:
resource "azapi_resource" "webapp_custom_domain" {
type = "Microsoft.Web/staticSites/customDomains@2022-09-01"
name = "<DOMAIN>"
parent_id = azurerm_static_web_app.web_app.id
body = {
properties = {
validationMethod = "cname-delegation"
}
}
}
Updating location, which isn't available through the API:
Terraform will perform the following actions:
# module.web_app.azapi_resource.webapp_custom_domain must be replaced
-/+ resource "azapi_resource" "webapp_custom_domain" {
~ id = "<ID>" -> (known after apply)
- location = "East US 2" -> null # forces replacement
name = "<DOMAIN>"
~ output = {} -> (known after apply)
# (6 unchanged attributes hidden)
}
Plan: 1 to add, 0 to change, 1 to destroy.
I'm using
azapi 2.0.0-beta
.I'm using
azapi
to link a backen to my static web app. The initial deployment worked great, but then when I doterraform plan
, it outputs the following:There is no
location
param to define. It was set automatically by Azure and terraform wants to recreate the resource on every plan and apply. The configuration:Quickfix to stop updating