Manage Azure built-in role assignments
Scope and Structure of RBAC
Role-Based Access Control (RBAC) is the core permission system in Azure. Microsoft provides built-in role definitions such as Owner, Contributor, and Reader that define which actions an identity can perform. These roles are applied at scopes like a management group, subscription, resource group, or individual resource. Permissions inherit downward through the hierarchy, so a role assigned at the subscription level automatically applies to all nested resource groups and resources.
Implementing the Principle of Least Privilege
To keep the environment secure, administrators enforce least-privilege access. This means giving each identity only the minimum permissions needed to do its job. When assigning a role, choose the most restrictive role and the narrowest scope that still lets the user work. This limits the potential damage if an account is ever compromised.
Deployment and Management Methods
Roles can be assigned through different tools depending on the workflow. The Azure Portal offers a visual interface for manual assignments. For automation, the Azure CLI and Azure PowerShell let administrators script role assignments. To deploy assignments alongside infrastructure, Azure Resource Manager (ARM) templates can include role definitions. Each assignment links a security principal (user, group, or service principal) to a role definition at a specific scope.
Auditing and Access Governance
Assigning roles is only the first step. Administrators must continuously monitor permissions using role assignment logs to track changes and detect unauthorized modifications. Access Review policies automate regular checks on who holds privileged roles. Resource owners must actively approve or deny continued access, preventing permissions from accumulating as roles change over time.
Manage custom roles, including Azure roles and Microsoft Entra roles
Differentiating Built-in and Custom Roles
Built-in roles like Contributor and Reader are convenient but often grant more access than needed. To enforce least-privilege access, you create custom roles. A custom role is a collection of permissions you define yourself, giving precise control over Azure resources and Microsoft Entra ID when built-in roles are too broad or too narrow.
Authoring JSON-Based Custom Role Definitions
A custom role is defined in a JSON document with key properties. The permissions block lists allowed or denied actions using categories like Actions (control-plane operations, e.g., create a VM) and DataActions (data-plane operations, e.g., read a blob). You can also use NotActions and NotDataActions to exclude specific permissions from a broader set. The assignableScopes property determines where the role can be assigned, such as a subscription, resource group, or the entire directory for Microsoft Entra roles. You create this JSON using Azure CLI, Azure PowerShell, or the REST API, submitting it to Azure to register the role definition in your tenant.
Scoping Assignments for Least-Privilege
Once a custom role is defined, you assign it to a user, group, or service principal at a specific scope. The scope can be a management group, subscription, resource group, or individual resource. The authorization system evaluates permissions hierarchically: an assignment at a parent scope grants those permissions to all child resources. Therefore, you choose the narrowest assignableScopes when defining the role and the narrowest scope when making the assignment. This layered control keeps permissions contained and prevents them from spreading unintentionally.
Implement and manage Microsoft Entra Permissions Management
What Microsoft Entra Permissions Management Does
Microsoft Entra Permissions Management is a security tool that helps organizations control access across multiple cloud platforms. It enforces least-privileged access by giving users only the permissions they need. The service connects to Azure, AWS, and Google Cloud from a single dashboard, so administrators can see and manage permissions across all three platforms without logging into each one separately.
Connecting Cloud Resources
To bring multi-cloud environments into Microsoft Entra, administrators deploy resource connectors. A connector pulls permission data from a cloud platform into the unified system. After configuring connectors for Azure, AWS, and GCP, the system discovers all existing permissions and role assignments. The connectors normalize entitlements, translating different cloud role names into a standard format for cross-cloud analysis. Keeping connectors in bi-directional sync ensures the data stays current.
Defining Scopes and Policies
Once resources are connected, administrators define entitlement scopes and assignment policies. An entitlement scope groups cloud resources under a boundary, such as all resources in an Azure subscription or a Google Cloud project. Assignment policies enforce rules for granting access to those groups. Policies can require time-bound or just-in-time permissions, meaning access expires automatically or requires a specific request each time. They can also include approval workflows or attribute-based rules that match user properties like department or job title.
Automating Access Reviews
Microsoft Entra supports scheduling automated access reviews to verify that permissions are still appropriate. Administrators set reviews for specific scopes or policies and assign reviewers to approve or deny continued access. The system sends reminders and includes escalation paths. When reviews find unused or excessive permissions, the system can automatically remove them, maintaining a secure posture without manual intervention.
Using Governance Insights
Governance insights provide dashboards and reports that surface risk signals and permission anomalies across all connected clouds. These insights detect excessive privileges, orphaned roles with no owner, unusual elevation patterns, and high-risk service accounts or workload identities. With this information, administrators can automate remediation, such as revoking stale assignments or triggering just-in-time elevation requests when temporary access is needed.
Plan and manage Azure resources in Microsoft Entra Privileged Identity Management, including settings and assignments
Role Assignment Types and States
Privileged Identity Management (PIM) is a security service within Microsoft Entra ID that governs access to Azure resources. Administrators assign resource roles in one of two lifecycle states: eligible or active. An eligible assignment does not grant immediate permissions; the user must manually activate the role when needed. An active assignment grants continuous access and bypasses activation, but requires stricter controls like mandatory multi-factor authentication (MFA).
Approval Workflows and Activation Settings
When a user requests to activate an eligible role, the request triggers a structured workflow. Administrators define approval workflows that can require multiple stages of approval from designated approvers, such as managers or IT security teams. The activation policy also enforces a maximum activation duration so elevated privileges expire automatically. To maintain accountability, the system requires the user to provide a business justification explaining why they need the access.
Governance, Compliance, and Access Reviews
Organizations use access reviews to continuously evaluate whether users still need their privileged roles. These reviews can be scheduled on a recurring basis, prompting resource owners or users to certify that the access is still necessary. If a reviewer denies access or a user fails to respond, the system automatically revokes the assignment. This process ensures that temporary or stale permissions do not persist, consistently enforcing least privilege.
Custom Workflows with Azure Logic Apps
Organizations can extend PIM by integrating Azure Logic Apps to build custom workflows. These Logic Apps trigger automatically on PIM events, such as role assignment modifications, activations, or nearing expiration. Administrators use them to send custom notifications to communication channels, log details to external security tools, or trigger additional compliance checks. This automation helps IT and security teams monitor and audit privilege changes across the environment.
Implement multi-factor authentication for access to Azure resources
Multi-Factor Authentication Basics
Multi-Factor Authentication (MFA) adds a second verification step to sign-in, reducing the risk of stolen credentials. After a user provides their password, MFA requires a second factor—something they have (like a phone) or something they are (like a fingerprint). This extra layer makes it much harder for an attacker to gain access even if they steal a password.
Configuring Authentication Factors
Admins choose authentication methods that fit their users and risk profile. Options include the authenticator app (push notifications or time-based codes), SMS one-time passcodes, and FIDO2 security keys (hardware tokens using public-key cryptography). Each method has tradeoffs: SMS is widely available but can be intercepted, while FIDO2 keys are more secure but require physical devices. Admins can also configure smart lockout thresholds and lockout durations to protect against brute-force attacks while minimizing impact on legitimate users.
Embedding MFA into Conditional Access Policies
Conditional Access in Azure AD uses signals like user role, location, and risk level to enforce access policies. Integrating MFA into Conditional Access ensures that only trusted users and devices can access Azure resources, even if passwords are compromised. To embed MFA, an admin defines a policy with three parts. Under Assignments, include all users or specific roles and exclude break-glass accounts for emergency access. Under Conditions, set Sign-in risk or User risk to trigger the policy on Medium or High risk levels. Under Access controls, select Grant and then Require multi-factor authentication. Under Session, configure Sign-in frequency to enforce reauthentication after a specified time.
Monitoring and Verification
After deployment, verify and monitor policy effectiveness through Azure AD sign-in logs and risk reports. Review successful and failed sign-in attempts to identify policy gaps, track risky users, and adjust conditions or authentication methods. Continuous monitoring ensures that Conditional Access and MFA settings remain aligned with evolving threat signals and organizational requirements.
Implement Conditional Access policies for cloud resources in Azure
Assignments in Conditional Access Policies
Conditional Access is a security tool that acts as a gatekeeper for Azure cloud resources. Policies are built from two main parts: Assignments that define the scope, and Access Controls that define the action. Assignments determine who the policy applies to (users, groups, directory roles, or workload identities like service principals) and what it protects (cloud applications such as Microsoft 365 or custom apps). You can also define trusted network locations, like your corporate IP range, to influence access decisions.
Conditions in Conditional Access Policies
Conditions are the “if” statements that trigger the policy’s controls. The system evaluates real-time signals during a sign-in attempt. Key conditions include Sign-in Risk (detects suspicious activity like unusual locations), Device Platforms (apply different rules for Windows, iOS, Android), Client Apps (browsers, mobile apps), and Filters for Devices (target specific device states or attributes).
Access Controls
Access controls are the “then” actions the policy takes. You can configure a policy to Grant Access only if users meet additional requirements, such as completing Multi-Factor Authentication (MFA), using a compliant device managed by Intune, or accepting a Terms of Use agreement. Alternatively, you can choose to Block Access entirely if conditions are not met, though this must be used carefully to avoid locking out legitimate users.
Implementation Challenges
Implementing Conditional Access requires careful planning because policies are evaluated together. If multiple policies apply to a user, all grant controls must be satisfied for access to be approved. A misconfigured policy can block critical applications or disrupt workflows. To mitigate this risk, deploy policies in report-only mode first. This mode logs the policy’s outcome without enforcing it, allowing you to review the impact and fine-tune conditions before turning on enforcement.