You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Provider produced inconsistent result after apply
When applying changes to azurerm_kusto_database_principal.sp_rights, provider
"registry.terraform.io/-/azurerm" produced an unexpected new value for was
present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
Expected Behavior
I'm trying to add a service principal 'app' as a user to a Kusto database.
Actual Behavior
The permission actually gets applied, but the provider fails reading back the state, and the state never gets updated.
Re-running apply will try to apply the permission again, and always fail the same way.
@patrickbsf , it seems that I can add app as user to azurerm_kusto_database_principal successfully. Please see below my tf config. Is there anything I missed?
Interesting - once I switched the object_id to the 'right' id (I was using the 'id' of the service principal, not the application-id) then it stopped failing in the provider. It seems like it should handle this better but it's working now at least.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Mar 28, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.20
Affected Resource(s)
Terraform Configuration Files
If it matters, the 'real' code pulls the values from module outputs, but for simplicity I'm showing synthetic variable names.
Debug Output
azurerm_kusto_database_principal.sp_rights: Creating...
Error: Provider produced inconsistent result after apply
When applying changes to azurerm_kusto_database_principal.sp_rights, provider
"registry.terraform.io/-/azurerm" produced an unexpected new value for was
present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
Expected Behavior
I'm trying to add a service principal 'app' as a user to a Kusto database.
Actual Behavior
The permission actually gets applied, but the provider fails reading back the state, and the state never gets updated.
Re-running apply will try to apply the permission again, and always fail the same way.
Steps to Reproduce
terraform apply
See #4414
The text was updated successfully, but these errors were encountered: