Browse Source

deploy-all.ps1 failed when non-json output

Fixes #906
pull/1049/head
Will 保哥 5 years ago
committed by GitHub
parent
commit
d77dca26e2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      k8s/helm/deploy-all.ps1

+ 1
- 1
k8s/helm/deploy-all.ps1 View File

@ -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


Loading…
Cancel
Save