Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Intermediate Microsoft Azure 104 Administrator ยท Lesson 4 of 8

Module Three

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
4
Module Three: Intermediate Azure Compute โ€“ The Brain of the Cloud

๐Ÿง  Module Three: Intermediate Azure Compute โ€“ The Brain of the Cloud

Module Introduction
Hello, cloud builder! ๐Ÿ‘‹ In Module Two, we learned about storage โ€“ the memory of the cloud. Now, we will learn about compute โ€“ the brain that processes data and runs applications. Think of Azure Compute as a powerful factory that can run your programs, websites, and games. We will explore Virtual Machines (VMs), App Services, containers, and more. By the end, you will know how to give your applications a brain! ๐Ÿ’ป

๐ŸŽฏ Learning Objectives

  • Define what compute is and why it's important.
  • Understand Virtual Machines (VMs) and how to create them.
  • Explain Azure App Service for hosting websites.
  • Describe containers and Azure Container Instances (ACI).
  • Learn about Azure Container Registry (ACR).
  • Understand scaling options for compute resources.

๐Ÿ“– Warm-up Story: The Magical Toy Factory

In a land called Codeville, there was a magical toy factory. Workers could create toys, fix them, and send them to children worldwide. The factory had many machines โ€“ each machine could build a different toy. Some machines were huge and could build anything (like Virtual Machines). Other machines were small and specialised (like App Services). The factory could also make copies of machines to handle more orders (scaling). That factory is like Azure Compute โ€“ it runs your applications and can grow or shrink as needed. ๐Ÿญ


๐Ÿ“š Main Lessons

Lesson 1: What is Compute in Azure?

Definition: Compute is the processing power that runs applications. It's like the brain of a computer.

Why important: Without compute, nothing can run โ€“ no websites, no games, no apps.

Simple explanation: It's the engine that makes everything work.

Real-life example: When you play a game, the console's processor is doing compute.

School example: The school computer lab provides compute for students.

Home example: Your laptop's CPU is a compute brain.

Nigerian example: A Nigerian fintech uses Azure compute to process transactions.

+------------------+
|  AZURE COMPUTE   |
|  (runs your apps)|
+------------------+

Mini summary: Compute is the processing power in the cloud.

Lesson 2: Virtual Machines (VMs) โ€“ The Custom Computer

Definition: A Virtual Machine (VM) is a software computer that runs inside a physical server. You can choose the OS, memory, and storage.

Why important: VMs give you total control โ€“ you can install any software.

Simple explanation: It's like having a computer inside the cloud that you can customise.

Real-life example: A company runs its custom software on a VM.

School example: A school uses a VM to host a math lab.

Home example: You could run a Minecraft server on a VM.

Nigerian example: A bank runs its core banking app on VMs.

+------------------+
|  VIRTUAL MACHINE |
|  OS: Windows     |
|  RAM: 16GB       |
|  Storage: 128GB  |
+------------------+

Mini summary: VMs are custom virtual computers in the cloud.

Lesson 3: VM Sizes โ€“ The Different Brains

Definition: VM sizes determine the power โ€“ number of CPUs, memory, and storage. There are small, medium, and large sizes.

Why important: You pick the right size for your needs to save money.

Simple explanation: It's like choosing a small, medium, or large pizza.

Real-life example: A basic website can use a small VM; a big database needs a large VM.

School example: A small class project uses a small VM.

Home example: A game server needs a medium VM.

Nigerian example: A Lagos startup uses a small VM to save costs.

+------------------+
|  VM SIZES        |
|  B1s (small)     |
|  D2s (medium)    |
|  E4s (large)     |
+------------------+

Mini summary: VM sizes let you choose how powerful your VM is.

Lesson 4: VM Images โ€“ The Operating System

Definition: An image is a template that includes the OS (Windows, Linux) and sometimes pre-installed software.

Why important: Images save time โ€“ you don't have to install everything from scratch.

Simple explanation: It's like a ready-to-use toy that you only need to take out of the box.

Real-life example: You can choose a VM with Ubuntu Linux pre-installed.

School example: The school uses a Windows image for all students.

Home example: You pick a Linux image for a coding project.

Nigerian example: A company uses a custom image with its security software.

+------------------+
|  IMAGES          |
|  - Windows 2022  |
|  - Ubuntu 22.04  |
|  - Custom Image  |
+------------------+

Mini summary: Images are templates for your VM's OS.

Lesson 5: Azure App Service โ€“ The Website Host

Definition: App Service is a PaaS (Platform as a Service) that hosts web apps, APIs, and mobile backends. You just deploy your code, and Azure takes care of the servers.

