Skip to content

Commit

Permalink
force json output from az cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbradley1 committed Oct 26, 2024
1 parent 67e52e3 commit fe3c103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ checkSKUQuotas() {
printf "Checking Location for SKU Quota Usage... "
local location=$1
local vm_usage_report=$(
az vm list-usage --location $location
az vm list-usage --location $location -o json
)

# Check quota for Standard DSv5 Family vCPUs
Expand All @@ -386,7 +386,7 @@ checkSKUQuotas() {
local dsv5_currVal=$(jq -r .currentValue <<< $dsv5_usage_report)
local dsv5_reqVal=$(expr $dsv5_currVal + 12)
exitIfThresholdExceeded $dsv5_reqVal $dsv5_limit "Not enough Standard DSv5 Family vCPU quota for deployment."

# Check quota for Standard ESv5 Family vCPUs
local esv5_usage_report=$(jq -c '.[] | select(.localName | contains("Standard ESv5 Family vCPUs"))' <<< $vm_usage_report)
local esv5_limit=$(jq -r .limit <<< $esv5_usage_report)
Expand Down

0 comments on commit fe3c103

Please sign in to comment.