What's the difference between az account show and Get-AzContext?

Explains the difference in how context is handled between AZ CLI and Azure PowerShell

Edwin Young

2 minute read

One issue which can trip you up when using command-line tools to configure Azure is a confusing lack of interaction between Azure CLI and Azure PowerShell. They both provide a “context” so you don’t have to keep specifying the subscription over and over. But Azure CLI (the az command) has a separate context from Azure PowerShell. You can see this by running