Why important: It's easier than managing a VM โ€“ no patching or maintenance.

Simple explanation: It's like renting a fully-staffed restaurant kitchen โ€“ you just bring your recipes.

Real-life example: Many companies host their corporate websites on App Service.

School example: Your school website runs on App Service.

Home example: You could host a personal blog on App Service.

Nigerian example: A Nigerian e-commerce site uses App Service for its frontend.

+------------------+
|  APP SERVICE     |
|  (runs web apps) |
|  No VM to manage |
+------------------+

Mini summary: App Service hosts websites without managing VMs.

Lesson 6: App Service Plans โ€“ The Price Tier

Definition: An App Service Plan defines the resources (CPU, memory) for your app. You can choose Free, Shared, Basic, Standard, or Premium.

Why important: It determines the performance and cost of your app.

Simple explanation: Like choosing a seat in a cinema โ€“ standard or VIP.

Real-life example: A test app uses the Free tier; a production app uses Standard.

School example: A school uses the Basic plan for its website.

Home example: You use the Free tier for a personal project.

Nigerian example: A startup uses the Standard plan for its customer-facing app.

+------------------+
|  PLANS           |
|  Free  (limited) |
|  Basic (good)    |
|  Standard (best) |
|  Premium (fast)  |
+------------------+

Mini summary: App Service Plans determine your app's power and price.

Lesson 7: Deployment Slots โ€“ The Safe Testing Zone

Definition: Deployment slots allow you to test a new version of your app without affecting the live version. You can swap slots when ready.

Why important: It reduces risk โ€“ you can test changes safely.

Simple explanation: It's like having a practice stage before the main performance.

Real-life example: A company tests new features in a staging slot before going live.

School example: The IT teacher tests a new website design in a staging slot.

Home example: You test a new blog theme in a slot before publishing.

Nigerian example: A fintech uses slots to test new payment features.

+------------------+
|  PRODUCTION      |
|  (live site)     |
|  +----------+    |
|  | STAGING  |    |
|  | (test)   |    |
|  +----------+    |
+------------------+

Mini summary: Slots let you test safely before going live.

Lesson 8: Azure Container Instances (ACI) โ€“ The Quick Containers

Definition: ACI is a service that lets you run containers (lightweight packages) without managing VMs. Just tell Azure to run a container image.

Why important: It's the fastest way to run a container in Azure.

Simple explanation: Like a microwave meal โ€“ you just heat it and eat.

Real-life example: A developer runs a test container quickly.

School example: Students run a coding container for a lab.

Home example: You run a container for a small personal project.

Nigerian example: A startup uses ACI to run a microservice.

+------------------+
|  ACI             |
|  (run containers)|
|  +----------+    |
|  | container|    |
|  +----------+    |
+------------------+

Mini summary: ACI runs containers easily without managing VMs.

Lesson 9: Azure Container Registry (ACR) โ€“ The Docker Hub

Definition: ACR is a private registry where you store and manage container images (like Docker images).

Why important: You need a place to store your container images before deploying them.

Simple explanation: It's like a library where you keep your container books.

Real-life example: A company stores all its microservice images in ACR.

School example: The school stores educational container images in ACR.

Home example: You store your custom app images in ACR.

Nigerian example: A fintech stores its payment service images in ACR.

+------------------+
|  ACR             |
|  (container      |
|   registry)      |
|  +----------+    |
|  | image1   |    |
|  | image2   |    |
|  +----------+    |
+------------------+

Mini summary: ACR is a private storage for container images.

Lesson 10: VM Scale Sets โ€“ The Auto-Grow Feature

Definition: VM Scale Sets let you create and manage a group of identical VMs. They can automatically add or remove VMs based on demand.

Why important: It ensures your app can handle traffic spikes.

Simple explanation: Like adding more cashiers at a busy store.

Real-life example: A retail website adds more VMs during Black Friday sales.

School example: The school adds more VMs for exam registration day.

Home example: You could scale VMs for a game server.

Nigerian example: A bank scales its VMs during payday.

+------------------+
|  VM SCALE SET    |
|  +----------+    |
|  | VM1 | VM2|    |
|  | VM3 | VM4|    |
|  +----------+    |
|  Auto-scaling    |
+------------------+

Mini summary: VM Scale Sets automatically adjust the number of VMs.

Lesson 11: Autoscale โ€“ The Traffic Cop

Definition: Autoscale is a feature that automatically scales your resources based on metrics like CPU usage or request count.

Why important: It saves money when demand is low and keeps performance high when demand is high.

Simple explanation: Like a traffic light that adjusts green time based on car volume.

Real-life example: An e-commerce site scales up during sales.

School example: The school website scales up during registration.

Home example: You scale your app based on usage.

Nigerian example: A news website scales up during breaking news.

+------------------+
|  AUTOSCALE       |
|  Rule: If CPU >  |
|  70%, add 1 VM   |
+------------------+

Mini summary: Autoscale adjusts resources automatically.

Lesson 12: Azure Virtual Desktop โ€“ The Cloud PC

Definition: Azure Virtual Desktop is a desktop virtualization service. You can access a Windows desktop from any device.

Why important: It allows remote work and brings-your-own-device (BYOD).

Simple explanation: It's like having your school computer accessible from home.

Real-life example: A company lets employees work from home on Azure Virtual Desktop.

School example: Students can access their school PC from home.

Home example: You can access your home PC from a friend's house.

Nigerian example: A Lagos company uses Azure Virtual Desktop for remote staff.

+------------------+
|  VIRTUAL DESKTOP |
|  (cloud PC)      |
|  Access from any |
|  device          |
+------------------+

Mini summary: Azure Virtual Desktop gives you a cloud-based PC.

Lesson 13: Functions โ€“ The Event Responder

Definition: Azure Functions is a serverless compute service. You write code that runs in response to events, like a file upload or a timer.

Why important: You pay only for the time your code runs โ€“ very cost-effective.

Simple explanation: Like a butler who only works when you ring a bell.

Real-life example: A function automatically resizes images when uploaded to storage.

School example: A function sends an email when a student submits homework.

Home example: A function turns on your lights when you say "turn on".

Nigerian example: A fintech uses a function to process SMS alerts.

+------------------+
|  AZURE FUNCTIONS |
|  (runs on demand)|
|  Event -> Code   |
+------------------+

Mini summary: Functions run code in response to events.

Lesson 14: Logic Apps โ€“ The Workflow Builder

Definition: Logic Apps is a visual tool for building workflows that integrate services. You drag and drop connectors to create a chain of actions.

Why important: You can automate tasks without writing code.

Simple explanation: Like connecting LEGO blocks โ€“ each block does a task.

Real-life example: Logic App checks email, saves attachments to storage, and sends a Slack message.

School example: Logic App sends a reminder email to students.

Home example: Logic App backs up your photos daily.

Nigerian example: A company uses Logic Apps to process orders.

+------------------+
|  LOGIC APP       |
|  (workflow)      |
|  Step1 -> Step2  |
|  -> Step3        |
+------------------+

Mini summary: Logic Apps visually build automated workflows.

Lesson 15: Batch โ€“ The Heavy Lifting

Definition: Azure Batch is a service for running large-scale parallel batch jobs. It manages a pool of VMs to process many tasks at once.

Why important: It's perfect for heavy computation like rendering or data processing.

Simple explanation: Like hiring many workers to pack boxes at a warehouse.

Real-life example: A movie studio uses Batch to render CGI scenes.

School example: A university uses Batch for research data processing.

Home example: You could use Batch to process many photos.

Nigerian example: A company uses Batch for big data analysis.

+------------------+
|  AZURE BATCH     |
|  (parallel jobs) |
|  +----------+    |
|  | task1    |    |
|  | task2    |    |
|  | task3    |    |
|  +----------+    |
+------------------+

Mini summary: Azure Batch runs large-scale parallel computing.


๐Ÿ”‘ Key Vocabulary

WordSimple meaning
ComputeProcessing power to run apps
Virtual Machine (VM)A custom computer in the cloud
ImageTemplate for VM's OS
App ServiceHosts web apps without managing VMs
ContainerLightweight package for apps
ACIRun containers quickly
ACRPrivate container image registry
Scale SetGroup of identical VMs with autoscaling
AutoscaleAutomatically adjust resources
FunctionCode that runs on events

๐Ÿงฉ Important Concepts

  • IaaS vs PaaS: VMs are IaaS (Infrastructure as a Service) โ€“ you manage everything. App Service is PaaS โ€“ Azure manages the infrastructure.
  • Serverless: Functions and Logic Apps are serverless โ€“ you don't manage any servers.
  • Scaling: You can scale up (bigger VM) or scale out (more VMs).

๐Ÿ“ Step-by-step Explanations

  1. Create a VM: Portal โ†’ Create a resource โ†’ Virtual Machine โ†’ choose OS, size, region โ†’ create.
  2. Deploy to App Service: Portal โ†’ App Service โ†’ create โ†’ choose plan โ†’ deploy your code.
  3. Run a container in ACI: Portal โ†’ Container Instances โ†’ choose image โ†’ start.
  4. Create a Function: Portal โ†’ Function App โ†’ choose runtime โ†’ create function.

