Interview Prep/Azure/Identity, Access and Governance

A new developer joins and needs to deploy to the dev resource group only. How do you give access?

BeginnerScenarioIdentity, Access and Governance
Answer

Situation read → Access should come from group membership, at the smallest useful scope, and never touch prod.

What I'd do →

  1. Add the developer to the existing Entra group grp-shop-dev-contributors (create it once if missing)
  2. Make sure that group holds Contributor on the dev RG only:
    az role assignment create --assignee-object-id <groupObjectId> --assignee-principal-type Group \
      --role Contributor --scope /subscriptions/<sub>/resourceGroups/rg-shop-dev
    
  3. Developer runs az logout && az login, then az group show -n rg-shop-dev to confirm
  4. For prod, they get nothing by default; read access comes later through a separate reader group

Why → Group-based access survives team changes, keeps the subscription under the role assignment limit, and makes access reviews readable.

Interview tip → Say "groups, not users, at the lowest scope" before naming any role.

Azure All Azure questions Roadmap: Azure core services

More on Identity, Access and Governance