From 5fcf1388955a862def159e77a1c7544b0616356d Mon Sep 17 00:00:00 2001 From: sdeguchi Date: Thu, 23 Jan 2025 10:48:22 -0800 Subject: [PATCH] fix: unsetting arm subscription --- src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 b/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 index e65ad26..4d96d8d 100644 --- a/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 +++ b/src/ALZ/Private/Deploy-Accelerator-Helpers/Invoke-Terraform.ps1 @@ -148,7 +148,7 @@ function Invoke-Terraform { if($removeSubscriptionId) { Write-Verbose "Removing environment variable ARM_SUBSCRIPTION_ID that was set prior to this run" - Remove-Item $env:ARM_SUBSCRIPTION_ID = $null + $env:ARM_SUBSCRIPTION_ID = $null } # Stop and display timer