๐ŸŒ Real-life Examples

  • Netflix uses VMs for streaming.
  • BMW uses App Service for its customer portal.
  • Nigerian banks use VMs for core banking.

๐Ÿ‡ณ๐Ÿ‡ฌ Nigerian Examples

  • A Lagos startup uses App Service for its mobile app backend.
  • A school in Abuja uses Azure Virtual Desktop for online learning.
  • A fintech uses Functions to process SMS payments.

๐Ÿงธ Fun Examples for Kids

  • VM is like a Lego set โ€“ you build exactly what you want.
  • App Service is like a meal delivery service โ€“ you just order and get food.
  • Container is like a lunch box โ€“ it has everything your app needs to run.

๐Ÿ  Everyday Examples

  • Your game console is like a VM โ€“ dedicated hardware.
  • Ordering food online is like App Service โ€“ you don't cook.
  • Packing a school bag is like a container โ€“ everything in one place.

๐Ÿง‘โ€๐Ÿซ Teacher Notes

  • Use the factory analogy to explain compute.
  • Have students draw their own VM on paper.
  • Show the Azure Portal to create a VM (if possible).

๐Ÿ‘ช Parent Tips

  • Explain that compute is the "brain" of apps.
  • Discuss how websites are hosted in the cloud.
  • Show them a simple website running on App Service.

โœจ Interesting Facts

  • Azure can run millions of virtual machines.
  • App Service supports over 10 different programming languages.
  • Azure Functions can scale to millions of requests per second.

๐Ÿ’ก Did You Know?

  • You can run Linux and Windows VMs in Azure.
  • Azure Functions supports Python, C#, JavaScript, and more.
  • Logic Apps has over 300 connectors to other services.

๐Ÿง  Remember This

  • Compute = Brain of the cloud.
  • VM = Custom computer.
  • App Service = Easy website hosting.
  • Container = Lightweight app package.
  • Scale = Grow or shrink as needed.

โš ๏ธ Common Mistakes

  • Choosing a VM size that is too large (wastes money).
  • Forgetting to stop VMs when not in use.
  • Not using autoscale for apps with variable traffic.

โœ… Best Practices

  • Use App Service for web apps to save management time.
  • Use containers for microservices.
  • Use autoscale to handle traffic spikes and save costs.
  • Stop or deallocate VMs when not in use.

๐Ÿ“Š Comparison Tables

ServiceWhat it doesEveryday item
VMFull custom computerYour own PC
App ServiceHosts web appsRestaurant
ACIRuns containersMicrowave meal
FunctionsEvent-driven codeDoorbell

๐Ÿ“ Summary After Every Lesson

Each lesson includes a mini summary, as shown above.

๐Ÿ“ฆ End-of-Module Summary

In this module, we explored the world of Azure Compute. We learned that compute is the brain that runs applications. We discovered Virtual Machines โ€“ custom cloud computers. We used App Service for easy website hosting. We also explored containers (ACI and ACR) for lightweight apps. We saw how Scale Sets and Autoscale help manage traffic. We also learned about Azure Virtual Desktop, Functions, Logic Apps, and Batch. You now know how to give your applications the compute power they need! ๐ŸŽ‰

โ“ Frequently Asked Questions (10)

  1. What is compute? โ€“ Processing power for apps.
  2. What is a VM? โ€“ A virtual computer.
  3. What is App Service? โ€“ A web app hosting service.
  4. What is a container? โ€“ A lightweight app package.
  5. What is ACI? โ€“ Azure Container Instances.
  6. What is ACR? โ€“ Azure Container Registry.
  7. What is a Scale Set? โ€“ Group of identical VMs.
  8. What is autoscale? โ€“ Automatic resource adjustment.
  9. What is Azure Functions? โ€“ Event-driven code.
  10. What is Logic Apps? โ€“ Visual workflow builder.

๐Ÿ“ Review Questions (15)

  1. What is compute?
  2. What is a Virtual Machine?
  3. What is a VM image?
  4. What is App Service used for?
  5. What is an App Service Plan?
  6. What are deployment slots?
  7. What is Azure Container Instances?
  8. What is Azure Container Registry?
  9. What is a VM Scale Set?
  10. What is autoscale?
  11. What is Azure Virtual Desktop?
  12. What are Azure Functions?
  13. What are Logic Apps?
  14. What is Azure Batch?
  15. What is the difference between IaaS and PaaS?

