az account
SafeSwitch subscriptions
az account show / az account set -s <sub>
Shows/sets the active subscription — 'missing resources' usually means you're on the wrong one.
Examples
az account set --subscription Prod-01Target the prod subscription
Syntax
az account [show|list|set --subscription name]
Before you run it
Switches context only.
Related commands
- az login / account showAzure auth
- az group listList resource groups
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store