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! ๐ป
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. ๐ญ
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| Word | Simple meaning |
|---|---|
| Compute | Processing power to run apps |
| Virtual Machine (VM) | A custom computer in the cloud |
| Image | Template for VM's OS |
| App Service | Hosts web apps without managing VMs |
| Container | Lightweight package for apps |
| ACI | Run containers quickly |
| ACR | Private container image registry |
| Scale Set | Group of identical VMs with autoscaling |
| Autoscale | Automatically adjust resources |
| Function | Code that runs on events |
| Service | What it does | Everyday item |
|---|---|---|
| VM | Full custom computer | Your own PC |
| App Service | Hosts web apps | Restaurant |
| ACI | Runs containers | Microwave meal |
| Functions | Event-driven code | Doorbell |
Each lesson includes a mini summary, as shown above.
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! ๐
| Term | Match |
|---|---|
| VM | Custom computer |
| App Service | Web app host |
| Container | Lightweight package |
| Autoscale | Auto resource adjust |
| Functions | Event-driven code |
In groups, design a compute plan for a small business. Decide whether to use VMs, App Service, containers, or a mix. Present your reasoning.
Draw a diagram showing how a web app could be hosted using App Service, with a staging slot for testing. Label each part.
Build a poster that compares VM, App Service, and Containers. Show their strengths and weaknesses using drawings and simple text.
With a free Azure account, create a VM (stop after creation to save money). Take a screenshot of the creation page.
Without looking at the portal, write the steps to deploy a simple website to App Service. Then, check your steps against the portal.
All answers are provided within each question section above.
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! ๐ง