Skip to content

Commit

Permalink
chore: remove logic to upgrade az (#4501)
Browse files Browse the repository at this point in the history
Co-authored-by: Charlie Li <[email protected]>
  • Loading branch information
chengliangli0918 and charlili1234 authored Jun 12, 2024
1 parent a1f399d commit 5cfe360
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions vhdbuilder/packer/init-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,6 @@ fi
if [[ ${ARCHITECTURE,,} == "arm64" ]]; then
ARM64_OS_DISK_SNAPSHOT_NAME="arm64_osdisk_snapshot_${CREATE_TIME}_$RANDOM"
SIG_IMAGE_NAME=${SIG_IMAGE_NAME//./}Arm64
# Only az published after April 06 2022 supports --architecture for command 'az sig image-definition create...'
azversion=$(az version | jq '."azure-cli"' | tr -d '"')
if [[ "${azversion}" < "2.35.0" ]]; then
az upgrade -y
az login --identity
az account set -s ${SUBSCRIPTION_ID}
fi
fi

echo "Using finalized SIG_IMAGE_NAME: ${SIG_IMAGE_NAME}, SIG_GALLERY_NAME: ${SIG_GALLERY_NAME}"
Expand Down

0 comments on commit 5cfe360

Please sign in to comment.