Get subscription id az cli: az account list | jq '.[].id' Powershell: Get-AzSubscription Resources: Powershell docs ClI docs