Using the azurerm_linux_web_app has been a pain lately, every time I deploy a simple .net core app on linux using azurerm_linux_web_app it tries to replace the resource, I'm using the CI/CD pipelines to deploy the resources. But when I deploy the same app service using azurerm_app_service , I don't see any error (it only updates the resource)
This is a single resource, wherever the webapp is associated, it replaces everywhere with the new principal_id. Can someone see what is wrong?
# azurerm_role_assignment.acrpulladmin must be replaced
-/+ resource "azurerm_role_assignment" "acrpulladmin" {
~ id = "/subscriptions/***" -> (known after apply)
~ name = "1dcdvgbtg-ccdcdvfv-bh6543gs" -> (known after apply)
~ principal_id = "ccdcdvfv-1dcdvgbtg-ccdcdvfv" -> (known after apply) # forces replacement
~ principal_type = "ServicePrincipal" -> (known after apply)