Skip to content

Commit 0283847

Browse files
authored
Merge pull request #6 from MicrosoftCloudEssentials-LearningHub/kv-variable
kv as variable
2 parents f6c6524 + e78a47a commit 0283847

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
@@ -17,7 +17,7 @@ resource "azurerm_resource_group" "rg" {
1717

1818
// Key Vault
1919
resource "azurerm_key_vault" "example" {
20-
name = "aiagentkvtestbx1"
20+
name = var.keyvault_name
2121
location = azurerm_resource_group.rg.location
2222
resource_group_name = azurerm_resource_group.rg.name
2323
tenant_id = data.azurerm_client_config.example.tenant_id

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+
keyvault_name = "aiagentkvtestbx1"
56
openai_account_name = "aoaibx1test"
67
search_service_name = "aisearchbx1test"
78
developer_principal_id = "<your_developer_principal_id>"

terraform-infrastructure/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ variable "resource_group_name" {
1414
type = string
1515
}
1616

17+
variable "keyvault_name" {
18+
description = "The name of the key vault"
19+
type = string
20+
}
21+
1722
variable "storage_account_name" {
1823
description = "The name of the storage account"
1924
type = string

0 commit comments

Comments
 (0)