azurerm_cognitive_deployment
tries to update version, but doesn't really do so
#24516
Closed
1 task done
Labels
Is there an existing issue for this?
Community Note
Hi -
There seems to be an issue with the
azurerm_cognitive_account
resource, but i can't pin down what / why, or if im just doing something wonkey.Whats seems to be happening is, when i update just a "deployment's" version, terraform states it tried, and successful done so, but when i look on the azure OpenAI Studio portal, the old verion is still there.
if i rerun TF, TF will try again to update the versino, success, but again, nothing done.
Just for completeness sake, if i edit the version within the OpenAI Studio portal, the change sticks, that the new version stays.
For example, this terraform code will create an OpanAI account (Open AI instance in azure), and also a deplyment of gpt4.
Run terraform apply, and all will work well.
Then if we switch the version, more specifcally, just switch the version number from
version = "0314"
toversion = "0613"
and run TF apply, TF will success:... be nothing really changed ...
My current workaround is force a delete / recreate using
replace_triggered_by
,locals
, andnull_resource
to force recreation of the deployment, which causes downtime.Terraform Version
1.6.6 (Also tried 1.5.4)
AzureRM Provider Version
v3.87.0 (Also tried a few version between 3.87.0 to v3.80.0)
Affected Resource(s)/Data Source(s)
azurerm_cognitive_deployment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
I expect the version number to be updated in place, similar to how it was successful when using the console.
Actual Behaviour
Terraform run is success, the the change to the version number never really happened.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: