Up:: Azure

Azure CLI

Helpful Snippets

  • Get and Set the subscription name and id as bash variables:
subscriptionName=$(az account show --query name --output tsv) 
subscriptionId=$(az account show --query id --output tsv) 
echo $subscriptionName 
echo $subscriptionId

📇 Additional Metadata

  • 🗂 Type:: note
  • 🏷️ Tags::
  • 📡 Status:: #status/🌲