From 946aed52cf67ee3ac2784ef36be223d28f149f18 Mon Sep 17 00:00:00 2001 From: Jesse Tellez Date: Thu, 3 Jul 2025 08:42:17 -0500 Subject: [PATCH 1/5] Update providers.tf Added subscription_id field to providers.tf --- .../15a-private-network-standard-agent-setup/code/providers.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf index f2453786..49ba5ee6 100644 --- a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf +++ b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf @@ -5,4 +5,5 @@ provider "azapi" { provider "azurerm" { features {} storage_use_azuread = true -} \ No newline at end of file + subscription_id = "azure-subscription-id" +} From 550322ffaf69790157e72223a33e8f024836343d Mon Sep 17 00:00:00 2001 From: Jesse Tellez Date: Thu, 3 Jul 2025 08:45:14 -0500 Subject: [PATCH 2/5] Update variables.tf Added subscription_id variable --- .../code/variables.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/variables.tf b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/variables.tf index 343489aa..716cceb6 100644 --- a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/variables.tf +++ b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/variables.tf @@ -20,4 +20,9 @@ variable "private_endpoint_subnet_address_prefix" { variable "location" { description = "The name of the location to provision the resources to" type = string -} \ No newline at end of file +} + +variable "subscription_id" { + description = "The subscription id where you are creating the Foundry resource" + type = string +} From 3ae5ee6ab58e07e25941abd0babd6acd496b9005 Mon Sep 17 00:00:00 2001 From: Jesse Tellez Date: Thu, 3 Jul 2025 08:45:55 -0500 Subject: [PATCH 3/5] Update providers.tf Changed subscription_id from hard-coded to variable --- .../15a-private-network-standard-agent-setup/code/providers.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf index 49ba5ee6..207d451b 100644 --- a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf +++ b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/providers.tf @@ -5,5 +5,5 @@ provider "azapi" { provider "azurerm" { features {} storage_use_azuread = true - subscription_id = "azure-subscription-id" + subscription_id = var.subscription_id } From f65489ecf9aba47508b58fe7df04b96b0b182038 Mon Sep 17 00:00:00 2001 From: Jesse Tellez Date: Thu, 3 Jul 2025 08:46:45 -0500 Subject: [PATCH 4/5] Update sample-terraform.tfvars Added subscription_id field --- .../code/sample-terraform.tfvars | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/sample-terraform.tfvars b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/sample-terraform.tfvars index 91fc3c49..8452b014 100644 --- a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/sample-terraform.tfvars +++ b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/code/sample-terraform.tfvars @@ -1,4 +1,5 @@ location = "westus3" +subscription_id = "44444444-4444-4444-4444-444444444444" # Optional virtual_network_address_space = "192.168.0.0/16" From 7a6c8becc4348ef6a60f884d433ee8dac94e97a0 Mon Sep 17 00:00:00 2001 From: Jesse Tellez Date: Thu, 3 Jul 2025 08:48:40 -0500 Subject: [PATCH 5/5] Update README.md Added subscription_id to Variables section --- .../15a-private-network-standard-agent-setup/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/README.md b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/README.md index 377be745..d2ea0c4b 100644 --- a/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/README.md +++ b/samples/microsoft/infrastructure-setup-terraform/15a-private-network-standard-agent-setup/README.md @@ -79,6 +79,7 @@ Note: The following resources will be created automatically for you: The variables listed below [must be provided](https://developer.hashicorp.com/terraform/language/values/variables#variable-definition-precedence) when performing deploying the templates. The file sample-terraform.tfvars provides a sample Terraform variables file that can be used. - **location** - The Azure region the resources will be deployed to. This must be the same region where the pre-existing virtual network has been deployed to. +- **subscription_id** - The subscription ID (ex: 44444444-4444-4444-4444-444444444444) that the resources created with this template will be deployed to. The variables listed below are optional and if not specified will use the defaults as included in the variables.tf file.