What is the difference between `az` CLI and Azure PowerShell, and when do you use `az rest`?
BeginnerConceptFundamentals and Resource Hierarchy
Answer
Both call ARM. az is cross-platform, outputs JSON and fits bash pipelines; Azure PowerShell (Az module) returns objects and fits Windows-heavy teams. Pick one per team.
az rest calls any ARM or Microsoft Graph endpoint directly with your CLI token, which helps when a feature has no CLI command yet:
az rest --method get \
--url "https://graph.microsoft.com/v1.0/me" --query userPrincipalName -o tsv
More on Fundamentals and Resource Hierarchy
Explain the Azure resource hierarchy from top to bottom.BeginnerWhat is the difference between an Entra tenant and a subscription?BeginnerWhat should go into a resource group and what should not?BeginnerWhat are regions, region pairs and availability zones in Azure?BeginnerWhy do logical zone numbers differ between subscriptions?IntermediateWhat is Azure Resource Manager (ARM)?Beginner