## Design Authentication and Authorization Solutions
This topic focuses on securing access to Azure resources and applications by designing robust authentication and authorization mechanisms.
Authentication Solutions
Authentication verifies an identity. Azure Active Directory (Azure AD) is the core identity service, providing a centralized identity management solution.
- User Authentication:
- Azure AD: Manages identities for employees, partners, and guests. Supports Single Sign-On (SSO) across cloud and on-premises applications.
- Azure AD B2C: Designed specifically for consumer-facing applications, allowing customers to sign in using social identities (e.g., Google, Facebook) or local accounts.
- MFA & Passwordless: Enhance security. Multi-Factor Authentication (MFA) requires multiple verification methods. Passwordless methods (e.g., FIDO2 security keys, Microsoft Authenticator app) improve user experience and security.
- Hybrid Identities: Integrate on-premises Active Directory with Azure AD using Azure AD Connect for synchronized identities.
- Guest Access (Azure AD B2B): Enables secure collaboration with external users by inviting them as guest users into your Azure AD tenant.
- Application Authentication:
- Managed Identities: The recommended and most secure way for Azure resources (e.g., VMs, App Services) to authenticate to other Azure services (e.g., Key Vault, Azure SQL). They eliminate the need to manage credentials directly.
- Service Principals: Represent an application's identity within a specific Azure AD tenant. Used for non-Azure hosted applications, automation scripts, or when Managed Identities are not applicable. Created via Azure AD application registration.
- API Keys/Certificates: Can be used for authentication, but Managed Identities are generally preferred for Azure services due to better credential management.
Authorization Solutions
Authorization determines what an authenticated identity can do.
- Azure Role-Based Access Control (Azure RBAC): Provides granular access management to Azure resources. Assigns roles (e.g., Owner, Contributor, Reader) to users, groups, or service principals at different scopes (management group, subscription, resource group, resource).
- Attribute-Based Access Control (ABAC): Extends RBAC by adding conditions based on resource attributes, request attributes, or custom security attributes.
- Azure AD Groups: Best practice to assign RBAC roles to Azure AD groups rather than individual users for easier management and scalability.
- Privileged Identity Management (PIM): Provides just-in-time (JIT) and time-bound access to elevated roles, minimizing standing access and reducing the attack surface. Includes access reviews and alerts.
- Secure Access to Azure Resources:
- Azure AD Conditional Access: Enforces policies based on conditions (user, location, device state, application) to grant or deny access, or require MFA. This is a powerful policy engine.
- Azure Policy: Enforces organizational standards and assesses compliance at scale. Can be used to enforce security configurations.
- Service Endpoints & Private Endpoints: Network-level security features to restrict access to Azure services from specific virtual networks, enhancing data exfiltration protection.
- Authorization to Applications:
- Application Roles & Scopes: Define specific permissions an application can request or be granted.
- Consent Framework: Users or administrators grant permissions to applications to access protected resources on their behalf.
What is the primary service for identity and access management in Azure?
Azure Active Directory (Azure AD).
tap to reveal
When should you use Azure AD B2C?
For consumer-facing applications where customers use their social or local accounts to sign in.
tap to reveal
What is the recommended way for an Azure service (like a VM) to authenticate to another Azure service (like Key Vault)?
Managed Identities (System-assigned or User-assigned).
tap to reveal
How do you grant granular permissions to users, groups, or applications to manage Azure resources?
Azure Role-Based Access Control (Azure RBAC).
tap to reveal
What Azure service provides just-in-time (JIT) and time-bound access to elevated roles?
Azure Privileged Identity Management (PIM).
tap to reveal
What is the purpose of Azure AD Conditional Access?
To enforce policies (e.g., MFA, device compliance) based on user, location, device, or application conditions before granting access.
tap to reveal
How do you enable external users to collaborate securely on your Azure AD resources?
Azure AD B2B (Business-to-Business) collaboration.
tap to reveal
What is an Azure AD Service Principal used for?
To represent an application's identity within a specific Azure AD tenant, allowing it to access resources.
tap to reveal