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