The API returns a readonly location
field which triggers the replacement
#655
Labels
Milestone
location
field which triggers the replacement
#655
Behavior
Take
Microsoft.Web/staticSites/linkedBackends
resource as an example, in the configuration, there's no location field defined and the schema validation also fails if thelocation
is defined.After the resource is created, the
location
field was set automatically by Azure and terraform wants to recreate the resource on every plan and apply. The configuration:The terraform output:
Workaround
Step 1. Add the
location
field to the configuration to make the configuration match with the remote state. It's okay to uselifecycle.ignore_changes
to suppress the difference too.Known resource types
It also happens to other resource types, listed as the following:
Related issues
#629
#601
#584
#563
#541
#538
#514
#511
The text was updated successfully, but these errors were encountered: