What happens when you run `az group create` end to end?
IntermediateConceptFundamentals and Resource Hierarchy
Answer
- CLI gets an access token for
https://management.azure.comfrom its MSAL cache (refreshing it if needed). - It sends
PUT /subscriptions/<sub>/resourcegroups/<name>?api-version=.... - ARM validates the token and tenant, checks RBAC for
Microsoft.Resources/subscriptions/resourcegroups/write. - Azure Policy evaluates the request (deny effects block it here, modify effects alter it).
- ARM writes the RG metadata in the chosen region and emits an Activity Log event.
- The CLI prints the resource with
provisioningState: Succeeded.
The same sequence, with step 6 replaced by a call to the resource provider, applies to every create.
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