This is just a quick note to myself. I spent some time figuring out how to fetch the subscription id within the current Azure CLI context.
This one-liner can save you some time:
$SUBSCRIPTION_ID = az account show --query id --output tsv
Cheers,
Toon