Interview Prep/Azure/Fundamentals and Resource Hierarchy

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
Azure All Azure questions Roadmap: Azure core services

More on Fundamentals and Resource Hierarchy