-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation/updating azurerm_cosmosdb_table for Serverless CosmosDB returns errors #9417
Comments
@MasterKolka this is related to #8175 and the fix is the same was submitted to fix that issue. |
This has been released in version 2.42.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.42.0"
}
# ... other configuration ... |
Hi there. This fix has allowed serverless mongo cosmos dbs to be created once, which wasn't possible before this fix. But re-running This is using version 2.42.0
|
Hello, Encountering the same issue as @OisinKyne after upgrading to 2.42.0 and creating a new CosmosDB account from scratch.
But I think there is already an open issue for this here #9697, which wasn't part of the 2.42.0 release. |
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 👉 [email protected]. Thanks! |
Hello,
There is an error during creation/updating azurerm_cosmosdb_table resources for Serverless CosmosDB account.
azurerm version = 2.37.0
Error reading Throughput on Cosmos Table "table" (Account: "account") ID: documentdb.TableResourcesClient#GetTableThroughput: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Message: {"code":"BadRequest","message":"Reading or replacing offers is not supported for serverless accounts.\r\nActivityId: aab95b5c-fa8c-4bc2-949b-c9eb161a28a4, Microsoft.Azure.Documents.Common/2.11.0"}, Request URI: /offers, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.11.0"
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_cosmosdb_table
Terraform Configuration Files
Output
Error reading Throughput on Cosmos Table "table1" (Account: "account0") ID: documentdb.TableResourcesClient#GetTableThroughput: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Message: {"code":"BadRequest","message":"Reading or replacing offers is not supported for serverless accounts.\r\nActivityId: aab95b5c-fa8c-4bc2-949b-c9eb161a28a4, Microsoft.Azure.Documents.Common/2.11.0"}, Request URI: /offers, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.11.0"
Expected Behaviour
it works without an error
Actual Behaviour
It doesn't work. Error is returnded.
Steps to Reproduce
terraform plan
/ 'terraform apply'The text was updated successfully, but these errors were encountered: