From d77dca26e2d5189dc70e2eab62bb67a4322c0da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Will=20=E4=BF=9D=E5=93=A5?= Date: Mon, 20 May 2019 23:27:35 +0800 Subject: [PATCH] deploy-all.ps1 failed when non-json output Fixes #906 --- k8s/helm/deploy-all.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/deploy-all.ps1 b/k8s/helm/deploy-all.ps1 index a30fc1ee6..e0ea28d5c 100644 --- a/k8s/helm/deploy-all.ps1 +++ b/k8s/helm/deploy-all.ps1 @@ -28,7 +28,7 @@ if ($externalDns -eq "aks") { exit 1 } Write-Host "Getting DNS of AKS of AKS $aksName (in resource group $aksRg)..." -ForegroundColor Green - $dns = $(az aks show -n $aksName -g $aksRg --query addonProfiles.httpApplicationRouting.config.HTTPApplicationRoutingZoneName) + $dns = $(az aks show -n $aksName -g $aksRg --query addonProfiles.httpApplicationRouting.config.HTTPApplicationRoutingZoneName -o json) if ([string]::IsNullOrEmpty($dns)) { Write-Host "Error getting DNS of AKS $aksName (in resource group $aksRg). Please ensure AKS has httpRouting enabled AND Azure CLI is logged & in version 2.0.37 or higher" -ForegroundColor Red exit 1