Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions bash/lw_azure_inventory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LOAD_BALANCERS=0
GATEWAYS=0

function getSubscriptions {
az account list | jq -r '.[] | .id'
az account list --query "[?name != 'Access to Azure Active Directory']" | jq -r '.[] | .id'
}

function setSubscription {
Expand Down Expand Up @@ -45,10 +45,6 @@ function getGateways {
az network vnet-gateway list --resource-group $RG | jq length
}

function getSubscriptions {
az account list | jq -r '.[] | .id'
}

originalsub=$(az account show | jq -r '.id')

echo "Starting inventory check."
Expand Down