โœ๏ธ Fill-in-the-Blank

  1. Compute is the ______ of the cloud. (brain)
  2. A ______ is a custom cloud computer. (VM)
  3. ______ hosts web apps without managing VMs. (App Service)
  4. A ______ is a lightweight app package. (container)
  5. ______ automatically adjusts resources. (Autoscale)

โœ”๏ธ True or False

  1. VMs are IaaS. (True)
  2. App Service is IaaS. (False)
  3. Containers are heavier than VMs. (False)
  4. Autoscale saves money. (True)
  5. Azure Functions are serverless. (True)

๐Ÿงช Multiple Choice Questions (15)

  1. What is compute?
    a) Processing power b) Storage c) Networking
    Answer: a
  2. What is a VM?
    a) Virtual Machine b) Virtual Memory c) Visual Map
    Answer: a
  3. What service hosts web apps?
    a) App Service b) VM c) Batch
    Answer: a
  4. What is a container?
    a) Lightweight app package b) Heavy app c) Database
    Answer: a
  5. What does ACI stand for?
    a) Azure Container Instances b) Azure Compute Instances c) Azure Control Interface
    Answer: a
  6. What is ACR?
    a) Container registry b) Compute registry c) Storage registry
    Answer: a
  7. VM Scale Sets provide?
    a) Autoscaling b) Manual scaling c) No scaling
    Answer: a
  8. Autoscale is based on?
    a) Metrics like CPU b) Fixed schedule c) Random numbers
    Answer: a
  9. Azure Virtual Desktop is a?
    a) Cloud PC b) Web app c) Database
    Answer: a
  10. Functions run in response to?
    a) Events b) Timers c) Both a and b
    Answer: c
  11. Logic Apps are built with?
    a) Drag-and-drop b) Code only c) Commands
    Answer: a
  12. Batch is for?
    a) Parallel jobs b) Single jobs c) Web hosting
    Answer: a
  13. PaaS stands for?
    a) Platform as a Service b) Product as a Service c) Process as a Service
    Answer: a
  14. IaaS stands for?
    a) Infrastructure as a Service b) Internet as a Service c) Information as a Service
    Answer: a
  15. Which is serverless?
    a) Functions b) VM c) Scale Set
    Answer: a

๐Ÿ”— Matching Exercises

TermMatch
VMCustom computer
App ServiceWeb app host
ContainerLightweight package
AutoscaleAuto resource adjust
FunctionsEvent-driven code

๐Ÿ“ Short Answer Questions

  1. What is the difference between a VM and App Service?
  2. Why would you use Azure Functions?
  3. Explain the concept of autoscale in one sentence.

๐ŸŽญ Scenario-based Exercises

  1. Scenario: A school wants to host its website easily without managing servers. What should they use? (Answer: App Service).
  2. Scenario: A company needs to run a custom application that requires a specific OS and software. What should they use? (Answer: VM).

๐Ÿ‘ฅ Group Activity

In groups, design a compute plan for a small business. Decide whether to use VMs, App Service, containers, or a mix. Present your reasoning.

๐Ÿง‘โ€๐Ÿ’ป Individual Activity

Draw a diagram showing how a web app could be hosted using App Service, with a staging slot for testing. Label each part.

๐Ÿ—ฃ๏ธ Classroom Discussion Questions

  1. Would you rather manage a VM or use App Service? Why?
  2. Can you think of a situation where you would use Azure Functions?
  3. How would autoscale help a business during holiday sales?

๐Ÿ› ๏ธ Mini Project

Build a poster that compares VM, App Service, and Containers. Show their strengths and weaknesses using drawings and simple text.

๐Ÿ“‹ Practical Assignment

With a free Azure account, create a VM (stop after creation to save money). Take a screenshot of the creation page.

๐Ÿ† Challenge Exercise

Without looking at the portal, write the steps to deploy a simple website to App Service. Then, check your steps against the portal.

๐Ÿ”‘ Quiz Answers

All answers are provided within each question section above.

๐Ÿ“Œ Key Takeaways

  • Compute is the processing power for your apps.
  • VMs give you full control but require management.
  • App Service is a managed platform for web apps.
  • Containers are lightweight and portable.
  • Autoscale helps handle variable demand.

โžก๏ธ Preparation for the Next Module

In Module Four, we will explore Azure Networking โ€“ the roads and highways of the cloud. We'll learn about Virtual Networks, subnets, load balancers, and how to connect everything together. Get ready to build your own cloud network! ๐ŸŒ


End of Module Three โ€“ You are now a compute expert! ๐Ÿง 

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’