Closed msha1026 closed 1 year ago
Hi @msha1026 , thanks for raising this issue. As the error message suggests, creating deployments is only able to do sequentially. I think you could try the depend_on meta to make the second deployment depend on the first one as a workaround. For azurerm devs, we could add locks to the parent resource and avoid having this problem. I will start implementing this later. Let me know if you have more questions on this.
Great, makes sense. We will use the depends_on
workaround for now. Thank you, @liuwuliuyun!
Hello, I am in a case where I create the azurerm_cognitive_deployment
through a count
and therefore cannot use the depends-on
workaround.
i.e. if my count is set to 3, I am almost sure to run into the above error.
If locks to the parent resource make it so that each resource in the count is applied sequentially, this does seem like the correct solution!
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.5.3
AzureRM Provider Version
3.65.0
Affected Resource(s)/Data Source(s)
azurerm_cognitive_deployment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Successfully created multiple OpenAI model deployments (assuming there's some retry logic under the hood).
Actual Behaviour
Failed to create multiple OpenAI model deployments.
Steps to Reproduce
No response
Important Factoids
No response
References
No response