Open jlodiba opened 1 year ago
Thanks for raising this issue. Seems it's service API issue since CosmosDB.Account GET API doesn't return createMode anymore when capabilities is set. So filed an issue https://github.com/Azure/azure-rest-api-specs/issues/24378 for tracking.
Is there an existing issue for this?
Community Note
Terraform Version
1.1.9
AzureRM Provider Version
3.59.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The Terraform configuration shoud be idempotent, in other words no matter how many times a plan is launched with the configuration above there shoudn't be any changes.
Actual Behaviour
When a create_mode value is specified and a capability is going to be used then when an cosmosdb account is already deployed when launching a plan and/or apply then the provider tells that a resource replacement is needed.
Notes:
Steps to Reproduce
Important Factoids
References
No response