I use Terraform by deploying an Azure OpenAI resource by the following code:
resource "azurerm_cognitive_account" "openai" {
name = var.openai_name
location = var.resource_location
resource_group_name = var.resource_group_name
kind = "OpenAI"
sku_name = "S0"
}
However, this code seems to deploy an Azure OpenAI resource with a region based endpoint instead of a resource based endpoint. See here the difference when I do it via the Azure portal vs via Terraform code:
From the portal
vs.
Using Terraform code
Why does this happen and how can I create an Azure OpenAI resource with a region based endpoint using Terraform?
New contributor
Luuk van Gasteren is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.