-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.tf
More file actions
28 lines (24 loc) · 749 Bytes
/
Copy pathmain.tf
File metadata and controls
28 lines (24 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
resource "azurerm_resource_group" "openai_rg" {
name = var.rg_name
location = var.location
}
resource "azurerm_cognitive_account" "oai" {
name = var.cognitive_account_name
location = azurerm_resource_group.openai_rg.location
resource_group_name = azurerm_resource_group.openai_rg.name
kind = "OpenAI"
sku_name = var.cognitive_account_sku
}
resource "azurerm_cognitive_deployment" "gpt4o" {
name = var.cognitive_deployment_name
cognitive_account_id = azurerm_cognitive_account.oai.id
model {
format = "OpenAI"
name = var.llm_model_name
version = var.llm_model_version
}
sku {
name = "GlobalStandard"
capacity = 200
}
}