TECHNOLOGY & CERTIFICATION EDITORIAL

Microsoft AZ-104: Azure RBAC and Role Scopes

A team gives a monitoring account Contributor at subscription scope so it can read one diagnostic report. Months later that identity is discovered to have modified a production resource. The original assignment was easy to create, but it failed to reflect what the identity actually needed. Azure authorization is not only a question of choosing a role name; scope, principal, inherited membership and the distinction between management operations and data access all determine the real permission boundary.

A user with Contributor access to a storage account can configure the resource but may lack the Blob Storage data role needed to read a particular object. That management-plane/data-plane distinction is fundamental to Microsoft AZ-104: effective access depends on the principal, role definition, assignment scope and inherited membership. Diagnose the action and scope before adding a grant.

Every role assignment combines three decisions

An Azure RBAC role assignment connects a security principal, a role definition and a scope. The principal can be a user, group, service principal or managed identity. The role defines permitted actions. The scope determines where the assignment applies. If any of these is wrong, the result may be an unauthorized capability or an administrator unable to complete a legitimate task.

Use the smallest scope that still enables the work. A support engineer responsible for one resource group usually should not receive the same role at subscription root. A backup automation accessing a single vault rarely needs broad write access to all resources in a management group. This is both a security decision and a way to reduce accidental changes by well-intentioned operators.

Document the purpose of important assignments. The next administrator should understand whether a broad grant is a deliberate operational requirement or a temporary troubleshooting shortcut that was never removed. Compare required actions with the role definition instead of relying on a familiar name such as Owner or Contributor.

Understand what the scope hierarchy actually does

The scope hierarchy extends from management groups through subscriptions and resource groups to individual resources. Permissions assigned at an ancestor scope are inherited by the objects below it. A user may have no direct assignment on a VM and still be able to modify it because a group received Contributor at the resource-group level.

When interpreting access, assemble the relevant assignments from every applicable scope and group membership. A narrow Reader role on a resource does not cancel an inherited Contributor grant from the containing subscription. Before creating an additional role to solve an access incident, check whether a higher-level assignment already provides the needed action and whether some other control is denying the request.

A resource move can change its effective governance and permissions because the resource now sits under different parent scopes. The same operator may lose access or receive additional inherited access after a move. These effects should be part of the change review when administrators reorganize resources, not a surprise discovered during the next outage.

Distinguish management-plane from data-plane permissions

Being able to create or manage a storage account does not necessarily grant access to every object stored in it through Microsoft Entra data-plane authorization. Management-plane roles operate on Azure Resource Manager actions; specialized data roles control data operations such as reading blobs. This distinction explains why a contributor can configure a resource yet receive an authorization error when an application tries to access its contents.

A case involving Azure Blob Storage may require a role such as Storage Blob Data Reader or Storage Blob Data Contributor at an appropriate scope, plus a valid network path. Storage Access and SAS require separating authorization from network reachability: neither an appropriate data role nor a valid SAS can bypass a blocked storage network path. Do not fix a storage firewall denial by assigning a broader role; that changes one layer without solving the blocked network path.

Apply similar reasoning to vaults, queues and operational logs. A role should align with the service’s supported access model. Where identity-based data access exists, give automation the narrow data role it needs rather than embedding a long-lived account key with broader capability.

Azure roles are not Microsoft Entra directory roles

A directory administrator can manage selected Microsoft Entra tenant objects, while Azure RBAC grants access to Azure resources. The two systems have different assignment mechanisms and administration surfaces. The fact that someone can create a group does not allow that person to modify a virtual network, and managing a subscription does not automatically grant authority to reset another user’s password.

Entra user and group administration governs the principal and its memberships, not the Azure resource actions those memberships authorize. A directory role or a successful login should never be mistaken for a Blob data-access grant.

