Welcome, security master! ๐ก๏ธ You have built your cloud architecture. Now it is time to protect it. In this expert module, we will dive deep into identity, security, and compliance โ the tools that keep your Azure resources safe. Think of it like being the head of security for a global city โ you need to know who enters, what they can do, and how to stop bad guys.
Imagine you are the Supreme Guardian of a mighty kingdom ๐ฐ. You have:
In this module, you will learn how to protect your cloud kingdom!
Definition: Microsoft Entra ID (formerly Azure AD) is a cloud-based service that manages identities and access.
Why important: It is the central place where you control who can access your Azure resources.
Simple: Like a school register โ it has the names of all students and who can enter which classroom.
Real-life: A company uses Entra ID to manage employee logins to all their apps.
School: The school uses a system to manage student and teacher logins.
Home: Your Microsoft account is an Entra ID identity.
Nigerian: A Lagos bank uses Entra ID to manage employee access to banking apps.
Entra ID = Master list of users and their permissions
โโโ Users (people)
โโโ Groups (teams)
โโโ Applications (apps they can use)
โ Summary: Entra ID is the service that manages identities in Azure.
Definition: A tenant is a dedicated instance of Entra ID for your organisation. It is like your own private copy of the service.
Why important: It keeps your users and data separate from other organisations.
Simple: Like having your own locker at school โ only you have the key.
Real-life: Each company has its own tenant.
School: The school has its own tenant for all teachers and students.
Home: Not used at home.
Nigerian: A fintech has its own tenant for its employees.
Tenant = Your private directory in Entra ID
โ Summary: A tenant is your organisation's private space in Entra ID.
Definition: A user is a person (or application) that needs access. A group is a collection of users.
Why important: Groups make it easy to give permissions to many people at once.
Simple: A user is like a student; a group is like a class.
Real-life: A company has users (employees) and groups (Marketing, Sales, IT).
School: Students are users; a class is a group.
Home: Family members are users; the "family" is a group.
Nigerian: A startup has users (employees) and groups (Developers, Managers).
User = Individual person
Group = Collection of users (e.g., "Finance Team")
โ Summary: Users are individuals; groups are collections of users.
Definition: Guest users are users from outside your organisation who need access to your resources (e.g., partners, vendors).
Why important: You can collaborate with external partners securely.
Simple: Like a visitor pass for someone visiting your school.
Real-life: A company invites a vendor to access a document.
School: A guest teacher gets temporary access.
Home: You share a document with a relative.
Nigerian: A fintech invites an external auditor.
Guest User = External user with limited access
โ Summary: Guest users allow external collaboration.
Definition: SSO lets you log in once with one set of credentials to access multiple apps.
Why important: You don't need to remember many passwords.
Simple: Like a master key that opens all doors in your house.
Real-life: Employees log in once to access email, HR system, and cloud apps.
School: Students use one login for the school portal and online library.
Home: You use your Google account to log in to YouTube, Gmail, and Drive.
Nigerian: A bank uses SSO for employees to access multiple internal apps.
Login once โ Access all apps (no need to re-enter passwords)
โ Summary: SSO means one login for many apps.
Definition: MFA requires two or more verification methods to log in. For example, a password + a code sent to your phone.
Why important: It makes it much harder for hackers to break in.
Simple: Like a bank vault that needs a key and a combination.
Real-life: Your online banking uses MFA.
School: Teachers use MFA to access student records.
Home: You can enable MFA on your Microsoft account.
Nigerian: Many Nigerian banks use MFA for online banking.
Step 1: Enter password
Step 2: Enter code from phone
โ
Access granted!
โ Summary: MFA adds an extra layer of security to your login.
Definition: RBAC assigns permissions to users, groups, or applications based on their roles.
Why important: You give people only the permissions they need.
Simple: Like a school where teachers can grade, but students can only view.
Real-life: An admin can create VMs, a reader can only view them.
School: The principal can change settings, but the librarian can only view.
Home: Parents have full control, children have limited access.
Nigerian: A company gives developers "contributor" rights but not "owner".
| Role | Permissions |
|---|---|
| Owner | Can do everything |
| Contributor | Can create/manage resources but not give access |
| Reader | Can only view resources |
โ Summary: RBAC gives permissions based on roles.
Definition: Custom roles allow you to create your own roles with specific permissions, beyond the built-in roles.
Why important: You can create roles for very specific needs.
Simple: Like creating a custom role for a project manager who needs some, but not all, admin rights.
Real-life: A company creates a "Backup Operator" role.
School: The school creates a "Substitute Teacher" role.
Home: Not used at home.
Nigerian: A bank creates a "Read-Only Auditor" role.
Custom Role = Your own set of permissions
โ Summary: Custom roles let you define precise permissions.
Definition: Azure Security Center is a tool that helps you monitor and improve your security posture.
Why important: It alerts you to threats and gives recommendations.
Simple: Like a security guard who watches cameras and tells you if something is wrong.
Real-life: A company uses Security Center to monitor its VMs for threats.
School: The school uses it to protect student data.
Home: Not used at home.
Nigerian: A hospital uses Security Center to protect patient records.
Security Center
โโโ Monitors for threats
โโโ Gives security recommendations
โโโ Shows Secure Score (how secure you are)
โ Summary: Security Center monitors your Azure resources for security issues.
Definition: Azure Defender is a service that provides advanced threat protection for your resources, like VMs, databases, and storage.
Why important: It detects sophisticated attacks that basic tools might miss.
Simple: Like a detective who investigates suspicious activities.
Real-life: A bank uses Azure Defender to detect unusual transactions.
School: Not used in schools.
Home: Not used at home.
Nigerian: A fintech uses Azure Defender to protect against fraud.
Azure Defender = Advanced security for VMs, databases, storage, etc.
โ Summary: Azure Defender provides advanced threat protection.
Definition: Key Vault is a service that securely stores secrets, keys, and certificates.
Why important: You don't want to hard-code passwords in your code.
Simple: Like a safe where you keep your most valuable items.
Real-life: A company stores database passwords in Key Vault.
School: The school stores API keys in Key Vault.
Home: Not used at home.
Nigerian: A startup stores payment gateway keys in Key Vault.
Key Vault = Secure storage for:
โโโ Secrets (passwords, keys)
โโโ Keys (encryption keys)
โโโ Certificates (SSL/TLS)
โ Summary: Key Vault securely stores your secrets.
Definition: A managed identity is an identity that Azure creates for a service (like a VM or Function) so it can authenticate to other Azure services.
Why important: You don't need to store credentials โ Azure handles it.
Simple: Like a security badge that is automatically given to a robot.
Real-life: A VM uses a managed identity to access Key Vault.
School: Not used in schools.
Home: Not used at home.
Nigerian: A function app uses a managed identity to access storage.
Managed Identity = Automatic identity for Azure services
No need to store passwords!
โ Summary: Managed identities let Azure services authenticate automatically.
Definition: Azure Policy is a service that lets you create rules to enforce standards across your resources.
Why important: It prevents people from making mistakes, like creating VMs in the wrong region.
Simple: Like school rules โ you can't run in the hallway.
Real-life: A company uses a policy to only allow VMs in a specific region.
School: A policy ensures all school resources use the same naming convention.
Home: Not used at home.
Nigerian: A bank uses policies to ensure all VMs are in South Africa.
Policy: Allowed locations = South Africa, Europe
If VM created in US โ Policy denies it
โ Summary: Azure Policy enforces rules to keep things consistent.
Definition: Azure Blueprints is a service that lets you define a set of resources, policies, and roles to create a repeatable environment.
Why important: You can deploy a whole set of resources with one click.
Simple: Like a recipe โ follow it to bake the same cake every time.
Real-life: A company uses Blueprints to create new development environments.
School: The school uses Blueprints to set up new labs.
Home: Not used at home.
Nigerian: A startup uses Blueprints to deploy its app to multiple regions.
Blueprint = Pre-packaged environment (resources + policies + roles)
โ Summary: Blueprints help you deploy compliant environments quickly.
Definition: Defense in depth is a strategy that uses multiple layers of security. Zero Trust is a model that assumes every request is untrusted until verified.
Why important: They provide comprehensive protection.
Simple: Like a castle with walls, a moat, and guards โ and even the guards have to prove who they are.
Real-life: A company uses firewalls, MFA, and encryption.
School: The school has locks on doors, security cameras, and passwords.
Home: Your home has a gate, a door lock, and an alarm.
Nigerian: A bank uses firewalls, encryption, and MFA with Zero Trust principles.
Defense in Depth:
Layer 1: Network (firewall, NSG)
Layer 2: Identity (MFA, RBAC)
Layer 3: Data (encryption)
Layer 4: Applications (secure code)
Zero Trust: Never trust, always verify
โ Summary: Defense in depth uses multiple layers; Zero Trust assumes nothing is safe.
Layer 1: Network (firewalls, NSGs)
Layer 2: Identity (MFA, RBAC)
Layer 3: Data (encryption)
Layer 4: Applications (secure code)
Owner โ Full control
Contributor โ Can create/update resources
Reader โ Can only view
Custom Role โ Your own permissions
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Never Trust, Always Verify โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Identity โ Device โ Network โ App โ
โ (MFA) (Compliant) (Segmented) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Service | Purpose |
|---|---|
| Security Center | Monitoring and recommendations |
| Azure Defender | Advanced threat protection |
| Key Vault | Store secrets |
| Azure Policy | Enforce rules |
| Blueprints | Deploy compliant environments |
| Role | Can create resources? | Can assign roles? |
|---|---|---|
| Owner | Yes | Yes |
| Contributor | Yes | No |
| Reader | No | No |
| Custom Role | As defined | As defined |
In this expert module, we learned about identity, security, and compliance in Azure. We covered:
You now have a deep understanding of how to secure and govern your Azure resources. In the next module, we will learn about Cost Management and Optimization.
Match the service with its purpose.
| Service | Purpose |
|---|---|
| Entra ID | Manage identities |
| MFA | Extra security |
| RBAC | Assign permissions |
| Key Vault | Store secrets |
| Azure Policy | Enforce rules |
| Resource Lock | Prevent deletion |
| Tags | Organise resources |
| Zero Trust | Never trust, always verify |
Scenario 1: A Nigerian bank wants to ensure that only IT staff can create VMs. Which Azure service should they use?
Scenario 2: A company wants to store database passwords securely. Which service should they use?
Scenario 3: A hospital wants to monitor its resources for threats. Which service should they use?
In groups, design a security plan for a Nigerian e-commerce company. Include:
Create a list of tags you would use for a cloud project. Include tags for project, department, environment, and cost centre.
Security Plan: Create a security plan for a fictional Nigerian company. Include identity management, access control, monitoring, governance, and Zero Trust. Present your plan to the class.
If you have an Azure account, try the following:
Research how to create an Azure Policy that only allows VMs in a specific region. Write a simple guide on how to set it up.
In the next module, we will learn about Cost Management and Optimization. We will cover:
Review your knowledge of subscriptions and resource groups โ they will be important in Module 3.
๐ Congratulations! You have completed Module 2 (Expert). Keep going! ๐