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
Azure doesn't allow included_path to be set when indexing_mode="none" so I would expect that when I set the indexing policy to none, Terraform removes the included_path block.
Even when providing two separate dynamic blocks, Terraform doesn't detect that the included_path should be removed.
I would further note that disabling indexing for data migrations is a common task. Since we can't do this with our Terraform configuration, we have to write scripts to change the index mode.
Actual Behaviour
Since included_path isn't removed, Azure throws the following error:
Error: updating Cosmos SQL Container "[redacted]" (Account: "[redacted]", Database: "[redacted]"): included_path must not be set if indexing_mode is "None"
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.4
AzureRM Provider Version
3.32.0
Affected Resource(s)/Data Source(s)
azurerm_cosmosdb_sql_container
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Azure doesn't allow
included_path
to be set whenindexing_mode="none"
so I would expect that when I set the indexing policy to none, Terraform removes theincluded_path
block.Even when providing two separate dynamic blocks, Terraform doesn't detect that the
included_path
should be removed.Actual Behaviour
Since
included_path
isn't removed, Azure throws the following error:Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: