azcli

Azure Arc command-line tools cheat sheet

Examples of how to do basic things using the az cli and Azure PowerShell modules for Azure Arc for Servers

Edwin Young

2 minute read

Arc for Servers has a new Azure CLI extension and PowerShell module. Both are still experimental, so expect a few rough edges and please report any issues you see. Because they are prerelease, they are not included (yet) in the main releases (ie, you don’t get this just by installing az cli or the Az module). However they are already functional and useful. Here’s how to do some simple operations with each of them.

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