From 52ac39f495ff0a6a77875ea2442b442deabf6040 Mon Sep 17 00:00:00 2001 From: Mike Rhoads Date: Thu, 5 Dec 2024 16:06:33 -0600 Subject: [PATCH] add var for KUBECTL_CLIENT_PATH --- .../arm_template/artifacts/LogonScript.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/azure_arc_k8s_jumpstart/aks_hybrid/aks_edge_essentials_single/arm_template/artifacts/LogonScript.ps1 b/azure_arc_k8s_jumpstart/aks_hybrid/aks_edge_essentials_single/arm_template/artifacts/LogonScript.ps1 index 90e84343f..b463073cf 100644 --- a/azure_arc_k8s_jumpstart/aks_hybrid/aks_edge_essentials_single/arm_template/artifacts/LogonScript.ps1 +++ b/azure_arc_k8s_jumpstart/aks_hybrid/aks_edge_essentials_single/arm_template/artifacts/LogonScript.ps1 @@ -139,6 +139,13 @@ Write-Host "`n" Write-Host "About to silently install AKS Edge Essentials, this will take a few minutes." -ForegroundColor Green Write-Host "`n" +Write-Host "`n" +Write-Host "Setting kubectl environment variable" -ForegroundColor Green +Write-Host "`n" + +[System.Environment]::SetEnvironmentVariable('KUBECTL_CLIENT_PATH', 'C:\Program Files\AksEdge\kubectl\kubectl.exe', [System.EnvironmentVariableTarget]::Machine) + + try { function download2() { $ProgressPreference = "SilentlyContinue"; Invoke-WebRequest -Uri $url -OutFile $installDir\$zipFile } download2