Skip to content

Commit

Permalink
Test AOAI deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Aug 23, 2024
1 parent 8aac7f5 commit b18e274
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions code/infra/aoai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,35 @@ module "azure_open_ai" {
cognitive_account_firewall_bypass_azure_services = false
cognitive_account_outbound_network_access_restricted = true
cognitive_account_outbound_network_access_allowed_fqdns = []
cognitive_account_deployments = {}
# {
# gpt-4o = {
# model_name = "gpt-4o"
# model_version = "2024-05-13"
# scale_type = null
# scale_tier = null
# scale_size = null
# scale_family = null
# scale_capacity = 100
# }
# }
cognitive_account_deployments = {
gpt-4o = {
model_name = "gpt-4o"
model_version = "2024-05-13"
scale_type = "Standard"
scale_tier = null
scale_size = null
scale_family = null
scale_capacity = 100
}
}
diagnostics_configurations = []
subnet_id = "/subscriptions/8f171ff9-2b5b-4f0f-aed5-7fa360a1d094/resourceGroups/tfmdltst-dev-rg/providers/Microsoft.Network/virtualNetworks/tfmdltst-dev-vnet/subnets/PrivateEndpoints"
connectivity_delay_in_seconds = 0
private_dns_zone_id_cognitive_account = "/subscriptions/8f171ff9-2b5b-4f0f-aed5-7fa360a1d094/resourceGroups/mycrp-prd-global-dns/providers/Microsoft.Network/privateDnsZones/privatelink.cognitiveservices.azure.com"
customer_managed_key = null
}

resource "azurerm_cognitive_deployment" "cognitive_deployment_gpt_4o" {
name = "gpt-4o"
cognitive_account_id = module.azure_open_ai.cognitive_account_id
# resource "azurerm_cognitive_deployment" "cognitive_deployment_gpt_4o" {
# name = "gpt-4o"
# cognitive_account_id = module.azure_open_ai.cognitive_account_id

model {
format = "OpenAI"
name = "gpt-4o"
version = "2024-05-13"
}
scale {
capacity = 100
type = "Standard"
}
}
# model {
# format = "OpenAI"
# name = "gpt-4o"
# version = "2024-05-13"
# }
# scale {
# capacity = 100
# type = "Standard"
# }
# }

0 comments on commit b18e274

Please sign in to comment.