Skip to content

Commit ab7f449

Browse files
authored
Merge pull request #7 from MicrosoftCloudEssentials-LearningHub/ai-services-namevar
variable for ai services name
2 parents 0283847 + e3d6ede commit ab7f449

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

terraform-infrastructure/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ resource "azurerm_storage_account" "example" {
5252

5353
// AI Services Account
5454
resource "azurerm_ai_services" "aiserviceaccount" {
55-
name = "aiservicesbx1test"
55+
name = var.aiservices_name
5656
location = azurerm_resource_group.rg.location
5757
resource_group_name = azurerm_resource_group.rg.name
5858
sku_name = "S0"

terraform-infrastructure/terraform.tfvars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ subscription_id = "<your_subscription_id>"
22
resource_group_name = "RG-ai-foundryx1"
33
location = "East US"
44
storage_account_name = "aiagentssabx1"
5+
aiservices_name = "aiservicesbx1test"
56
keyvault_name = "aiagentkvtestbx1"
67
openai_account_name = "aoaibx1test"
78
search_service_name = "aisearchbx1test"

terraform-infrastructure/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ variable "keyvault_name" {
1919
type = string
2020
}
2121

22+
variable "aiservices_name" {
23+
description = "The name of the AI services account"
24+
type = string
25+
}
26+
2227
variable "storage_account_name" {
2328
description = "The name of the storage account"
2429
type = string

0 commit comments

Comments
 (0)