Skip to content

Commit

Permalink
Merge pull request #5191 from mboersma/fix-aks-create-json-parsing
Browse files Browse the repository at this point in the history
Fix aks-create when default az output isn't JSON
  • Loading branch information
k8s-ci-robot authored Oct 16, 2024
2 parents e3e3e30 + 02ad1f4 commit fa94869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/aks-as-mgmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit fa94869

Please # to comment.