Skip to content

Commit

Permalink
Merge pull request #25 from PerfectThymeTech/marvinbuss/update_aoai_l…
Browse files Browse the repository at this point in the history
…ocation

Update AOAI Location
  • Loading branch information
marvinbuss authored Feb 11, 2024
2 parents 049b9fa + 66c955e commit 0f80487
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/infra/openai.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "azurerm_cognitive_account" "cognitive_account_openai" {
count = var.open_ai_enabled ? 1 : 0

name = "${local.prefix}-aoai001"
location = var.location
location = var.location_openai
resource_group_name = data.azurerm_resource_group.resource_group.name
tags = var.tags
identity {
Expand Down
6 changes: 6 additions & 0 deletions code/infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ variable "location" {
sensitive = false
}

variable "location_openai" {
description = "Specifies the location for Azure Open AI."
type = string
sensitive = false
}

variable "environment" {
description = "Specifies the environment of the deployment."
type = string
Expand Down
1 change: 1 addition & 0 deletions config/PerfectThymeTech/vars.tfvars
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# General variables
location = "northeurope"
location_openai = "francecentral"
environment = "dev"
prefix = "dpml"
tags = {}
Expand Down

0 comments on commit 0f80487

Please sign in to comment.