From 410fd620be785e49bb9e31b27b6d2965a9e7f016 Mon Sep 17 00:00:00 2001 From: Jesse Houwing Date: Wed, 22 Nov 2023 16:44:30 +0100 Subject: [PATCH] Uses the correct env var on windows (#8800) Based on the changes made to speed up az on ubuntu, we found that this is the correct env var to use. --- images/windows/scripts/build/Install-AzureDevOpsCli.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/windows/scripts/build/Install-AzureDevOpsCli.ps1 b/images/windows/scripts/build/Install-AzureDevOpsCli.ps1 index cc2a11dc..8227a3fc 100644 --- a/images/windows/scripts/build/Install-AzureDevOpsCli.ps1 +++ b/images/windows/scripts/build/Install-AzureDevOpsCli.ps1 @@ -5,9 +5,9 @@ $azureDevOpsCliConfigPath = 'C:\azureDevOpsCli' # Store azure-devops-cli cache outside of the provisioning user's profile -[Environment]::SetEnvironmentVariable('AZURE_DEVOPS_EXT_CONFIG_DIR', $azureDevOpsCliConfigPath, [System.EnvironmentVariableTarget]::Machine) +[Environment]::SetEnvironmentVariable('AZ_DEVOPS_GLOBAL_CONFIG_DIR', $azureDevOpsCliConfigPath, [System.EnvironmentVariableTarget]::Machine) # make variable to be available in the current session -${env:AZURE_DEVOPS_EXT_CONFIG_DIR} = $azureDevOpsCliConfigPath +${env:AZ_DEVOPS_GLOBAL_CONFIG_DIR} = $azureDevOpsCliConfigPath $azureDevOpsCliCachePath = Join-Path $azureDevOpsCliConfigPath 'cache' $null = New-Item -ItemType 'Directory' -Path $azureDevOpsCliCachePath