The identity lifecycle in Entra users, groups and SSPR therefore precedes—not replaces—resource authorization. Groups are an efficient way to manage access at scale, but the role assignment is made to a particular group principal. If membership becomes too broad, more people may inherit the grant than were originally intended. Group ownership and membership review are genuine Azure access controls.

For workload identities, use the same principle. A managed identity enables a service to authenticate without an embedded secret, but it still needs a precisely scoped Azure role assignment before the operation succeeds. A service identity with no assigned permissions is not magically authorized by being managed.

Azure Policy, locks and RBAC answer different questions

RBAC primarily determines who may perform an action. Azure Policy evaluates resource state against organizational rules such as permitted locations or required tags; policies may audit, deny or remediate resources depending on their effects. A resource lock adds protection against certain accidental management changes. Combining these controls can prevent a broad Contributor from making a prohibited deployment, but none is interchangeable with the others.

Azure Policy and governance imposes configuration constraints independently of an RBAC assignment. An administrator may be entitled to attempt a deployment yet still receive a policy denial; adding access is not the remedy for a disallowed resource state.

A team may receive Contributor to deploy resources in a resource group, while policy denies creation of public storage endpoints. The deployment can fail despite the apparent permission, because authorization to request a change is different from compliance with the configured resource rules. Troubleshooting should inspect the policy evaluation and the requested resource properties rather than granting the caller Owner.

Locks have their own limits. They protect management-plane operations under a resource or scope, but should not be portrayed as full substitutes for data retention and service-specific protection. For critical systems, combine narrow role assignments with policy guardrails, appropriate locks and independent recovery procedures.

Diagnose access errors by following the request

Start by identifying the exact principal in the error, not the person you think is signed in. A service may run under a managed identity while the administrator tests it with personal credentials. Check tenant, subscription, role assignments at inherited scopes, data roles and any relevant assignment conditions. Then examine deny assignments, policy effects or service-specific authorization rules where applicable.

If the principal and actions are correct, look at the network path and resource state. A private storage account can reject a correctly authorized user whose client is outside an allowed network. A VM administration request can fail because the resource is locked or an underlying operation is unsupported. The difference determines whether the right repair is an RBAC change, a network change or a different operational procedure.

Keep a record of the tested identity, operation, target scope, observed error and final resolution. That evidence discourages escalating privileges out of habit. The ideal access fix is the smallest verified change that allows the intended task without creating unrelated capability.

Use recurring access review as part of administration

Roles accumulate when teams grow, people change projects and automation is replaced. Periodic review should focus first on privileged assignments, subscription-wide grants and service principals whose owners are unclear. A legitimate role at the time of creation can become excessive when the responsible workload is retired or the task narrows.

Governance data can help identify scope drift, including resource groups that have gained inherited permissions after restructuring. Subscription governance matters because organizational boundaries change while projects evolve. Preserve records of changes and review both group membership and direct assignments, particularly for shared automation accounts.

Management group sits above subscriptions and resource groups in a small test hierarchy, allowing policy inheritance to be observed directly. Compare Reader, Contributor and a specialized blob data role, and observe what changes when each is assigned at a different scope. The important ability is to explain effective access from the hierarchy and the operation—not to memorize a list of role names without understanding consequences.

When an inherited grant outlives its original purpose

Temporary projects are a common source of hidden overprivilege. Suppose an engineer receives Reader on one production subscription while helping with a migration and already belongs to a group with Contributor on a parent management group. The narrow assignment is largely irrelevant because the broader inherited grant continues to apply. Removing the direct Reader role does not remove the inherited capability; administrators must inspect the entire effective access path and the group owner before reporting that access was revoked.

Make privilege removal testable. After adjusting the appropriate assignment or membership, confirm that a previously permitted management operation is now denied while required read operations still work. Record the scope and identity used for the test. This creates more useful audit evidence than a screenshot of one role assignment disappearing from the portal and discourages the assumption that the absence of a direct grant means a principal is powerless.

Back to Insights
Explore what matters. Knowledge that goes beyond the exam.
Explore ExamTopics