generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for msgraph_resource.argocd_repo_server_owner_1[0] to include new values learned so far during apply, provider "registry.opentofu.org/microsoft/msgraph" changed the planned action from Update to DeleteThenCreate.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
When adding owner on application this fails.
resource "msgraph_resource" "argocd_repo_server" {
count = var.use_msgraph_provider ? 1 : 0
provider = msgraph.msgraph_app_owner
url = "applications"
body = {
displayName = "sa-argocd-repo-server-${local.customer}-${local.environment}"
#owners = [data.azuread_service_principal.azure_mgt_app_owner.object_id, data.azuread_service_principal.ad_app_owner.object_id]
}
response_export_values = {
appId = "appId"
id = "id"
}
}
resource "msgraph_resource" "argocd_repo_server_owner_1" {
count = var.use_msgraph_provider ? 1 : 0
provider = msgraph.msgraph_app_owner
url = "applications/${msgraph_resource.argocd_repo_server[0].output.id}/owners/$ref"
body = {
"@odata.id" = "https://graph.microsoft.com/v1.0/directoryObjects/${data.azuread_service_principal.azure_mgt_app_owner.object_id}"
}
depends_on = [
msgraph_resource.argocd_repo_server
]
}Metadata
Metadata
Assignees
Labels
No labels