From c7cae67e83afbf6b6818fa55ee5e66fffabcdd5d Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Wed, 11 Mar 2020 09:50:23 +1000 Subject: [PATCH] Default to AzureCloud if Azure environment hasn't been set --- .../Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1 b/source/Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1 index 89f755575..674a17f5d 100644 --- a/source/Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1 +++ b/source/Calamari/Kubernetes/Scripts/KubectlPowershellContext.ps1 @@ -35,6 +35,9 @@ $OctopusAzureADTenantId = $OctopusParameters["Octopus.Action.Azure.TenantId"] $OctopusAzureADClientId = $OctopusParameters["Octopus.Action.Azure.ClientId"] $OctopusAzureADPassword = $OctopusParameters["Octopus.Action.Azure.Password"] $OctopusAzureEnvironment = $OctopusParameters["Octopus.Action.Azure.Environment"] +if ($null -eq $OctopusAzureEnvironment) { + $OctopusAzureEnvironment = "AzureCloud" +} $OctopusDisableAzureCLI = $OctopusParameters["OctopusDisableAzureCLI"] function EnsureDirectoryExists([string] $path)