Search code examples
azureazure-cli

Azure CLI Get Current Subscription details


How do I find the current Azure subscription using Azure CLI.

az account list only gives me the list of subscriptions.


Solution

  • You could use az account show to do it, if you do not specify the property, it gets the the details of the current subscription.

    enter image description here

    For more details, refer to this link.