From 02ad1f439094a9827b36e41da561c543bbad87c4 Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Wed, 16 Oct 2024 13:29:36 -0600 Subject: [PATCH] Fix aks-create when default az output isn't JSON --- scripts/aks-as-mgmt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/aks-as-mgmt.sh b/scripts/aks-as-mgmt.sh index 9a88602dd36..2f6047973ec 100755 --- a/scripts/aks-as-mgmt.sh +++ b/scripts/aks-as-mgmt.sh @@ -137,13 +137,13 @@ create_aks_cluster() { echo "mgmt resource identity: ${AKS_MI_RESOURCE_ID}" # save resource identity name and resource group - MANAGED_IDENTITY_NAME=$(az identity show --ids "${AKS_MI_RESOURCE_ID}" | jq -r '.name') + MANAGED_IDENTITY_NAME=$(az identity show --ids "${AKS_MI_RESOURCE_ID}" --output json | jq -r '.name') # export MANAGED_IDENTITY_NAME echo "mgmt resource identity name: ${MANAGED_IDENTITY_NAME}" USER_IDENTITY=$MANAGED_IDENTITY_NAME export USER_IDENTITY - MANAGED_IDENTITY_RG=$(az identity show --ids "${AKS_MI_RESOURCE_ID}" | jq -r '.resourceGroup') + MANAGED_IDENTITY_RG=$(az identity show --ids "${AKS_MI_RESOURCE_ID}" --output json | jq -r '.resourceGroup') export MANAGED_IDENTITY_RG echo "mgmt resource identity resource group: ${MANAGED_IDENTITY_RG}"