Open geremy42 opened 2 years ago
Hi @geremy42 ,
Thank you for taking time to open this issue!
I found that if create the resource with public network access disabled, the last polling request returns Failed
state, but then the resource's state becomes Succeeded
. I believe this is a server-side bug, a workaround is creating the resource with public network access enabled, then disable it in the next terraform apply
.
I've created an issue in the swagger repo: https://github.com/Azure/azure-rest-api-specs/issues/20335
Hi @geremy42 ,
I have an update from the service team,
The issue is happening since disabling private access requires some configurations to be done on the Search resource before the Cognitive account is created..
As an immediate solution I suggest:
- Create the Azure Cognitive account with public network access enabled
- Then disable public network access by following the steps in: Network isolation and Private Link -question answering - Azure Cognitive Services | Microsoft Learn
Is there an existing issue for this?
Community Note
Terraform Version
1.1.7
AzureRM Provider Version
3.16.0
Affected Resource(s)/Data Source(s)
azurerm_cognitive_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
New azurerm_cognitive_account resource created without any errors and fully working
Actual Behaviour
The new azurerm_cognitive_account resource got created on Azure portal but with following error:
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response