Skip to content

Commit

Permalink
log available zones
Browse files Browse the repository at this point in the history
Signed-off-by: Jianguo Ma <jiangma@microsoft.com>
  • Loading branch information
majguo committed Jul 16, 2024
1 parent 7a56cc7 commit 188b2fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scripts/preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ fi
# Query available zones for selected region and vm size
if [[ "${CREATE_CLUSTER,,}" == "true" ]]; then
availableZones=$(az vm list-skus -l ${LOCATION} --size ${VM_SIZE} --zone true | jq -c '.[] | .locationInfo[] | .zones')
echo_stdout "Available zones for region ${LOCATION} and vm size ${VM_SIZE} are: $availableZones"
fi

if [ -z "${availableZones}" ]; then
Expand Down

0 comments on commit 188b2fd

Please sign in to comment.