Welcome to the world of security! 🌍 Now that we know how to build things in Azure, we need to learn how to protect them. In this module, we will learn about identities (who you are), security (keeping bad guys out), and compliance (following the rules). Think of it like a castle – you build walls, guard towers, and only let trusted people inside.
Imagine you are the king or queen of a big castle 🏰. Inside the castle, you have treasure, important documents, and many rooms.
You need to make sure that:
In this module, you will learn how to build your own secure castle in Azure!
Definition: Microsoft Entra ID (formerly Azure AD) is a cloud-based service that manages users and their access to resources.
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: 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: 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: A lock prevents a resource from being deleted or changed accidentally.
Why important: You don't want someone to delete your important VM.
Simple: Like putting a child-proof lock on a cabinet.
Real-life: A company locks its production database so no one can delete it.
School: The school locks the server that stores exam results.
Home: You lock your diary so no one reads it.
Nigerian: A hospital locks patient records to prevent accidental deletion.
Lock Types:
- CanNotDelete (prevents deletion)
- ReadOnly (prevents changes)
✅ Summary: Resource locks protect important resources from being deleted or changed.
Definition: Tags are key-value pairs (like "Project: Website" or "CostCenter: Marketing") that you add to resources.
Why important: They help you organise, track costs, and manage resources.
Simple: Like putting sticky notes on your belongings to know what they are for.
Real-life: A company tags resources by project, department, and environment (Dev/Prod).
School: Tags can show which class uses which resource.
Home: You might tag photos with names and dates.
Nigerian: A startup tags resources by region (Lagos, Abuja).
Tag: Environment = Production
Tag: Department = Finance
Tag: Project = PayrollApp
✅ Summary: Tags are labels that help you organise and track resources.
Definition: Defense in depth is a strategy that uses multiple layers of security to protect your resources. If one layer fails, another layer stops the attack.
Why important: It's like having multiple doors – if a thief breaks one, there is still another locked door.
Simple: Like a castle with walls, a moat, and guards.
Real-life: A company uses network 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.
Defense in Depth:
Layer 1: Network (firewall, NSG)
Layer 2: Identity (MFA, RBAC)
Layer 3: Data (encryption)
Layer 4: Applications (secure code)
✅ Summary: Defense in depth uses multiple security layers.
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
Enter password → Enter code from phone → Access granted ✅
| Service | Purpose |
|---|---|
| Security Center | Monitoring and recommendations |
| Azure Defender | Advanced threat protection |
| Key Vault | Store secrets |
| Policy | Enforce rules |
| Blueprints | Deploy compliant environments |
| Role | Can create resources? | Can assign roles? |
|---|---|---|
| Owner | Yes | Yes |
| Contributor | Yes | No |
| Reader | No | No |
In this module, we learned about identity, security, and compliance in Azure. We covered:
You now have a strong 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 |
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 defense in depth. 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'll cover:
Review your knowledge of subscriptions and resource groups – they will be important in Module 3.
🎉 Congratulations! You have completed Module 2 (Intermediate). Keep going! 🚀