1. Microsoft Entra ID #
The identity directory.
Principles #
Microsoft Entra ID (formerly Azure Active Directory) authenticates users and applications for Azure, Microsoft 365 and thousands of SaaS applications (SSO). It synchronizes with an on-premises Active Directory through Entra Connect.
- MFA for everyone, and conditional access: require MFA or a compliant device based on risk, location and application.
- Managed identities: an application on Azure (VM, App Service, Functions) gets an identity with no secret to store.
- PIM (Privileged Identity Management): administration roles activated on demand, time-limited, with approval.
2. RBAC #
Who can do what, where.
Assigning roles #
| Built-in role | Permissions |
|---|---|
| Owner | Everything, including assigning roles |
| Contributor | Everything except assigning roles |
| Reader | Read only |
| User Access Administrator | Manage role assignments |
az role assignment create --assignee-object-id <id-groupe> --assignee-principal-type Group \
--role "Contributor" --scope /subscriptions/<abonnement>/resourceGroups/rg-app
az role assignment list --scope /subscriptions/<abonnement>/resourceGroups/rg-app -o table
az vm identity assign -g rg-app -n vm-web # identité managée système3. Governance #
Azure Policy, locks, tags.
Azure Policy #
Azure Policy enforces rules on resources: allowed regions, mandatory tags, encryption, forbidden SKUs. Effects: deny, audit, modify, deployIfNotExists. Initiatives group policies together (for example the Microsoft cloud security benchmark).
az policy assignment create --name regions-ue --scope /subscriptions/<abonnement> \
--policy e56962a6-4747-49cd-b67b-bf8b01975c4c \
--params '{"listOfAllowedLocations":{"value":["francecentral","westeurope"]}}'
az lock create --name ne-pas-supprimer --lock-type CanNotDelete -g rg-prod
az tag update --resource-id /subscriptions/<abonnement>/resourceGroups/rg-app --operation merge --tags centre_cout=1234Good practice: RBAC says who can act; Azure Policy says what is allowed. The two are complementary.
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Azure best practices: landing zone, security, reliability and costs
Best practices for running Azure in production: landing zone and management groups, identities an...
Preparing for the Azure Administrator Associate certification (AZ-104)
Preparation guide for the AZ-104: format, the five domains (identities and governance, storage, c...
Azure storage: storage accounts, Blob, Files, disks and redundancy
Store data on Azure: storage accounts, Blob (hot, cool, archive tiers, lifecycle), Files, Queue a...
Databases on Azure: Azure SQL, Cosmos DB, PostgreSQL and cache
Choose a managed database on Azure: Azure SQL Database and Managed Instance, Azure Database for P...
Understanding Azure: regions, resource hierarchy, tools and pricing
Microsoft Azure basics: geographies, regions, region pairs and availability zones, the hierarchy ...
Preparing for the Microsoft Azure Fundamentals certification (AZ-900)
Preparation guide for the AZ-900: format, the three domains and their weightings, notions to mast...
Azure networking: VNet, NSG, peering, load balancing and hybrid connectivity
Design networking on Azure: virtual networks and subnets, network security groups (NSG), peering ...
Compute on Azure: virtual machines, App Service, Functions and containers
Choose and use Azure compute: virtual machines and scale sets (VMSS), App Service, Azure Function...
Monitoring and protecting Azure: Monitor, Log Analytics, Defender, Key Vault and Backup
Operate Azure: Azure Monitor (metrics, activity logs, alerts), Log Analytics and KQL, Application...