30-Day Basic Azure Learning Workshop
A step-by-step, hands-on workshop that takes a complete beginner from “what is the cloud?” to deploying, securing, monitoring, and automating a real workload on Microsoft Azure — no trainer required.
License & Usage
Free for personal learning. You may use this workshop for your own self-study at no cost.
Commercial use requires written permission. Using this material in paid training, corporate workshops, bootcamps, or any other commercial offering — or redistributing it for commercial purposes — requires prior written permission from the author.
📧 Contact for commercial licensing: inventsiva@gmail.com
Workshop Overview
Who this workshop is for
Beginners, IT professionals, software developers, infrastructure engineers, DevOps learners, and career changers. You need basic IT knowledge (you can use a browser, install software, and have heard of servers and networks) — no cloud experience is assumed.
What you need before Day 1
- A computer with a modern browser (Edge or Chrome recommended) and a reliable internet connection.
- A Microsoft account (a free Outlook.com account works).
- For the Azure free account (created on Day 1): a phone number and a credit/debit card. The card is used for identity verification only — Azure will not charge it unless you explicitly move to pay-as-you-go. A small temporary verification hold (about $1) may appear and is removed.
- Optional but recommended: Visual Studio Code (free) for the Bicep and Git days.
Cost safety — read this first
An Azure free account includes a credit (currently $200 for the first 30 days) plus monthly free amounts of selected services. Details change; always confirm the current offer at azure.microsoft.com/free. Three rules keep you safe:
- Clean up after every lab. Every hands-on section in this workshop ends with cleanup steps — usually deleting the resource group. Do them the same day.
- A budget is an alarm, not a wall. The budget alerts you set on Day 19 notify you by email; they do not stop resources or cap spending, and usage data can be delayed. Deleting resources is the only reliable stop.
- Never share secrets. Never paste passwords, access keys, or connection strings into code, chats, screenshots, or GitHub. This workshop teaches Key Vault and managed identities instead.
Learning outcomes — by Day 30 you will be able to
- Explain cloud computing and core Azure concepts.
- Navigate the Azure portal and identify important Azure services.
- Understand subscriptions, resource groups, regions, and resource management.
- Understand Microsoft Entra ID, users, groups, roles, and RBAC.
- Create and manage basic Azure compute resources.
- Understand Azure virtual networks, subnets, DNS, and network security groups.
- Create and manage Azure Storage resources.
- Deploy a basic web application using Azure App Service.
- Understand Azure Functions and serverless computing.
- Use Azure Key Vault and understand secure secrets management.
- Monitor resources using Azure Monitor, Log Analytics, and alerts.
- Understand Azure cost management, budgets, and resource cleanup.
- Perform basic infrastructure deployment using Azure CLI and introductory Bicep.
- Complete a final practical project and explain its architecture.
This workshop builds practical skills. Completing it does not by itself certify or professionally qualify you — Day 30 maps your next steps toward official Microsoft credentials. Azure portal screens, service names, and prices change over time; where this workbook and the live portal disagree, follow the portal and the official documentation.
30-Day Curriculum Overview
| Day | Week | Topic | Time |
|---|---|---|---|
| Day 1 | Week 1 — Cloud & Azure Fundamentals | Introduction to Cloud Computing and Microsoft Azure | 60–90 minutes |
| Day 2 | Week 1 — Cloud & Azure Fundamentals | IaaS, PaaS, SaaS, Shared Responsibility, and Cloud Deployment Models | 60–90 minutes |
| Day 3 | Week 1 — Cloud & Azure Fundamentals | Azure Regions, Availability Zones, Subscriptions, and Resource Groups | 60–90 minutes |
| Day 4 | Week 1 — Cloud & Azure Fundamentals | Azure Portal, Cloud Shell, Azure CLI, and PowerShell Introduction | 60–90 minutes |
| Day 5 | Week 1 — Cloud & Azure Fundamentals | Microsoft Entra ID, Users, Groups, Authentication, and Identity Basics | 60–90 minutes |
| Day 6 | Week 1 — Cloud & Azure Fundamentals | Azure RBAC, Least Privilege, and Access Management | 60–90 minutes |
| Day 7 | Week 1 — Cloud & Azure Fundamentals | Week 1 Review: Consolidate Cloud and Azure Fundamentals | 60–90 minutes |
| Day 8 | Week 2 — Core Azure Infrastructure | Azure Virtual Machines and Operating System Basics | 60–90 minutes |
| Day 9 | Week 2 — Core Azure Infrastructure | Azure Virtual Network, Subnets, IP Addresses, and Network Security Groups | 60–90 minutes |
| Day 10 | Week 2 — Core Azure Infrastructure | DNS, Connectivity, and Basic Network Troubleshooting | 60–90 minutes |
| Day 11 | Week 2 — Core Azure Infrastructure | Azure Storage Accounts, Blobs, Containers, and File Shares | 60–90 minutes |
| Day 12 | Week 2 — Core Azure Infrastructure | Azure App Service and Basic Web Application Deployment | 60–90 minutes |
| Day 13 | Week 2 — Core Azure Infrastructure | Azure Functions and Serverless Computing Fundamentals | 60–90 minutes |
| Day 14 | Week 2 — Core Azure Infrastructure | Week 2 Practical Lab and Assessment | 60–90 minutes |
| Day 15 | Week 3 — Security, Operations & Automation | Azure Key Vault and Secrets Management | 60–90 minutes |
| Day 16 | Week 3 — Security, Operations & Automation | Azure Monitor, Metrics, Logs, and Alerts | 60–90 minutes |
| Day 17 | Week 3 — Security, Operations & Automation | Log Analytics Workspace and Introductory KQL | 60–90 minutes |
| Day 18 | Week 3 — Security, Operations & Automation | Azure Backup, Recovery, and Resilience Fundamentals | 60–90 minutes |
| Day 19 | Week 3 — Security, Operations & Automation | Azure Cost Management, Pricing, Budgets, and Cleanup | 60–90 minutes |
| Day 20 | Week 3 — Security, Operations & Automation | Azure Policy, Governance, and Resource Tagging | 60–90 minutes |
| Day 21 | Week 3 — Security, Operations & Automation | Azure CLI and PowerShell Hands-On Automation | 60–90 minutes |
| Day 22 | Week 4 — Deployment & Practical Integration | Infrastructure as Code Concepts and Introduction to Bicep | 60–90 minutes |
| Day 23 | Week 4 — Deployment & Practical Integration | Deploy Azure Resources Using a Bicep Template | 60–90 minutes |
| Day 24 | Week 4 — Deployment & Practical Integration | Git and GitHub Fundamentals for Azure Learners | 60–90 minutes |
| Day 25 | Week 4 — Deployment & Practical Integration | Deployment Workflows and Your First Look at Azure DevOps | 60–90 minutes |
| Day 26 | Week 4 — Deployment & Practical Integration | Troubleshooting with Logs and Metrics | 60–90 minutes |
| Day 27 | Week 4 — Deployment & Practical Integration | Best Practices Review: Identity, Networking, Security, Operations | 60–90 minutes |
| Day 28 | Week 4 — Deployment & Practical Integration | Final Project: Plan and Design | 60–90 minutes |
| Day 29 | Week 4 — Deployment & Practical Integration | Final Project: Build, Test, Document | 60–90 minutes |
| Day 30 | Week 4 — Deployment & Practical Integration | Demo Day, Final Review, and Your Learning Roadmap | 60–90 minutes |
Day 1 — Introduction to Cloud Computing and Microsoft Azure60–90 minutes
A. Day 1 — Introduction to Cloud Computing and Microsoft Azure
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain in your own words what cloud computing is and why businesses use it
- Name the six main benefits of cloud computing (high availability, scalability, elasticity, agility, geo-distribution, disaster recovery)
- Describe the difference between CapEx (capital expenditure) and OpEx (operational expenditure)
- Create a free Azure account and sign in to the Azure portal for the first time
C. Prerequisites
- No Azure account needed — creating it is today's lab
- A computer with a web browser and internet access
- An email address you can use for a Microsoft account (or an existing Microsoft account)
- A phone number and a credit or debit card for identity verification (the card is NOT charged)
D. Concepts Explained Simply
Cloud computing is the delivery of computing services — servers, storage, databases, networking, software, and more — over the internet (“the cloud”) on a pay-as-you-go basis. Instead of buying and owning your own physical servers, you rent capacity from a provider such as Microsoft Azure, and you can turn that capacity up or down whenever you want.
Think of it like electricity. A century ago, factories ran their own generators — expensive, hard to maintain, and wasteful when demand was low. Then the power grid arrived: you plug in, use what you need, and get a bill for what you consumed. The cloud is the same idea for computing power. You don't own the power plant; you just turn the switch.
Why does this matter? Because it flips spending from CapEx (capital expenditure — big up-front purchases of hardware) to OpEx (operational expenditure — a monthly bill for what you actually used). No data center to build, no servers to cool, no hardware to replace. It also gives you elasticity (resources grow or shrink automatically with demand), scalability (the ability to handle more work), high availability (your app stays up even if hardware fails), and geo-distribution (you can run your app close to your customers anywhere in the world).
Microsoft Azure is Microsoft's cloud platform: 200+ services across computing, storage, networking, databases, AI, and security, running in data centers in 60+ regions worldwide. This workshop uses Azure because it is the cloud most commonly found in enterprise companies — and the skills transfer to other clouds too.
A note on honesty: portal screens, free-tier limits, and pricing change over time. If a button in this workbook has moved, use the portal's search bar at the top — it is the fastest way to find anything.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure free account page | Documentation | https://azure.microsoft.com/free/ Verified | Official page explaining the free account: $200 credit for 30 days plus always-free services. Read this before starting the lab. | 10 min |
| AZ-900: Describe cloud concepts learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/ Verified | Three short Microsoft modules covering cloud concepts, benefits, and CapEx vs OpEx — ideal reinforcement of today's reading. | 45 min |
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | The home base for free Microsoft training; bookmark it — you will return here throughout the 30 days. | 5 min |
F. Hands-On Workshop
Objective: Create your Azure free account and sign in to the Azure portal for the first time.
Prerequisites: Web browser, an email address, a phone number (for a text/call verification code), and a credit or debit card for identity verification.
Step 1. Open your browser and go to https://azure.microsoft.com/free/ . Read the page so you understand what the free account includes, then click the “Start free” button.
Expected result: You land on the Microsoft sign-in page.
Verify: The page says “Start free” or shows a Microsoft account sign-in prompt.
Troubleshooting: If the page is blank, disable ad-blocker extensions for this site and reload.
Step 2. Sign in with your existing Microsoft account. If you don't have one, click “Create one” and follow the prompts using your email address.
Expected result: You reach the Azure signup form asking for personal details.
Verify: You see fields for country/region, name, and contact information.
Troubleshooting: If you get stuck in a sign-in loop, open a private/incognito window and try again.
Step 3. Fill in your country/region, name, and phone number. Microsoft will send a verification code by text or call — enter it when prompted.
Expected result: Phone verification succeeds.
Verify: The form moves to the payment/identity verification step.
Troubleshooting: If the code doesn't arrive within a few minutes, click “Resend code”; check that your phone can receive international SMS.
Step 4. Enter your credit or debit card details. This is for identity verification only — the free account is not charged. Prepaid cards are often not accepted.
Expected result: Card is accepted and a small temporary authorization may appear.
Verify: The form advances to the agreement step.
Troubleshooting: If your card is rejected, try a different major credit/debit card. Virtual or prepaid cards usually fail verification.
Step 5. Review and accept the subscription agreement, then click “Sign up”.
Expected result: A “Your Azure free account is ready” or similar confirmation page appears.
Verify: You see a confirmation message and a “Go to the portal” button.
Troubleshooting: If signup hangs, wait 2 minutes and reload — do not submit the form twice.
Step 6. Click “Go to the portal” (or go to https://portal.azure.com and sign in with the same account).
Expected result: The Azure portal home page loads, showing a search bar at the top and a left-hand menu.
Verify: Your email address appears in the top-right corner of the portal.
Troubleshooting: If you see an error page, sign out completely and sign back in at portal.azure.com.
Step 7. In the portal search bar at the top, type “Subscriptions” and open it. Confirm you see a subscription named something like “Azure subscription 1” with status Active.
Expected result: One active subscription is listed — this is your free subscription.
Verify: Status shows “Active” and the offer shows your free trial.
Step 8. Take a screenshot or write down your subscription name. You'll need it later. Then sign out and sign back in once to prove to yourself you can get in again.
Expected result: You can sign back in without help.
Verify: Second sign-in works on the first try.
Troubleshooting: Save the portal URL (portal.azure.com) as a browser bookmark.
G. Practical Assignment
Without looking at your notes, explain to a friend (or write in your journal) the difference between CapEx and OpEx, and give one business reason a company would move a workload to the cloud. Write down their/your one follow-up question.
H. Knowledge Assessment
- Q1. What is cloud computing?
- A) Buying physical servers and installing them in your office
- B) Delivering computing services over the internet on a pay-as-you-go basis
- C) A type of computer hardware sold by Microsoft
- D) Storing files only on your local hard drive
- Q2. A company stops buying its own servers and instead pays a monthly Azure bill based on usage. It has moved from:
- A) OpEx to CapEx
- B) CapEx to OpEx
- C) IaaS to SaaS
- D) Public cloud to private cloud
- Q3. Which term describes resources automatically growing or shrinking to match demand?
- A) Elasticity
- B) Geo-distribution
- C) High availability
- D) Fault tolerance
- Q4. Microsoft Azure is best described as:
- A) A single data center in Washington state
- B) Microsoft's cloud platform offering 200+ services across 60+ global regions
- C) A version of Windows for servers
- D) A free email service
- Q5. Practical check: sign in to portal.azure.com, open Subscriptions, and confirm your free subscription shows status Active. Have you done this?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Cloud computing means renting servers, storage, databases and more over the internet and paying only for what you use — not owning the hardware yourself.
- Q2 — Answer: B. CapEx is up-front capital spending on owned assets; OpEx is ongoing operational spending. Cloud's pay-as-you-go model shifts cost from CapEx to OpEx.
- Q3 — Answer: A. Elasticity is the automatic scaling of resources up or down with demand. Scalability is the ability to handle more work; availability is staying up during failures.
- Q4 — Answer: B. Azure is Microsoft's full cloud platform — compute, storage, networking, databases, AI and more — delivered from data centers worldwide.
- Q5 — Answer: Done — I can sign in to portal.azure.com and see my Active free subscription listed.. Practical check — the account from today's lab is the foundation for the rest of the workshop.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 2 — IaaS, PaaS, SaaS, Shared Responsibility, and Cloud Deployment Models60–90 minutes
A. Day 2 — IaaS, PaaS, SaaS, Shared Responsibility, and Cloud Deployment Models
Estimated duration: 60–90 minutes
B. Learning Objectives
- Define IaaS (Infrastructure as a Service), PaaS (Platform as a Service), and SaaS (Software as a Service) with a real example of each
- Explain the shared responsibility model and state who is ALWAYS responsible for data and access
- Distinguish the four cloud deployment models: public, private, hybrid, and multi-cloud
- Use the Azure pricing calculator to produce a monthly cost estimate for a simple workload
C. Prerequisites
- Azure free account (created on Day 1)
D. Concepts Explained Simply
Yesterday you learned the cloud is like the power grid. Today we get precise about how much of the work you rent versus how much you keep. Cloud services come in three flavors, and the pizza analogy is the classic way to remember them.
IaaS (Infrastructure as a Service) is like ordering a pizza kit: the shop delivers the dough, sauce, and cheese, but you assemble and bake it at home. In the cloud, the provider gives you the raw ingredients — VMs (Virtual Machines), storage, and networks — and you install the operating system, patch it, and run your software. Maximum control, maximum work. Example: Azure Virtual Machines.
PaaS (Platform as a Service) is like ordering a ready-made pizza: the shop bakes it, you just eat. The provider manages the operating system, runtime, and patching — you only bring your code and data. Less control, much less maintenance. Example: Azure App Service, where you deploy a website and never touch a server.
SaaS (Software as a Service) is like dining at the restaurant: everything is done for you, you just show up and eat. Finished software delivered over the internet — you configure settings and use it. Example: Microsoft 365, Salesforce, Gmail.
The shared responsibility model describes who does what. In every model Microsoft secures the physical data centers, the network, and the hosts. You ALWAYS own your data, your user accounts, and who can access what. The key rule: the higher up the stack you go (IaaS → PaaS → SaaS), the more the provider manages and the less you do — but your responsibility for data and access never disappears.
Finally, the deployment models: public cloud (shared resources, pay-as-you-go — like Azure itself), private cloud (dedicated to one organization), hybrid cloud (public and private working together), and multi-cloud (using more than one provider, e.g. Azure plus another cloud). Most large companies end up hybrid or multi-cloud.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| AZ-900: Describe cloud concepts learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/ Verified | Microsoft's three free modules on service types, shared responsibility, and deployment models — the official version of today's topics. | 45 min |
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Estimate monthly costs before you build anything. You will use this in today's lab. | 20 min |
F. Hands-On Workshop
Objective: Use the Azure pricing calculator to estimate the monthly cost of a simple VM plus a managed database, so cost becomes a concrete number instead of an abstract idea.
Prerequisites: Azure free account from Day 1 (sign-in not required for the calculator, but keep your subscription handy for comparison).
Step 1. Go to https://azure.microsoft.com/pricing/calculator/ . Spend one minute looking at the layout: product list on the left, your running estimate at the bottom.
Expected result: The pricing calculator loads with an empty estimate.
Verify: You see a search box or product list and an estimate panel showing $0.00.
Troubleshooting: If the page loads slowly, it may be your ad blocker — allow this page and reload.
Step 2. In the product search, type “Virtual Machines” and add it to the estimate. Leave the defaults for now — this represents one basic IaaS server.
Expected result: Virtual Machines is added to your estimate with a default price.
Verify: Your estimate panel shows a non-zero monthly price for Virtual Machines.
Step 3. Change the VM configuration: set the region to the one nearest you (you'll learn what regions are on Day 3), and change the operating system to Linux. Watch how the price moves.
Expected result: The VM price changes as you adjust the settings.
Verify: The monthly estimate updates when you change region or OS.
Troubleshooting: If your region isn't listed, pick the closest available one — this is only an estimate.
Step 4. Add “Azure SQL Database” to the same estimate. Set it to the Basic tier. This represents a PaaS database — Microsoft manages the server, you just use the database.
Expected result: Azure SQL Database appears in the estimate with its own price line.
Verify: The estimate now shows two lines: Virtual Machines and Azure SQL Database.
Step 5. Scroll to the bottom and read the total monthly estimate. Write it down, along with one line explaining what each item pays for.
Expected result: You can read the total and explain both line items.
Verify: You have a written number and two one-line explanations.
Step 6. Change the SQL Database from Basic tier to General Purpose tier, then back. Notice how PaaS pricing steps up with performance — more power, more cost.
Expected result: The estimate recalculates to a lower or higher number.
Verify: You can describe in one sentence how tier changes affect price.
Step 7. Find the disclaimer text on the calculator page (usually near the estimate) and read it. Calculator numbers are planning figures, not a contract.
Expected result: You see a disclaimer that estimates are not quotes and actual billing may vary.
Verify: You can state in your own words why an estimate is not a final bill.
Step 8. In your journal, write: “My simple VM + database would cost about $X/month in region Y. The two biggest cost drivers I noticed are Z.” Save or export the estimate if you want to compare later.
Expected result: You have your own cost number, not Microsoft's example.
Verify: Your journal entry has X, Y, and Z filled in.
Troubleshooting: Use the calculator's share/export option if you want a link — it contains no personal data.
G. Practical Assignment
Open your Azure subscription in the portal and find three services you could recognize from today: one IaaS example, one PaaS example, and one SaaS example Microsoft offers (hint: look at Microsoft's product list). Write down one sentence for each explaining why it belongs in that category.
H. Knowledge Assessment
- Q1. You want to deploy a web app's code without installing or patching the operating system or web server yourself. Which model fits?
- A) IaaS (Infrastructure as a Service)
- B) SaaS (Software as a Service)
- C) PaaS (Platform as a Service)
- D) On-premises
- Q2. Which statement about the shared responsibility model is TRUE?
- A) The cloud provider manages more of the stack as you move from IaaS to PaaS to SaaS
- B) Microsoft manages everything in all models, including your data
- C) You manage everything in all models
- D) The responsibility split is identical for IaaS, PaaS, and SaaS
- Q3. A bank runs all workloads on servers it owns in its own data center, managed by its own staff. Which deployment model is this?
- A) Public cloud
- B) Private cloud
- C) Hybrid cloud
- D) Multi-cloud
- Q4. Microsoft 365 (Outlook, Word, Teams in the browser) is an example of:
- A) IaaS
- B) PaaS
- C) Hybrid cloud
- D) SaaS
- Q5. Practical: draw a table with four rows (on-premises, IaaS, PaaS, SaaS) and three columns: who manages the hardware, who manages the operating system, and one real-world example. Have you completed it?
Answer key & explanations (open after you finish)
- Q1 — Answer: C. In PaaS (Platform as a Service) the provider manages the operating system, runtime, and patching; you focus on your code and data. IaaS still leaves the OS to you; SaaS needs no code at all.
- Q2 — Answer: A. The shared responsibility model always changes with the model: the provider takes over more as you move from on-premises → IaaS → PaaS → SaaS, while you always own your data and access.
- Q3 — Answer: B. A private cloud runs on infrastructure dedicated to one organization (your own data center or a hosted one). Public cloud resources are shared and pay-as-you-go.
- Q4 — Answer: D. SaaS (Software as a Service) is finished software delivered over the internet — the provider runs everything and you just use it.
- Q5 — Answer: Done — my table has the four models, who manages what for each, and at least one real example per model.. Practical reinforcement of IaaS vs PaaS vs SaaS vs on-premises and the responsibility split.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 3 — Azure Regions, Availability Zones, Subscriptions, and Resource Groups60–90 minutes
A. Day 3 — Azure Regions, Availability Zones, Subscriptions, and Resource Groups
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what an Azure region is and why the region you choose matters (latency and data residency)
- Describe availability zones and region pairs and how they protect against failures
- Explain the subscription as the billing and access boundary
- Create a resource group in the portal and set up a budget alert, understanding that budgets are alerts — not spending caps
C. Prerequisites
- Azure free account (created on Day 1)
D. Concepts Explained Simply
Azure runs in data centers all over the world, but you never deploy “to the internet” — you deploy to a specific place. That place is called a region: a set of data centers within a geographic boundary (for example, “East US” in Virginia or “Central India” in Pune), connected by a low-latency network.
Think of regions like warehouse districts. A retail chain doesn't ship everything from one giant warehouse — it keeps stock in warehouses near its customers so deliveries are fast. Cloud regions work the same way: put your app in a region near your users and responses are faster. Regions also matter for law — some data must legally stay inside a country, and choosing a region in that country keeps you compliant.
Inside many regions, Azure offers Availability Zones: physically separate buildings within the same region, each with independent power, cooling, and networking. If one zone loses power, the other zones keep running. Spreading your app across zones is how you survive a data-center failure without leaving the region. Related idea: region pairs — Azure pairs each region with another region at least 300 miles away, so if a whole region ever goes down, you have a planned place to recover.
Now the money and organization side. A subscription is your billing and access boundary — it's the account Azure bills, and the unit you grant people access to. Inside a subscription you organize resources with resource groups: logical containers that hold related resources (a web app, its database, and its storage account might live in one group called “my-website”). Deleting a resource group deletes everything inside it, which makes cleanup wonderfully simple — one delete, and the lab is gone.
Before you create anything billable in this workshop, learn the golden rule of Azure spending: budgets are ALERTS, not spending caps. A budget watches your spending and emails you when you cross a threshold — but it does not stop spending, and the alert email can arrive hours after the spending happened. Use budgets as an early-warning system, and always delete resources you no longer need.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Revisit your Day 2 estimate now that you know what a region is — notice how changing the region changes the price. | 10 min |
| Azure portal | Tool | https://portal.azure.com Verified | You'll do today's lab here. The portal always requires sign-in with your Day 1 account. | 45 min |
F. Hands-On Workshop
Objective: Create a resource group in your chosen region and set up a $50 budget alert so you have an early-warning system for spending.
Prerequisites: Azure free account from Day 1, signed in to the Azure portal.
Step 1. Open the Azure portal and use the top search bar to find your subscription from Day 1. Before creating anything, search the web or portal for the list of Azure regions and pick the region closest to where you live. Write it down.
Expected result: The region list page or documentation shows region names like “East US” and “Central India”.
Verify: You have one region name written down, e.g. “East US” or “Central India”.
Troubleshooting: If you're unsure which is closest, pick the region in your own country — data-residency laws often require it.
Step 2. In the portal search bar, type “Resource groups” and open it. Click “+ Create”.
Expected result: The “Create a resource group” form opens.
Verify: A form asks for Subscription, Resource group name, and Region.
Troubleshooting: If you don't see + Create, check you're signed in to the right account — the one from Day 1.
Step 3. Select your free subscription. Name the group “lab-03” (lowercase, no spaces). Select the region you chose in step 1. Leave tags empty for now.
Expected result: The form shows your subscription, your group name, and your region.
Verify: All three fields are filled and the Review + create button is enabled.
Troubleshooting: If the name is rejected, it's already taken in your subscription — add your initials, e.g. “lab-03-sk”.
Step 4. Click “Review + create”, then “Create”. Wait for the deployment to finish — it usually takes under a minute.
Expected result: The portal reports “Deployment succeeded” and the group appears in the list.
Verify: “lab-03” appears in your Resource groups list.
Troubleshooting: A failed deployment here is rare; if it happens, note the error message and retry.
Step 5. In the portal search bar, type “Cost Management” and open it. This is where Azure shows what you've spent. Take 30 seconds to look at the overview — with a fresh free account it should be near zero.
Expected result: Cost Management opens showing your subscription's spending views.
Verify: You can see a spending overview for your subscription.
Troubleshooting: If Cost Management shows an error, wait a few minutes — billing data can lag on new accounts.
Step 6. In Cost Management, go to “Budgets” in the left menu and click “+ Add” (or “Create budget”). Remember today's rule: this creates an ALERT, not a spending cap.
Expected result: The budget creation form opens.
Verify: A form asks for budget name, amount, and alert conditions.
Troubleshooting: If Budgets is missing from the menu, make sure your subscription — not a management group — is selected at the top.
Step 7. Name the budget “lab-03-alert”, set the amount to 50 USD, and add an alert condition at 80% of the budget. For the alert email, enter your own email address. Save it.
Expected result: The budget is saved and listed as Active.
Verify: Your budget appears in the Budgets list with status Active.
Troubleshooting: Currency defaults to your billing currency — that's fine; keep the amount equivalent to about $50.
Step 8. Open the budget you just created and confirm: amount ≈ $50, alert at 80%, and your email listed under alert recipients.
Expected result: The alert condition shows 80% with your email as the recipient.
Verify: All three settings are visible and correct.
Troubleshooting: If the email field is empty, edit the budget and add it — otherwise the alert has nowhere to go.
Step 9. In your journal, write one sentence completing this: “If my spending hits 80% of $50, Azure will email me, but the alert might arrive late and it will NOT stop my spending, so I must...” Finish the sentence yourself.
Expected result: You can explain the alert's limits in your own words.
Verify: Your journal has a completed, honest sentence.
G. Practical Assignment
Open the portal, go to Resource groups, and create a second resource group named rg-personal in the same region you used today. Then delete it immediately. Write down in your journal: what did the portal warn you about before deleting, and how long did the deletion take?
H. Knowledge Assessment
- Q1. What is an Azure region?
- A) A single physical building
- B) One availability zone
- C) A set of data centers in a geographic area connected by a low-latency network
- D) A billing account
- Q2. You need your app to survive a single data-center power failure inside one Azure region. The best design is:
- A) Two VMs in the same data center rack
- B) Copies of an application placed in different availability zones within the region
- C) Backups stored on your laptop
- D) Running the app in two different subscriptions
- Q3. Which statement about subscriptions and resource groups is TRUE?
- A) Many resource groups can live inside one subscription
- B) A resource group can span multiple subscriptions
- C) A subscription can exist inside a resource group
- D) Resource groups and subscriptions are the same thing
- Q4. What happens when you delete a resource group?
- A) The resources move to another resource group automatically
- B) The resources keep running but become free
- C) Only the resource group's name is deleted
- D) All resources inside it are deleted
- Q5. Practical: confirm your lab-03 resource group appears in the portal and your $50 budget alert is listed. Have you done this?
Answer key & explanations (open after you finish)
- Q1 — Answer: C. A region is a set of data centers deployed within a geographic boundary. Availability zones are separate buildings WITHIN one region — a finer subdivision, not the same thing.
- Q2 — Answer: B. Each availability zone is a physically separate location within the region with independent power, cooling, and networking — surviving the failure of another zone.
- Q3 — Answer: A. Subscriptions are the billing and access boundary; resource groups are organizational containers inside a subscription. You can have many resource groups per subscription.
- Q4 — Answer: D. Resource groups are logical containers — they hold metadata about which subscription manages resources. Deleting the container deletes everything in it; the resources do not magically relocate.
- Q5 — Answer: Done — my resource group exists in my chosen region and my budget alert is visible under Cost Management → Budgets.. Practical confirmation that the learner can organize resources and set up spending alerts.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 4 — Azure Portal, Cloud Shell, Azure CLI, and PowerShell Introduction60–90 minutes
A. Day 4 — Azure Portal, Cloud Shell, Azure CLI, and PowerShell Introduction
Estimated duration: 60–90 minutes
B. Learning Objectives
- Describe what the Azure portal is and navigate it using the search bar
- Launch Azure Cloud Shell and explain why it needs no installation
- Create a resource group with the Azure CLI, explaining each part of the command
- List resource groups with Azure PowerShell and recognize the verb-noun cmdlet pattern
- Compare the Azure CLI and Azure PowerShell approaches to the same task
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Day 3 (resource groups, regions)
D. Concepts Explained Simply
So far you've driven Azure with a mouse. Professionals also drive it with typed commands — faster, repeatable, and automatable. Today you meet the four ways to talk to Azure.
The Azure portal (portal.azure.com) is the graphical website: point, click, and create. Think of it as a car's dashboard — dials and buttons, easy to learn, perfect when you're starting out. Its best feature is the search bar at the top: type any service name and jump straight there.
Azure Cloud Shell is a terminal that lives inside the portal — click the >_ icon in the top bar and a command prompt opens in your browser. No installation, nothing to configure; the Azure tools are already there. It gives you two shells: Bash (the Linux world's shell) and PowerShell (Microsoft's shell). Files you save in Cloud Shell persist in a small Azure storage account created for you. Think of Cloud Shell as a workshop terminal bolted to the wall of the Azure factory — always there, always ready.
The Azure CLI is the command-line tool you use inside Bash (and it works in PowerShell and on your own laptop too). Its commands read like sentences: az group create --name lab-04 --location eastus means “Azure, create a resource group named lab-04 in East US.” The pattern is always az <what> <action> --parameters.
Azure PowerShell is Microsoft's alternative, built on PowerShell's verb-noun pattern: Get-AzResourceGroup (Get = the verb, AzResourceGroup = the noun). Same cloud, different dialect. In this workshop you'll mostly use the Azure CLI, but you should recognize PowerShell cmdlets because many companies use them.
Why learn commands at all? Because clicking through the portal 50 times is how mistakes happen. A command can be saved, reviewed, and run identically every time — that is the foundation of automation, which you'll meet later in the workshop.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| What is Azure Cloud Shell | Documentation | https://learn.microsoft.com/en-us/azure/cloud-shell/overview Verified | Official overview of Cloud Shell: features, the storage it creates, and how files persist between sessions. | 10 min |
| Install the Azure CLI | Documentation | https://learn.microsoft.com/en-us/cli/azure/install-azure-cli Verified | Reference for later, when you want the CLI on your own computer instead of only in Cloud Shell. | 10 min |
F. Hands-On Workshop
Objective: Launch Cloud Shell, create a resource group with the Azure CLI, and list resource groups with Azure PowerShell — the same task in two command languages.
Prerequisites: Azure free account from Day 1, signed in to the Azure portal.
Step 1. In the Azure portal, click the Cloud Shell icon (>_) in the top bar, next to the search box.
Expected result: A terminal pane opens at the bottom of the portal.
Verify: A terminal panel slides up from the bottom of the portal.
Troubleshooting: If the icon is missing, you may be on a narrow screen — widen the window or use the portal menu.
Step 2. When asked to choose an environment, pick Bash. Cloud Shell will ask to create a storage account for your files — click Create. (This storage is tiny; see the cost note.)
Expected result: A Bash prompt appears and Cloud Shell is ready.
Verify: You see a Bash prompt like yourname@Azure:~$.
Troubleshooting: If storage creation fails, try a different region in the prompt — any region works.
Step 3. Type: az account show --output table — then press Enter. Breakdown: `az` = the Azure CLI; `account show` = “show me the current account”; `--output table` = “display it as a table”.
Expected result: A table shows your subscription name, ID, and that it is the default.
Verify: Your subscription name from Day 1 appears in the output.
Troubleshooting: If the command isn't found, reload Cloud Shell — the CLI is preinstalled, so a fresh session fixes it.
Step 4. Type: az group list --output table — then press Enter. `group list` = “list all resource groups”. Confirm you see the lab-03 group from Day 3.
Expected result: A table lists lab-03 and any other groups you have.
Verify: lab-03 appears in the table.
Troubleshooting: If lab-03 is missing, you may be in the wrong subscription — run `az account list --output table` to check.
Step 5. Type: az group create --name lab-04 --location <your-region> — replacing <your-region> with your Day 3 region name with no spaces (e.g. eastus). Breakdown: `group create` = the action; `--name` = what to call it; `--location` = which region.
Expected result: JSON output confirms the group was created, showing its name and location.
Verify: The output shows "name": "lab-04" and your region.
Troubleshooting: If the region name is rejected, run `az account list-locations --output table` and copy the exact Name column value.
Step 6. Type: az group show --name lab-04 --output table — to confirm the group exists exactly as you described it.
Expected result: The same lab-04 group is shown.
Verify: One row appears with name lab-04.
Step 7. In the Cloud Shell toolbar, use the environment dropdown (top-left of the terminal) to switch from Bash to PowerShell. Wait for it to connect — your sign-in carries over automatically.
Expected result: The prompt changes to PowerShell style (PS Azure:\>).
Verify: You see a PS prompt.
Troubleshooting: If PowerShell hangs on connecting, switch back to Bash and then to PowerShell once more.
Step 8. Type: Get-AzResourceGroup — then press Enter. Breakdown: `Get` = the verb (fetch); `AzResourceGroup` = the noun (what to fetch). This is the PowerShell dialect of the same “list my groups” request.
Expected result: A list of your resource groups appears, including lab-04.
Verify: lab-04 is in the list.
Troubleshooting: If you see a red error about not being connected, run Connect-AzAccount and follow the device-login prompt.
Step 9. Type: Get-AzResourceGroup -Name lab-04 — to fetch just the one group, mirroring the `az group show` you ran in Bash.
Expected result: Only the lab-04 group is returned.
Verify: A single result for lab-04 appears.
Step 10. In your journal, write one sentence comparing the two dialects: what felt similar (same cloud, same result) and what felt different (az … … --flags vs Verb-Noun).
Expected result: You can state one similarity and one difference in your own words.
Verify: Your journal has the comparison sentence.
G. Practical Assignment
Without looking at your notes, write the Azure CLI command to create a resource group named rg-test in your region, and the PowerShell cmdlet to list all resource groups. Then open Cloud Shell and check whether you got them right. Fix any mistakes in your journal.
H. Knowledge Assessment
- Q1. What is Azure Cloud Shell?
- A) A shell you install on your laptop
- B) A new Azure virtual machine
- C) A browser-based Bash/PowerShell terminal inside the Azure portal, with Azure tools preinstalled
- D) A mobile app for monitoring Azure
- Q2. Which command correctly creates a resource group named lab-04 in East US with the Azure CLI?
- A) az group create --name lab-04 --location eastus
- B) create az group lab-04 eastus
- C) az create-group lab-04 in eastus
- D) New-AzGroup lab-04 eastus
- Q3. Which is a valid Azure PowerShell cmdlet to list resource groups?
- A) az group list
- B) Get-AzResourceGroup
- C) list-az-groups
- D) az resourcegroup get
- Q4. Which statement about the portal and Cloud Shell is TRUE?
- A) Both require installing software
- B) Cloud Shell only works on Windows
- C) The portal cannot create resource groups
- D) Neither requires installing anything on your computer
- Q5. Practical: in Cloud Shell, list your resource groups using the Azure CLI in Bash AND using Azure PowerShell. Do both commands show your lab-04 group?
Answer key & explanations (open after you finish)
- Q1 — Answer: C. Azure Cloud Shell is a browser-based shell built into the portal — Bash or PowerShell with the Azure tools preinstalled. No installation needed; it runs in the cloud, not on your laptop.
- Q2 — Answer: A. The Azure CLI command is `az`, followed by the resource type (`group`), the action (`create`), and parameters. `--name` and `--location` name the group and pick its region.
- Q3 — Answer: B. Get-AzResourceGroup follows the PowerShell verb-noun pattern: Get (the verb) + AzResourceGroup (the noun). Azure CLI would be `az group list`.
- Q4 — Answer: D. The portal is a graphical website; Cloud Shell runs in your browser and needs nothing installed. Both are accessed through the browser.
- Q5 — Answer: Done — I ran commands in both Bash (az ...) and PowerShell (Get-Az...) and got the same resource group listed in both.. Practical proof the learner can drive Azure from the command line in two shells.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 5 — Microsoft Entra ID, Users, Groups, Authentication, and Identity Basics60–90 minutes
A. Day 5 — Microsoft Entra ID, Users, Groups, Authentication, and Identity Basics
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what Microsoft Entra ID is and what a tenant represents
- Distinguish authentication (who you are) from authorization (what you can do)
- Explain MFA (Multi-Factor Authentication) and why every account should use it
- Create a user and a security group in the portal and add the user to the group
- Verify a new user can sign in, and explain why a new user sees almost nothing
C. Prerequisites
- Azure free account (created on Day 1)
D. Concepts Explained Simply
Every office building has a badge system: it knows who works there, which badge opens which door, and it logs every entry. Microsoft Entra ID (formerly called Azure Active Directory) is the cloud version of that badge system. It is Microsoft's identity service — it stores user accounts and groups, and it handles signing in to Azure, Microsoft 365, and thousands of other apps.
Your badge system lives in a tenant: your organization's dedicated instance of Entra ID. When you created your Azure account on Day 1, Microsoft created a tenant for you automatically (named something like youname.onmicrosoft.com). Everything you do in Azure happens inside that tenant.
Two words you'll use constantly: authentication and authorization. Authentication (“authN”) answers who are you? — proving your identity with a password, a phone code, or biometrics. Authorization (“authZ”) answers what are you allowed to do? — and that decision happens after you're signed in. You'll master authorization tomorrow with RBAC; today is about proving identity.
The single biggest upgrade to authentication is MFA (Multi-Factor Authentication): requiring two or more proofs at sign-in, such as your password plus a code from your phone. Passwords get stolen every day; MFA means a stolen password alone is useless. Turn it on for your own account — it is the cheapest security improvement in all of cloud computing.
Finally, users and groups. A user is one person's account. A security group is a collection of users managed as one unit — instead of granting 200 developers access one by one, you grant it to the “Developers” group once. New hire? Add them to the group and they're set. This one habit — manage access through groups, not individuals — is what separates beginners from professionals.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Search for the free “Microsoft Entra ID” modules here for deeper identity training after today's lab. | 30 min |
| Microsoft Entra ID overview (What is Microsoft Entra ID?) | Documentation | https://learn.microsoft.com/en-us/entra/fundamentals/whatis Needs verification | Official documentation explaining tenants, users, groups, and authentication concepts in more depth. | 20 min |
F. Hands-On Workshop
Objective: Create a test user and a security group in Microsoft Entra ID, add the user to the group, and verify the user can sign in.
Prerequisites: Azure free account from Day 1, signed in to the Azure portal as the account owner.
Step 1. In the portal search bar, type “Microsoft Entra ID” and open it. Look at the Overview page and find your tenant name (it ends in .onmicrosoft.com). Write it down — you'll need it in the next step.
Expected result: The Microsoft Entra ID overview page opens, showing your tenant name.
Verify: You can see a tenant name ending in .onmicrosoft.com.
Troubleshooting: If “Microsoft Entra ID” doesn't appear in search, try searching just “Entra”.
Step 2. In the left-hand menu of Microsoft Entra ID, click “Users”. This is the roster of every account in your tenant — right now it's mostly just you.
Expected result: The Users list opens.
Verify: You see at least your own account listed as a Member.
Step 3. Click “+ New user” at the top, then “Create new user”. Fill in: User principal name = labuser@<your-tenant-name> (e.g. labuser@contoso.onmicrosoft.com); Display name = “Lab User”.
Expected result: The “Create new user” form opens.
Verify: The form shows your chosen user principal name and display name.
Troubleshooting: If the principal name is rejected, check you used your exact tenant domain from step 1.
Step 4. Leave “Auto-generate password” checked, and COPY the temporary password shown — save it somewhere safe (a password manager or a notebook, never in a chat or email). Click “Create”.
Expected result: The user is created and appears in the Users list.
Verify: “Lab User” appears in the Users list.
Troubleshooting: If you lose the temp password, you can reset it from the user's page later.
Step 5. In the left-hand menu, click “Groups”, then “+ New group”. Set Group type = Security, Group name = “Lab-Readers”, Group description = “Practice group for the Azure workshop”.
Expected result: The “New group” form opens.
Verify: The form shows Security type and your group name.
Step 6. Under Members, click “No members selected”, search for “Lab User”, select it, and confirm. Then click “Create”.
Expected result: The group is created with Lab User as a member.
Verify: The group is created; opening it shows Lab User under Members.
Troubleshooting: If Lab User doesn't appear in the search, wait 30 seconds and try again — new users can take a moment to index.
Step 7. Open a private/incognito browser window, go to https://portal.azure.com, and sign in as labuser@<your-tenant> with the temporary password. When prompted, set a new password for the Lab User.
Expected result: You are signed in as Lab User in the incognito window (you'll be asked to set a new password — this is normal).
Verify: The portal loads showing “Lab User” in the top-right corner.
Troubleshooting: If sign-in fails, double-check the full user principal name including the tenant domain.
Step 8. As the Lab User, look around: open “Subscriptions” from the search bar. Notice what you can and cannot see. Then sign out of the incognito window and close it.
Expected result: The portal shows no subscriptions — this is EXPECTED and correct. The user authenticated fine; they just have zero permissions (you'll fix that on Day 6).
Verify: You can describe in one sentence what the Lab User could see.
Troubleshooting: Seeing nothing here is not an error — it's proof that authentication (who you are) and authorization (what you can do) are separate.
Step 9. Back in your main browser (signed in as yourself), open Groups → Lab-Readers and confirm Lab User is still listed as a member. In your journal, write what surprised you about the Lab User's limited view.
Expected result: Your journal has the one-sentence observation.
Verify: Membership confirmed and journal entry written.
G. Practical Assignment
In the portal, open Microsoft Entra ID → Users and look at your own user account. Write down: your User Principal Name, your account type (Member or Guest), and whether MFA appears to be set up for it. Then write one paragraph: why would a company require MFA for every employee?
H. Knowledge Assessment
- Q1. What is Microsoft Entra ID?
- A) A virtual machine service
- B) Microsoft's cloud-based identity and access management service
- C) A database for storing files
- D) A billing dashboard
- Q2. What is the difference between authentication and authorization?
- A) They are the same thing
- B) Authentication proves who you are; authorization decides what you may do
- C) Authorization happens before authentication
- D) Authentication is only for admins
- Q3. MFA (Multi-Factor Authentication) protects an account by:
- A) Using a longer password
- B) Changing your password monthly
- C) Requiring two or more proofs of identity at sign-in, like a password plus a phone code
- D) Using the same password everywhere
- Q4. Why do companies put users into groups instead of managing each user individually?
- A) You manage access once per group instead of once per person
- B) Groups are required to sign in
- C) Groups replace passwords
- D) Users cannot exist without a group
- Q5. Practical: sign in to the portal in a private/incognito window as your Lab User. Can you sign in successfully, and do you see the Lab-Readers group membership reflected under your main account's Groups page?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Microsoft Entra ID is the cloud identity service: it stores user accounts and groups and handles sign-in (authentication) for Azure and Microsoft 365.
- Q2 — Answer: B. Authentication answers “who are you?” (proving identity at sign-in); authorization answers “what are you allowed to do?” (permissions after sign-in).
- Q3 — Answer: C. MFA (Multi-Factor Authentication) requires two or more proofs — e.g. password plus a phone code — so a stolen password alone is not enough.
- Q4 — Answer: A. Groups let you manage permissions for many people at once — add someone to the “Developers” group and they inherit the group's access. Managing users one by one doesn't scale.
- Q5 — Answer: Done — the Lab User can sign in (authentication works), appears in the Lab-Readers group, and sees no subscriptions (expected — they have no permissions yet).. Practical proof the learner can create identities and verify sign-in.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 6 — Azure RBAC, Least Privilege, and Access Management60–90 minutes
A. Day 6 — Azure RBAC, Least Privilege, and Access Management
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain Azure RBAC (Role-Based Access Control) using its three parts: role, security principal, and scope
- Distinguish the Owner, Contributor, and Reader built-in roles
- Explain the principle of least privilege and why narrow scopes matter
- Assign a role to a group at resource-group scope in the portal
- Verify effective access with Check access, then remove the assignment
C. Prerequisites
- Azure free account (created on Day 1)
- Day 5 completed (Lab User and Lab-Readers group exist)
D. Concepts Explained Simply
Yesterday your Lab User signed in successfully — and could see almost nothing. That gap between “I know who you are” (authentication) and “here's what you may touch” (authorization) is exactly what Azure RBAC (Role-Based Access Control) fills.
Stay with the office-badge analogy: every badge in a building is programmed with permissions. The cleaner's badge opens supply closets, the engineer's opens the server room, the CEO's opens everything. RBAC is the system that programs the badges. An RBAC assignment has three parts: a role (the WHAT — a named set of allowed actions), a security principal (the WHO — a user, group, or application), and a scope (the WHERE — a subscription, a resource group, or a single resource).
Azure has three built-in roles you'll use constantly: Owner — full control, including managing who else has access (the master key). Contributor — can create, change, and delete resources, but cannot grant access to others. Reader — can look, but cannot change anything. (A fourth, User Access Administrator, manages access only.)
Scope matters enormously. Assign Contributor at the subscription scope and that person can change EVERY resource you own. Assign Reader at one resource group and they can only view that group. Permissions also inherit downward: a role given at the subscription level flows into every resource group and resource beneath it — like a master key that also opens every office on every floor.
The professional habit governing all of this is the principle of least privilege: give each person the smallest role, at the narrowest scope, for the shortest time their job requires. It is not about distrust — it's about damage control. If an account with only Reader access is compromised, the attacker can look but cannot delete or steal compute. A compromised Owner account, by contrast, can hand the entire cloud to an attacker in minutes. Least privilege is why you saw so few subscription Owners in real companies — usually two or three, never twenty.
One security habit to carry forward: never store passwords, keys, or connection strings in code or notes. When resources need secrets, Azure's pattern is Key Vault (a dedicated secrets store) and managed identities (Azure-issued identities for apps, so they never handle a password at all). You'll meet Key Vault properly later in the workshop.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Key Vault overview | Documentation | https://learn.microsoft.com/en-us/azure/key-vault/general/overview Verified | Background for the secrets pattern mentioned today: why secrets live in Key Vault with RBAC-controlled access, not in code or notes. | 15 min |
| Azure role-based access control (RBAC) overview | Documentation | https://learn.microsoft.com/en-us/azure/role-based-access-control/overview Needs verification | Official RBAC documentation: roles, scopes, inheritance, and how assignments are evaluated. | 25 min |
F. Hands-On Workshop
Objective: Assign the Reader role to your Lab User at resource-group scope, verify what they can see, then remove the assignment — practicing least privilege end to end.
Prerequisites: Azure free account (Day 1), the Lab User and Lab-Readers group from Day 5 (create them first if you deleted them), and the lab-03 resource group from Day 3.
Step 1. In the portal, go to Resource groups → lab-03 to open the group. In its left-hand menu, click “Access control (IAM)”. This blade is where all role assignments for this scope live.
Expected result: The Access control (IAM) page for lab-03 opens.
Verify: You see tabs like Check access, Role assignments, and Roles.
Troubleshooting: If IAM is missing from the menu, widen the browser window — the menu collapses on narrow screens.
Step 2. Click “+ Add” at the top, then “Add role assignment”.
Expected result: The Add role assignment wizard opens.
Verify: A list of roles appears (Owner, Contributor, Reader, and many more).
Step 3. In the role list, find and select “Reader”. Read its description — view everything, change nothing. Click “Next”.
Expected result: Reader is selected and highlighted.
Verify: Reader is the chosen role before you continue.
Troubleshooting: Use the search box in the wizard if the list is long — type “Reader”.
Step 4. On the Members tab, choose “User, group, or service principal”, click “+ Select members”, search for “Lab-Readers”, select the GROUP (not the individual user — assigning to groups is the professional habit), and click “Select”, then “Next”.
Expected result: Lab-Readers is selected as the assignee.
Verify: The Members tab shows Lab-Readers.
Troubleshooting: If Lab-Readers doesn't appear, confirm it still exists under Microsoft Entra ID → Groups.
Step 5. Click “Review + assign”, review the summary (Role: Reader, Scope: lab-03, Assigned to: Lab-Readers), then click “Review + assign” again to finish.
Expected result: The assignment succeeds and a confirmation appears.
Verify: You see a success notification.
Troubleshooting: If assignment fails with a permissions error, confirm you're signed in as the account owner from Day 1.
Step 6. On the Access control (IAM) page, click the “Role assignments” tab. Find the Reader row and confirm Lab-Readers appears. This is the audit view — who has what, at this scope.
Expected result: Reader is listed with Lab-Readers (and the Lab User through membership).
Verify: Reader → Lab-Readers is visible in the list.
Step 7. Click the “Check access” tab, search for “Lab User”, and open the result. Azure computes the user's effective access — because the group has Reader, the user does too.
Expected result: Check access shows Reader permissions for the Lab User.
Verify: Lab User shows Reader-level access on lab-03.
Troubleshooting: If results are empty, wait 2 minutes and retry — role assignments can take a moment to propagate.
Step 8. Open a private/incognito window, go to https://portal.azure.com, sign in as Lab User, and open Resource groups. Then sign out and close the window.
Expected result: In the incognito window, the Lab User CAN now open the lab-03 resource group and view it — but “+ Create” actions in Azure will fail with an authorization error if they try to add a resource.
Verify: The Lab User sees lab-03 as view-only.
Troubleshooting: If the group isn't visible yet, wait a few minutes — propagation delay is normal.
Step 9. Back as yourself, in your journal complete this sentence: “The Lab User could see lab-03 today because the ___ role was assigned to the ___ group at the ___ scope.”
Expected result: You can state what changed between Day 5 and now, in RBAC terms.
Verify: Your sentence says: Reader role, Lab-Readers group, lab-03 (resource group) scope.
Step 10. Remove the assignment: Access control (IAM) → Role assignments → select the Reader/Lab-Readers row → “Remove” → confirm “Yes”. Then re-run Check access for Lab User to prove it's gone. Least privilege includes taking access AWAY when the task is done.
Expected result: The assignment is removed and Check access shows no Reader access for the Lab User.
Verify: Check access no longer lists Reader for the Lab User on lab-03.
Troubleshooting: If Remove is greyed out, make sure you selected the assignment row's checkbox first.
G. Practical Assignment
Suppose your team hires an intern who needs to view resources in ONE resource group for a summer project, and a senior engineer who manages (but does not own billing for) the whole subscription. Write down which role and which scope you would assign to each, and one sentence justifying each choice using the principle of least privilege.
H. Knowledge Assessment
- Q1. Azure RBAC (Role-Based Access Control) works by:
- A) Encryption of data at rest
- B) Granting permissions by assigning roles to users or groups at a scope
- C) A firewall rule set
- D) A backup policy
- Q2. You want a teammate to view your resource group but never create or delete anything. Which built-in role fits?
- A) Owner
- B) Contributor
- C) Reader
- D) User Access Administrator
- Q3. “Give each person only the permissions they need for their job — no more.” This is:
- A) The principle of least privilege
- B) Defense in depth
- C) Zero trust
- D) Shared responsibility
- Q4. A role assigned at the subscription scope applies to:
- A) Nowhere — assignments don't inherit
- B) Only that one resource group
- C) Only that one resource
- D) Every resource group and resource inside the subscription
- Q5. Practical: in the Access control (IAM) blade of your resource group, use “Check access” to confirm your Lab User's effective permissions, before and after removing the assignment. Did the results change as expected?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. RBAC (Role-Based Access Control) grants permissions by assigning a role (what) to a security principal (who) at a scope (where) — permissions flow from that combination.
- Q2 — Answer: C. Reader can view resources but cannot create, change, or delete anything — perfect for auditors, observers, and new team members.
- Q3 — Answer: A. The principle of least privilege: give only the permissions someone needs to do their job — no more — so mistakes and compromises cause less damage.
- Q4 — Answer: D. Role assignments inherit downward: subscription-level roles apply to all resource groups and resources inside it. The broadest scope gives the widest access.
- Q5 — Answer: Done — the Lab User appeared in the Check access results with Reader only, and removing the assignment removed them from the list.. Practical proof the learner can grant and revoke scoped access.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 7 — Week 1 Review: Consolidate Cloud and Azure Fundamentals60–90 minutes
A. Day 7 — Week 1 Review: Consolidate Cloud and Azure Fundamentals
Estimated duration: 60–90 minutes
B. Learning Objectives
- Summarize the core cloud and Azure concepts from Days 1–6 in your own words
- Verify your free account, subscription, budgets, and resource inventory are healthy
- Complete a guided consolidation exercise in the portal and Azure Cloud Shell
- Score yourself on a Week 1 self-test and list exactly what to revisit
C. Prerequisites
- Azure free account (created on Day 1)
- Days 1–6 completed, with your daily journal notes handy
- A browser signed in to the Azure portal
D. Concepts Explained Simply
Think of Week 1 as learning the parts of a workshop before you start building furniture. Days 1–6 gave you the tools: what cloud computing is, how Azure organizes everything, and how to click and type your way around without breaking anything expensive. Today you lay every tool out on the bench, check none are missing, and prove you can pick each one up on demand.
Here is the Week 1 story in one paragraph. Cloud computing means renting computers, storage, and networking over the internet instead of buying hardware. Microsoft Azure is one provider of those rented services. Your subscription is your billing account — the free trial subscription holds your $200 credit. Inside a subscription you create resource groups, which are folders that hold related resources (a virtual machine, a storage account, and so on). Every resource lives in a region, a physical Azure datacenter location such as East US. You manage all of this through the Azure portal (the website), the Azure CLI (typed commands), or Cloud Shell (a free CLI that runs right in your browser with no install). Cost Management + Billing with a budget keeps spending visible — and remember, a budget is an alert, not a spending cap: it emails you when you approach a limit, it does not stop the meter.
Why a revision day matters: cloud skills are built like muscle memory. Reading about a resource group is not the same as creating and deleting one twice. Today’s exercise forces you to touch every Week 1 skill once more, so Week 2 (virtual machines, networks, storage, web apps) starts on solid ground instead of shaky memory.
- Subscription — your billing container; one free-trial subscription per account.
- Resource group — a folder for related resources; deleting the folder deletes everything inside, which makes cleanup easy.
- Region — where your resources physically run; pick one close to you and stick with it for these labs.
- Cloud Shell — a free, browser-based terminal with the Azure CLI preinstalled.
- Budget — a Cost Management alert on spending; it warns, it never blocks.
Portal screens, free-tier limits, and prices change over time — if a button moved, use portal search (the top bar) to find it by name. That search habit is itself a Week 1 skill worth keeping.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Microsoft Learn — Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Browse free learning paths to reinforce any Week 1 topic you feel shaky on | 20 min |
| Microsoft Learn — AZ-900 cloud concepts learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/ Verified | Three short modules that re-explain cloud models, capex vs opex, and regions — ideal Week 1 revision | 45 min |
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Practice estimating a small VM’s monthly cost so the numbers stop feeling abstract | 15 min |
F. Hands-On Workshop
Objective: Prove your Week 1 setup is solid: inventory your resources, check your spending, and run basic Cloud Shell commands.
Prerequisites: Azure free account; browser access to the Azure portal.
Step 1. Sign in at the Azure portal and confirm which account you are using: click your profile picture (top right) and check the email matches your free-account email.
Expected result: You see your own email address and the portal home page loads.
Verify: The profile menu shows the same email you used to create the free account.
Troubleshooting: If you land in the wrong tenant or directory, use the profile menu → Switch directory to pick the right one.
Step 2. In the top search bar type 'Subscriptions' and open it. Click your subscription (usually named 'Free Trial' or similar) and note the status and any credit balance shown.
Expected result: A subscription overview page showing status Active and your remaining credit or spending.
Verify: Status reads Active; you can see a spending/credit figure.
Troubleshooting: If no subscription appears, you may be signed in with the wrong account — sign out and back in with your free-account email.
Step 3. Search 'Resource groups' and open the list. Write down every resource group name you see — these are leftovers from Days 1–6 practice.
Expected result: A list of resource groups, possibly empty or with a few practice groups.
Verify: You have a written list (paper or notes app) of all group names.
Step 4. Click into one practice resource group from Days 1–6 and open its 'Resources' list. Confirm you can explain what each resource in it is and why you created it.
Expected result: You can say in one sentence per resource what it does.
Verify: No resource in the list is a mystery to you — if one is, that topic goes on your revisit list.
Troubleshooting: If a resource type is unfamiliar, search its name in the Microsoft Learn Azure training hub later.
Step 5. Search 'Cost Management' → open 'Budgets' under your subscription. Confirm the budget alert you set earlier still exists and note its threshold amount and alert percentage.
Expected result: Your budget appears with its amount and alert rules (for example, alert at 80% of $200).
Verify: The budget row is listed and its details open when clicked.
Troubleshooting: If the budget is missing, recreate one now: Budgets → + Add → set amount 200 USD and an 80% alert to your email. Remember: this is an alert, not a spending cap.
Step 6. Click the Cloud Shell icon (>_) in the top toolbar. On first launch choose 'Bash' and create a storage account when prompted (Cloud Shell needs a tiny storage account to keep your files).
Expected result: A terminal opens at the bottom of the portal and connects after a short wait.
Verify: You see a prompt like user@Azure:~$ and can type commands.
Troubleshooting: If Cloud Shell times out, close it, wait a minute, and reopen it. The small storage account it creates costs a few cents per month at most.
Step 7. In Cloud Shell, type: az account show --output table. The 'az' command is the Azure CLI; 'account show' asks 'which subscription am I using?'; '--output table' formats the answer as a readable table.
Expected result: A table showing your subscription name, id, and state.
Verify: The 'name' column matches your Free Trial subscription and 'state' is Enabled.
Troubleshooting: If the command is not found, you are not in Cloud Shell — make sure the terminal says Azure and not your local machine.
Step 8. Type: az group list --output table. This lists every resource group in your subscription, matching what you saw in the portal in step 3.
Expected result: A table of resource groups identical to your written list.
Verify: Portal list and CLI list agree — this proves you can inventory resources two ways.
Step 9. Type: az account list-locations --query "[?name=='eastus'].{Name:name, Display:displayName}" --output table. This asks Azure for the display name of the East US region. Regions are the physical locations from Day 2 — this is how you query them by code.
Expected result: A one-row table showing eastus and 'East US'.
Verify: The Display column reads 'East US'.
Troubleshooting: Mind the quotes: the query uses single quotes inside double quotes. Retype carefully if you get a parsing error.
Step 10. Open the Azure pricing calculator in a new tab and estimate one Standard_B1s virtual machine (the size you will use on Day 8) running full-time for a month in East US. Write the number down.
Expected result: A monthly estimate appears (the exact figure changes over time — what matters is that you can produce one).
Verify: You have a written estimate and you know which inputs produced it.
Troubleshooting: If the B1s size is hard to find, search the calculator for 'Virtual Machines' first, then filter by B-series.
G. Practical Assignment
On paper or in a doc, write a one-page Week 1 summary in your own words: define subscription, resource group, region, resource, portal, CLI, Cloud Shell, and budget, and draw a simple diagram showing how they relate (for example: account → subscription → resource groups → resources, each pinned to a region). No solution is provided — this page becomes your personal cheat sheet for Week 2.
H. Knowledge Assessment
- Q1. What is the correct containment order in Azure?
- A) Resource → resource group → region → subscription
- B) Subscription → resource group → resource, with each resource in a region
- C) Region → subscription → resource → resource group
- D) Resource group → subscription → region → resource
- Q2. You set a $200 budget with an 80% alert in Cost Management. Spending reaches $170. What happens?
- A) Azure stops all your resources at $160
- B) You get an alert email; resources keep running
- C) The subscription is suspended until you approve
- D) Nothing — budgets only report once a month
- Q3. Which statement about Azure Cloud Shell is true?
- A) It must be installed on your laptop before use
- B) It runs in the browser with the Azure CLI preinstalled and is free to use
- C) It only works with Windows containers
- D) It deletes your resources when the session ends
- Q4. Why does every lab in this workshop end with cleanup steps that delete the resource group?
- A) Deleted resource groups earn free credit
- B) It keeps the portal tidy and stops any metered resources from charging after the lab
- C) Azure requires deletion within 24 hours by policy
- D) It is only needed for virtual machines
- Q5. Practical: open Cost Management in the portal and write down (1) your current month-to-date spend, (2) your forecasted spend, and (3) whether your budget alert is configured. What does a healthy Week 1 result look like?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. A subscription holds resource groups, resource groups hold resources, and every resource is deployed into a region. Deleting a resource group deletes everything inside it.
- Q2 — Answer: B. Budgets are alerts, not spending caps. At 80% of $200 ($160) you are notified, but the meter keeps running — which is why cleanup steps in every lab matter.
- Q3 — Answer: B. Cloud Shell is a browser-based terminal in the portal with Azure CLI preinstalled. It keeps a small storage account for your files, which persists between sessions.
- Q4 — Answer: B. Deleting the resource group removes every resource inside it in one action, so nothing keeps consuming credit or free-tier hours after you finish learning.
- Q5 — Answer: Month-to-date spend near $0 (or well under the $200 credit), forecast comfortably below the credit limit, and a budget with an 80%-of-limit alert pointing at your email. If spend is unexpectedly high, list which resource groups contain running resources and delete what you no longer need.. This checks that you can actually navigate Cost Management and interpret the numbers — the real Week 1 skill — rather than just reciting definitions.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Weekly Review — Week 1 Review - Cloud and Azure Fundamentals
You have spent a week on cloud concepts, the Azure portal, identity, and access control. Answer these ten questions without looking at your notes, then check the answers and explanations.
- Q1. Which statement best describes cloud computing?
- A) Buying and running your own physical servers in an office closet
- B) On-demand delivery of IT resources over the internet, where you pay only for what you use
- C) A type of software you install on your laptop
- D) A backup of your files on a USB drive
- Q2. A company rents virtual hardware from Azure and installs its own operating system and applications on it. Which cloud service model is this?
- A) SaaS
- B) PaaS
- C) IaaS
- D) DaaS
- Q3. Which of the following is a PaaS example?
- A) Azure Virtual Machines
- B) Azure App Service
- C) Microsoft 365
- D) An on-premises server
- Q4. What is an Azure region?
- A) A billing plan for Azure
- B) A geographic area containing one or more Azure datacenters
- C) A type of virtual machine
- D) A user account in Microsoft Entra ID
- Q5. What is the main purpose of a resource group?
- A) To group related resources so they can be managed, deployed, and deleted together
- B) To set the price of resources
- C) To create user accounts
- D) To connect resources to the internet
- Q6. Which built-in RBAC role can create and manage resources but CANNOT grant access to other people?
- A) Owner
- B) Contributor
- C) Reader
- D) User Access Administrator
- Q7. The principle of least privilege means:
- A) Give every user the Owner role to avoid access errors
- B) Give each identity only the minimum permissions it needs, and nothing more
- C) Never assign any roles to anyone
- D) Share one admin account with the whole team
- Q8. Microsoft Entra ID is primarily used to:
- A) Store blob data
- B) Manage identities, sign-in, and access to Azure resources
- C) Monitor virtual machine CPU usage
- D) Send billing alerts
- Q9. Multi-factor authentication (MFA) protects an account by:
- A) Making the password longer
- B) Requiring a second verification factor, such as a phone approval, in addition to the password
- C) Blocking all sign-ins from new devices
- D) Encrypting the hard drive
- Q10. Which scope is the WIDEST when assigning an Azure RBAC role?
- A) Resource
- B) Resource group
- C) Subscription
- D) Management group
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Cloud computing means renting IT resources (compute, storage, networking) over the internet on a pay-as-you-go basis instead of buying and maintaining hardware.
- Q2 — Answer: C. IaaS (Infrastructure as a Service) gives you virtualized hardware; you manage the operating system, patches, and applications yourself.
- Q3 — Answer: B. Azure App Service is PaaS: you deploy code and Azure manages the servers, OS patching, and load balancing. Azure Virtual Machines is IaaS; Microsoft 365 is SaaS.
- Q4 — Answer: B. A region is a set of datacenters in a geographic area (for example, East US). You pick a region when you create resources.
- Q5 — Answer: A. A resource group is a logical container. Resources inside it share a lifecycle: deploy them together, manage them together, and delete the group to remove everything.
- Q6 — Answer: B. Contributor can create and manage all resource types but cannot assign roles. Owner can do everything, including granting access.
- Q7 — Answer: B. Least privilege reduces risk: if an account is compromised, the damage is limited to what that account was allowed to do.
- Q8 — Answer: B. Microsoft Entra ID (formerly Azure AD) is the identity service: users, groups, authentication, and single sign-on for Azure and Microsoft 365.
- Q9 — Answer: B. MFA combines something you know (password) with something you have (phone/app) or are (fingerprint), so a stolen password alone is not enough.
- Q10 — Answer: D. Management groups sit above subscriptions. A role assigned at management-group scope flows down to every subscription, resource group, and resource beneath it.
Day 8 — Azure Virtual Machines and Operating System Basics60–90 minutes
A. Day 8 — Azure Virtual Machines and Operating System Basics
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what a virtual machine and a hypervisor are, using a plain-words analogy
- Identify the parts of a VM: image, size (SKU), OS disk, data disk, and network interface
- Create a Linux VM in the portal and choose an appropriate free-tier size
- Connect to the VM over SSH and run basic operating-system commands
- Stop (deallocate) a VM and explain what that does to billing
C. Prerequisites
- Azure free account with the Day 7 health check done
- Browser signed in to the Azure portal
- Comfort opening Cloud Shell (Day 7)
D. Concepts Explained Simply
Imagine a large apartment building. The building itself is a powerful physical computer in a Microsoft datacenter. Each apartment is a virtual machine (VM) — a complete computer (CPU, memory, disk, network card) created in software, with its own front door, its own furniture, and no knowledge of the neighbors. The building manager who divides the building’s electricity, water, and space between apartments is called the hypervisor — the software layer that carves one physical server into many isolated virtual computers.
To rent your apartment you make three choices. The image is the move-in template: which operating system (OS) — the software that manages the computer, like Ubuntu Linux or Windows Server — plus any preinstalled software. The size (also called SKU, pronounced “skew”) is the apartment floor plan: how many virtual CPUs and how much RAM you get — for example, Standard_B1s means 1 virtual CPU and 1 GB of RAM, a small, cheap, “burstable” size that is ideal for learning. The disk is your storage: the OS disk holds the operating system, and you can add data disks for your files, in flavors from slower Standard HDD to fast Premium SSD.
Two more ideas complete the picture. Every VM gets a virtual network interface (NIC) — its network plug — which is how it joins the virtual network you will build on Day 9. And you reach into the machine remotely: SSH (Secure Shell) is the standard way to type commands into a Linux VM, while RDP (Remote Desktop Protocol) gives you a graphical screen on a Windows VM. This lab uses Linux and SSH because it is cheaper (no Windows license cost) and SSH from Cloud Shell needs no extra software.
- VM — a software-defined computer rented by the hour.
- Hypervisor — the layer that splits physical servers into VMs.
- Image — the OS + software template a VM is built from.
- Size / SKU — the VM’s CPU and RAM specification (B1s = 1 vCPU, 1 GB RAM).
- OS disk / data disk — storage for the operating system vs. your files.
- SSH — encrypted command-line access to Linux; RDP — graphical access to Windows.
A cost warning before you start: the compute meter runs only while the VM is allocated (running or merely shut down from inside the OS). Choosing Stop (deallocate) releases the hardware and stops that meter; the small disk-storage meter keeps running until you delete the resource group. Budgets are alerts, not spending caps — the alert can also arrive late — so the cleanup step at the end of this lab is your real protection. Portal screens and free-tier limits change over time; if a label moved, use portal search to find it.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Microsoft Learn — Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find the free virtual-machines modules if you want a second explanation of images and sizes | 20 min |
| Azure virtual machines documentation overview | Documentation | https://learn.microsoft.com/en-us/azure/virtual-machines/overview Needs verification | Official reference on VM concepts, sizes, images, and disks — read after the lab to go deeper | 20 min |
F. Hands-On Workshop
Objective: Create a small Linux virtual machine in the portal, connect to it over SSH, run basic operating-system commands, and then delete everything.
Prerequisites: Azure free account; a browser signed in to the portal. No software to install — you will connect from Cloud Shell.
Step 1. Portal → top search bar → type 'Virtual machines' → open it → click '+ Create' → 'Azure virtual machine'.
Expected result: The 'Create a virtual machine' form opens.
Verify: The Basics tab of the VM creation form is displayed.
Step 2. On the Basics tab: Subscription = your free-trial subscription. Resource group → 'Create new' → name it rg-day08 → OK. Virtual machine name → vm-day08.
Expected result: Subscription is your free trial; the new resource group name is accepted.
Verify: The resource group dropdown shows rg-day08 (new).
Troubleshooting: Resource group names must be unique within your subscription — if rg-day08 is taken from an earlier attempt, use rg-day08b.
Step 3. Region → choose the region closest to you (for example, East US). You will use this same region for the rest of Week 2 so your resources sit near each other.
Expected result: The region dropdown shows a list of Azure regions.
Verify: A region is selected and shown next to the VM name.
Troubleshooting: If VM creation later fails with a quota/capacity error, repeat this lab in a different large region such as East US or West US 2.
Step 4. Image → select 'Ubuntu Server 22.04 LTS - x64 Gen2' (or the closest Ubuntu LTS offered). Then click 'See all sizes' → filter for 'B1s' → select Standard_B1s → Select.
Expected result: The image shows an Ubuntu version; the size link shows available sizes.
Verify: Image reads Ubuntu and Size reads Standard_B1s.
Troubleshooting: If B1s does not appear, clear the size filter or pick B1ms — any small B-series size works for this lab.
Step 5. Authentication type → Password. Username → azureuser. Password → invent a strong password (12+ characters, mixed case, numbers, symbols) and save it in a password manager — you will need it once, in step 9.
Expected result: The form accepts the username and password without errors.
Verify: No red validation errors under the password fields.
Troubleshooting: The portal rejects short or simple passwords. Longer and more mixed always passes.
Step 6. Public inbound ports → 'Allow selected ports'. Select inbound ports → check 'SSH (22)'. This opens the door for your step-9 connection; everything else stays closed.
Expected result: 'SSH (22)' is selected under inbound ports.
Verify: The inbound-ports dropdown reads 'SSH (22)'.
Step 7. Click through the 'Disks' and 'Networking' tabs without changing anything — accept the defaults (they create a managed OS disk, a new virtual network, and a public IP for you). Then go to 'Review + create'.
Expected result: Defaults are shown for disk type, virtual network, subnet, and public IP.
Verify: Validation passes with a green check: 'Validation passed'.
Step 8. Click 'Create'. Wait for the deployment to finish — do not close the tab. When it completes, click 'Go to resource'.
Expected result: A 'Deployment is in progress' notification, then 'Your deployment is complete' after 2–5 minutes.
Verify: The notification says deployment succeeded and the VM Overview page opens.
Troubleshooting: If deployment fails with a quota error ('Operation could not be completed as it results in exceeding quota'), delete the failed VM and retry in another region.
Step 9. On the VM Overview page, note the 'Public IP address' and confirm 'Status' is Running. Copy the public IP address.
Expected result: The Overview page shows Status: Running and a Public IP address like 20.x.x.x.
Verify: You have a public IP written down and Status = Running.
Troubleshooting: If the public IP is blank, wait a minute and refresh — it is assigned shortly after boot.
Step 10. Open Cloud Shell (Bash) from the top toolbar and type: ssh azureuser@<paste-your-public-IP>. Type 'yes' if asked about the host key, then enter your password when prompted.
Expected result: A Linux welcome banner, then a prompt like azureuser@vm-day08:~$.
Verify: You see the Ubuntu welcome text and a command prompt ending in $.
Troubleshooting: 'Connection timed out' usually means the VM is still booting (wait 2 minutes) or the SSH inbound rule is missing — check the VM’s Networking settings for port 22. 'Permission denied' means a wrong password — retype it carefully.
Step 11. Run these four commands one by one, reading each output: uname -a (OS and kernel version), df -h (disk space), uptime (how long the VM has been running), then echo 'Hello from Day 8' > hello.txt && ls -l (creates a file and lists it). Each command is typed after the $ prompt; press Enter after each.
Expected result: System info, disk usage, and uptime print out; the file listing shows hello.txt.
Verify: hello.txt appears in the ls -l output.
Troubleshooting: 'command not found' means a typo — Linux commands are case-sensitive and exact. Retype slowly.
Step 12. Type exit to close the SSH session. You are now back in Cloud Shell, no longer inside the VM.
Expected result: Your SSH session closes and you are back at the Cloud Shell prompt.
Verify: The prompt no longer shows azureuser@vm-day08.
Step 13. Back in the portal on the VM Overview page, click 'Stop' and check the box if it asks about deallocation (choose Stop/Deallocate, not just shutdown). This releases the hardware and stops the compute meter while keeping the VM for now.
Expected result: Status changes to 'Stopped (deallocated)' after a minute.
Verify: Status reads 'Stopped (deallocated)'.
Troubleshooting: If the status stays 'Running', wait a minute and refresh the page.
G. Practical Assignment
Create (then delete) one more Linux VM on your own, but change two things from the lab: pick a different region and a different username. Write down the public IP, the region, and the SSH command you used. Then delete its resource group. No solution is provided — the goal is to prove you can repeat the process without the steps in front of you.
H. Knowledge Assessment
- Q1. What is an Azure virtual machine, in one sentence?
- A) A very fast physical server rented whole
- B) Software that emulates a full computer, sharing a physical server with other VMs via a hypervisor
- C) A type of storage account
- D) A backup copy of your laptop
- Q2. Which three choices most determine what a VM is like and what it costs per hour?
- A) Image → region → resource group
- B) Image (OS template) → size (vCPU/RAM) → disk type (storage speed)
- C) Username → password → public IP
- D) Subscription → budget → backup policy
- Q3. You choose 'Stop (deallocate)' on a running VM instead of shutting it down from inside the OS. What is the practical difference?
- A) Deallocated: hardware released, compute meter stopped; disks still stored and billed
- B) Deallocated: everything deleted including disks
- C) Deallocated: VM keeps running but is hidden from the portal
- D) There is no difference
- Q4. Why does this workshop use the Standard_B1s VM size for labs?
- A) It has the fastest disks available
- B) It is a low-cost burstable size that fits learning and light workloads
- C) It includes a free Windows Server license
- D) It cannot connect to the internet
- Q5. Practical: connect to your lab VM from Cloud Shell and run 'uname -a'. What exact command did you use, and what does a successful connection look like?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. A VM is software pretending to be a computer, sharing one physical server with other VMs. The hypervisor divides the physical CPU, memory, and disk between them.
- Q2 — Answer: B. The image is the template (OS + software), the size is the hardware spec (vCPU/RAM), and the disk type sets storage speed. The region just decides where it runs.
- Q3 — Answer: A. Stop (deallocate) releases the physical hardware and stops the compute meter; the VM’s disks still exist and still cost a small amount. Plain Shutdown from inside the OS keeps the hardware reserved and keeps charging.
- Q4 — Answer: B. The B-series is burstable — cheap baseline CPU with bursts when needed — which fits learning, test, and small workloads. The free account includes B1s hours each month.
- Q5 — Answer: From Cloud Shell run: ssh azureuser@<public-ip> (replace with your VM’s public IP from its Overview page). Success looks like a welcome banner and a prompt such as azureuser@vm-day08:~$. If it times out, check the VM is Running and the inbound SSH (22) rule allows your IP, then retry.. This proves you can actually reach the VM over the network — the skill every later day assumes — not just create one.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 9 — Azure Virtual Network, Subnets, IP Addresses, and Network Security Groups60–90 minutes
A. Day 9 — Azure Virtual Network, Subnets, IP Addresses, and Network Security Groups
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain virtual networks, subnets, CIDR notation, and IP addressing with a plain-words analogy
- Describe the difference between private and public IP addresses
- Create a VNet with two subnets in the portal
- Create a network security group, add a custom inbound rule, and attach it to a subnet
- Read NSG rules in priority order and explain least-privilege networking
C. Prerequisites
- Azure free account; Days 7–8 completed
- Browser signed in to the Azure portal
- Your Day 8 region noted (reuse it today)
D. Concepts Explained Simply
On Day 8 your VM got a network automatically, like a hotel assigning you a room without asking. Today you become the architect: you will design the building yourself. An Azure Virtual Network (VNet) is your private, isolated network space in Azure — think of it as renting an entire office building where only your company has keys. Nothing in your VNet can be reached from the internet unless you explicitly open a door.
Floors of the building are subnets: smaller segments of the VNet for different purposes, such as one subnet for web servers and another for databases. Each floor and building is sized with CIDR notation — an address block written like 10.0.0.0/16. The number after the slash sets the size: /16 is a big building (65,536 addresses), /24 is one floor (256 addresses). Addresses come in two kinds: private IP addresses (ranges like 10.x.x.x) are room numbers that only work inside your building, while public IP addresses are the building’s street address — globally unique and reachable from the internet.
Every VM connects through a virtual network interface (NIC) — its network plug — which sits in one subnet. Guarding each floor is a network security group (NSG): a list of allow/deny rules checked top-down by priority number (lower numbers are evaluated first). A rule says: allow or deny traffic, from some source, to some destination, on some port — for example, “allow inbound TCP port 22 from my home IP.” Azure also ships default rules that allow all traffic inside the VNet and deny everything inbound from the internet, so a fresh VNet is closed by default and you open only what you need — that is least privilege in networking form.
- VNet — your isolated private network in Azure.
- Subnet — a segment of a VNet; CIDR (e.g., 10.0.1.0/24) defines its address block.
- Private IP — internal-only address; public IP — internet-reachable address.
- NIC — the virtual network card attaching a VM to a subnet.
- NSG — ordered allow/deny rules (lowest priority number first) guarding a subnet or NIC.
Cost note: VNets, subnets, and NSGs themselves cost nothing — you pay only for things like public IPs and data transfer, and this lab’s public IP lives only for the duration of the lab. Portal labels and free-tier limits change over time; use portal search if a button moved.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Microsoft Learn — Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find the free networking modules for a second explanation of VNets and subnets | 20 min |
| Azure Virtual Network documentation overview | Documentation | https://learn.microsoft.com/en-us/azure/virtual-network/overview Needs verification | Official reference on VNets, subnets, IP addressing, and peering — read after the lab | 20 min |
F. Hands-On Workshop
Objective: Build a virtual network with two subnets, create a network security group with a custom rule, attach it to a subnet, and inspect the effective rules.
Prerequisites: Azure free account; portal access. No VM is created today — you work purely with networking objects.
Step 1. Portal → top search bar → type 'Virtual networks' → open it → click '+ Create'.
Expected result: The 'Create virtual network' form opens.
Verify: The Basics tab of the virtual network form is displayed.
Step 2. Basics tab: Subscription = your free-trial subscription. Resource group → 'Create new' → rg-day09 → OK. Name → vnet-day09. Region → the same region you used on Day 8 (for example, East US).
Expected result: The new resource group is selected.
Verify: Name reads vnet-day09 and the region matches your Day 8 region.
Step 3. Go to the 'IP Addresses' tab. Notice the IPv4 address space 10.0.0.0/16 — this is the whole 'building' (65,536 addresses) written in CIDR notation. Leave it as is.
Expected result: The IP Addresses tab shows the default address space 10.0.0.0/16.
Verify: Address space shows 10.0.0.0/16.
Step 4. Delete the default subnet (select it → Delete), then click '+ Add a subnet'. Name it snet-web, set its address range to 10.0.1.0/24 (one 'floor' of 256 addresses), and add it.
Expected result: The default subnet is listed; you can edit or delete it.
Verify: Subnets list shows snet-web with 10.0.1.0/24.
Troubleshooting: If the portal says the range overlaps, you typed it wrong — it must start with 10.0.1 and end with /24.
Step 5. Add a second subnet: name snet-db, address range 10.0.2.0/24. Then click 'Review + create' → 'Create' and wait for deployment to finish.
Expected result: Two subnets are listed with their CIDR blocks.
Verify: Deployment succeeds; vnet-day09 shows two subnets.
Step 6. Top search bar → type 'Network security groups' → open → '+ Create'. Resource group → rg-day09. Name → nsg-day09. Region → same region as the VNet. Click 'Review + create' → 'Create'.
Expected result: The 'Create network security group' form opens.
Verify: nsg-day09 appears in the network security groups list.
Troubleshooting: The region must match the VNet’s region — an NSG in another region cannot attach to this VNet’s subnets.
Step 7. Open nsg-day09 → 'Inbound security rules' (under Settings) → '+ Add'. Fill in: Source → 'IP Addresses', Source IP addresses → type 0.0.0.0/0 for this lab (meaning 'from anywhere'; in real life you would put your own IP), Destination port ranges → 443, Protocol → TCP, Action → Allow, Priority → 120, Name → allow-https. Click Add.
Expected result: The 'Add inbound security rule' form opens.
Verify: The inbound rules list now shows allow-https with priority 120 above the default deny rule.
Troubleshooting: Priority must be unique — if 120 is taken by a default rule, use 130. Port 443 is HTTPS, the standard web port.
Step 8. Still in nsg-day09, go to 'Subnets' (under Settings) → '+ Associate' → Virtual network → vnet-day09 → Subnet → snet-web → OK. This posts your 'security guard' at the door of the web floor.
Expected result: A rule form where you can pick the subnet.
Verify: The Subnets tab lists snet-web as associated.
Troubleshooting: If vnet-day09 is not listed, the regions do not match — both must be in the same region.
Step 9. Go to 'Inbound security rules' again and read the list top to bottom: rules are evaluated by priority number, lowest first. Confirm allow-https (120) sits above the default 'DenyAllInBound' rule (priority 65500). Say out loud what happens to inbound web traffic on port 443 — it is allowed — and to inbound traffic on any other port — it hits the deny rule.
Expected result: A table of rules in evaluation order, including your allow-https rule and the defaults.
Verify: You can explain, in your own words, which traffic is allowed and which is denied, and why order matters.
G. Practical Assignment
In the portal, open the Day 8 VM’s virtual network (before you deleted it — if you already deleted it, just do this on paper): find its address space, its subnets, and the NSG on the VM. Write down which inbound ports are open and decide whether you would keep them open for a production web server. No solution is provided.
H. Knowledge Assessment
- Q1. Which statement correctly describes a virtual network, subnets, and CIDR notation?
- A) A VNet replaces the need for virtual machines
- B) A VNet is a physical cable between datacenters
- C) A VNet is your private network; subnets segment it; CIDR notation defines the size of each address block
- D) Subnets are public and VNets are private
- Q2. What is the difference between a private IP address and a public IP address?
- A) Private IPs work over the internet and public IPs do not
- B) Private IPs are for internal traffic; public IPs are globally reachable and needed only where the internet must reach in
- C) Every resource must have a public IP
- D) Public IPs are free and unlimited
- Q3. An NSG has an allow-SSH rule at priority 100 and a deny-all-inbound rule at priority 200. SSH traffic arrives. What happens, and why?
- A) The deny rule wins because deny always beats allow
- B) The allow rule wins for SSH because lower priority numbers are evaluated first
- C) Both rules apply and the connection is randomly allowed or blocked
- D) The last-created rule wins
- Q4. Put these in the right relationship: VM, network interface (NIC), subnet, virtual network (VNet), network security group (NSG).
- A) VM → network interface → subnet → virtual network, with the NSG filtering traffic at the subnet or NIC
- B) NSG → VM → VNet → internet, with the subnet unused
- C) VNet → public IP → NSG → VM, with no subnet involved
- D) Subnet → NSG → image → VM
- Q5. Practical: design (on paper) a VNet for a simple app with web, application, and database tiers. Give the VNet CIDR, one subnet CIDR per tier, and state in one line per subnet what its NSG should allow. What principle does this design follow?
Answer key & explanations (open after you finish)
- Q1 — Answer: C. A VNet is your private network space; subnets divide it into segments (for example, web servers vs. databases). CIDR notation like 10.0.0.0/16 simply describes how big the address block is — 10.0.0.0/16 holds 65,536 addresses, 10.0.1.0/24 holds 256.
- Q2 — Answer: B. Private IPs (10.x, 172.16.x, 192.168.x) work only inside your network. A public IP is a globally unique address that lets the internet reach a resource — that is why only the VM that needs inbound access gets one.
- Q3 — Answer: B. NSG rules are evaluated by priority number, lowest first: rule 100 is checked before rule 200. So the allow rule (100) wins for SSH traffic and the deny rule (200) catches everything else.
- Q4 — Answer: A. The NIC plugs the VM into the subnet; the subnet lives inside the VNet; the NSG attached to the subnet filters the traffic. It is one chain: VM → NIC → subnet → VNet, with the NSG guarding the door.
- Q5 — Answer: The web subnet’s NSG should allow inbound 443 (HTTPS) from the internet and the app subnet needs no internet inbound; the database subnet should allow its database port only from the app subnet’s address range (10.0.2.0/24), denying everything else. Sketch: VNet 10.1.0.0/16 → web 10.1.1.0/24 (NSG: allow 443 in), app 10.1.2.0/24 (NSG: allow from web subnet), db 10.1.3.0/24 (NSG: allow DB port only from 10.1.2.0/24). The principle is least privilege — each tier only talks to the tier next to it.. This is the classic three-tier design. The key insight is that subnets plus NSGs let you isolate layers so a compromised web server still cannot reach the database directly.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 10 — DNS, Connectivity, and Basic Network Troubleshooting60–90 minutes
A. Day 10 — DNS, Connectivity, and Basic Network Troubleshooting
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain DNS, FQDN, A records, and CNAME records with a plain-words analogy
- Describe the difference between public DNS zones and Azure Private DNS zones
- Create a Private DNS zone, link it to a VNet, and add an A record
- Use nslookup from Cloud Shell to resolve public names and observe private-zone scoping
- Apply a five-step ladder for basic network connectivity troubleshooting
C. Prerequisites
- Azure free account; Days 7–9 completed
- Browser signed in to the Azure portal; Cloud Shell (Bash)
- Your usual region noted (reuse it today)
D. Concepts Explained Simply
The internet runs on numbers, but humans remember names. DNS (Domain Name System) is the phone book that translates a name like www.example.com into an IP address like 93.184.216.34. A full name such as web1.lab.internal is called an FQDN (fully qualified domain name). Inside the phone book, records are the entries: an A record maps a name to an IPv4 address (web1 → 10.0.1.4), and a CNAME record maps a name to another name (www → web1, an alias).
Azure offers two kinds of phone books. A public DNS zone answers queries from the whole internet — this is what serves real websites, and it requires a domain you own. An Azure Private DNS zone answers queries only from inside the virtual networks (VNets) you link it to — perfect for lab.internal names that should never leak to the internet. That scoping is the day’s key insight: the same name can resolve for a VM inside your VNet and be invisible everywhere else.
When connectivity breaks, beginners usually guess. Professionals check layers in order — a habit that fixes most problems in minutes. Memorize this ladder: (1) Is the VM running? (2) Am I using the right IP address or DNS name? (3) Does the NSG allow this port from my location? (4) Does the OS firewall inside the VM allow it? (5) Is the application actually listening on that port? Two Azure quirks to know: ICMP ping to Azure public IPs is blocked by design, so a failed ping means nothing — test the real TCP port instead. And in the portal, effective security rules show you the final allow/deny decision for any VM after all NSGs are combined.
- DNS — the name-to-IP phone book; FQDN — a complete domain name.
- A record — name → IPv4 address; CNAME — name → another name.
- Private DNS zone — resolves only inside linked VNets; public DNS zone — serves the internet.
- ICMP/ping — blocked to Azure public IPs; test TCP ports instead.
Today’s lab creates a small private DNS zone and a VNet purely to practice records and linking — no VM, so nothing to connect to and no compute charges. Portal screens and pricing change over time; use portal search if a label moved.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| What is Azure Cloud Shell | Documentation | https://learn.microsoft.com/en-us/azure/cloud-shell/overview Verified | Re-read how Cloud Shell networking works — it explains why Cloud Shell cannot resolve your private zone | 10 min |
| Azure DNS documentation overview | Documentation | https://learn.microsoft.com/en-us/azure/dns/dns-overview Needs verification | Official reference on DNS zones, record types, and private DNS — read after the lab | 20 min |
F. Hands-On Workshop
Objective: Create a Private DNS zone, link it to a virtual network, add an A record, and practice public DNS lookups and the connectivity troubleshooting ladder from Cloud Shell.
Prerequisites: Azure free account; portal access; Cloud Shell (Bash).
Step 1. Portal → top search bar → type 'Private DNS zones' → open it → click '+ Create'.
Expected result: The 'Create private DNS zone' form opens.
Verify: The Basics tab of the private DNS zone form is displayed.
Step 2. Basics tab: Subscription = your free-trial subscription. Resource group → 'Create new' → rg-day10 → OK. Name → lab.internal. (This is a private name — it does not need to be a domain you own.)
Expected result: The new resource group is selected and the zone name is accepted.
Verify: Name reads lab.internal with no validation errors.
Troubleshooting: Zone names must be globally unique among private zones in your subscription only — if lab.internal is taken, use lab10.internal.
Step 3. Region: private DNS zones are global — accept the default location. Click 'Review + create' → 'Create', then 'Go to resource'.
Expected result: Deployment succeeds quickly.
Verify: The lab.internal overview page opens.
Step 4. Top search bar → 'Virtual networks' → '+ Create'. Resource group → rg-day10. Name → vnet-day10. Region → your usual region (for example, East US). On the IP Addresses tab, accept the defaults. Review + create → Create.
Expected result: The 'Create virtual network' form opens.
Verify: vnet-day10 is deployed in rg-day10.
Step 5. Back in the lab.internal DNS zone, go to 'Virtual network links' (under Settings) → '+ Add'. Link name → link-day10. Virtual network → vnet-day10. Leave 'Enable auto registration' unchecked. Click Create.
Expected result: The 'Add virtual network link' form opens with vnet-day10 selectable.
Verify: The links list shows link-day10 with status Completed.
Troubleshooting: If vnet-day10 is not listed, the link form may need a refresh — close and reopen it.
Step 6. In the DNS zone, go to 'Record sets' (under Settings) → '+ Add'. Name → web1. Type → A. IP address → 10.0.1.4. TTL → accept the default (TTL = how long resolvers cache the answer). Click OK.
Expected result: The 'Add record set' form opens.
Verify: The record-sets list shows web1, type A, value 10.0.1.4.
Step 7. Open Cloud Shell (Bash) and type: nslookup microsoft.com. Read the output: the 'Address' lines are the public A records — the phone book answering from the internet’s public DNS.
Expected result: An answer section showing an IP address for microsoft.com.
Verify: You see one or more IP addresses in the answer.
Troubleshooting: If nslookup is missing, use: dig microsoft.com +short — both query DNS.
Step 8. Type: nslookup www.microsoft.com. Compare with the previous answer — large sites often return a CNAME (an alias) first, then the A records it points to. This is the A-vs-CNAME difference made visible.
Expected result: A CNAME chain or A records pointing at a content-delivery network.
Verify: You can point at which line is the alias and which lines are the addresses.
Step 9. Type: nslookup web1.lab.internal. It will fail. That failure is the lesson: Cloud Shell is NOT inside vnet-day10, and private zones only answer queries from linked VNets. A VM inside vnet-day10 would resolve it to 10.0.1.4.
Expected result: nslookup fails or times out for web1.lab.internal — this is the expected, correct result.
Verify: You can explain why the public lookup worked and the private one did not.
Troubleshooting: If it somehow resolves, double-check you typed the private name — public DNS must never know lab.internal.
Step 10. Say the troubleshooting ladder out loud once: (1) VM running? Check the VM Overview status. (2) Right IP or name? Compare with the Overview page. (3) NSG allows the port? Check effective security rules. (4) OS firewall allows it? (5) App listening on the port? Write any you keep forgetting into your journal.
Expected result: You can recite all five checks without looking.
Verify: All five checks are written in your journal in order.
G. Practical Assignment
Write a one-page 'network down' runbook for yourself: list the five troubleshooting checks from today in order, and under each write the exact portal page or command you would use. Keep it somewhere you will find it on Day 12 when you deploy a web app. No solution is provided.
H. Knowledge Assessment
- Q1. What is the difference between an A record and a CNAME record?
- A) A records store passwords; CNAME records store usernames
- B) A records are for email; CNAME records are for websites
- C) An A record maps a name to an IPv4 address; a CNAME maps a name to another name
- D) There is no difference
- Q2. When should you use an Azure Private DNS zone instead of a public DNS zone?
- A) Private zones are free and public zones are expensive
- B) Private zones resolve names only inside linked virtual networks; public zones serve names to the whole internet
- C) Private zones cannot hold A records
- D) Public zones do not support subdomains
- Q3. You cannot ping your VM’s public IP. What is the correct next troubleshooting step?
- A) Ping is blocked to Azure public IPs, so test the real TCP port instead (e.g., curl or Test-NetConnection)
- B) Ping harder by adding the -t flag
- C) Disable the NSG to let ping through
- D) Restart the VM three times
- Q4. What is the right order for troubleshooting 'I cannot reach my VM on port X'?
- A) Delete everything and start over
- B) Check in order: VM running → right IP → NSG allows the port → OS firewall → application listening
- C) Open all ports in the NSG immediately
- D) Email support before checking anything
- Q5. Practical: after the lab, how would you verify the A record web1.lab.internal exists, and why does querying it from Cloud Shell fail while querying it from a VM in the VNet would succeed?
Answer key & explanations (open after you finish)
- Q1 — Answer: C. DNS translates names to IPs. An A record maps a name directly to an IPv4 address; a CNAME maps a name to another name (an alias). So web1 → 10.0.1.4 is an A record, and www → web1 is a CNAME.
- Q2 — Answer: B. A private DNS zone resolves names only inside the linked VNets — perfect for web1.lab.internal. Public DNS zones serve the whole internet and need a real registered domain.
- Q3 — Answer: A. Azure blocks ICMP ping to public IPs by design, so ping failing proves nothing. Test the actual TCP port with a tool like curl or Test-NetConnection instead — a refused or timed-out TCP connection tells you where the block really is.
- Q4 — Answer: B. The layered order — VM running, correct IP, NSG, OS firewall, app listening — finds the fault fast instead of guessing. Most beginner blocks are an NSG rule or a stopped VM.
- Q5 — Answer: Query the name from Cloud Shell with: nslookup web1.lab.internal (or dig web1.lab.internal +short). Success returns 10.0.1.4 — but only from a machine inside the linked VNet; Cloud Shell is not in your VNet, so it will NOT resolve this private name, which itself proves the zone is private. In the portal, the zone’s record-set list showing web1 → 10.0.1.4 is your verification that the record exists.. This teaches the key insight: private DNS is scoped to the VNet, so where you query from determines what you get.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 11 — Azure Storage Accounts, Blobs, Containers, and File Shares60–90 minutes
A. Day 11 — Azure Storage Accounts, Blobs, Containers, and File Shares
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain storage accounts, containers, blobs, and file shares with a plain-words analogy
- Choose sensible performance, redundancy, and access-tier settings, and handle access keys securely by never copying them anywhere
- Create a storage account and a container in the portal
- Upload a blob, change its access tier, and explain Hot vs Cool
- Create a file share, upload a file, and describe how VMs mount it
C. Prerequisites
- Azure free account; Days 7–10 completed
- Browser signed in to the Azure portal
- A small file on your computer to upload (any text file or image under 1 MB)
D. Concepts Explained Simply
Picture a warehouse. The storage account is the warehouse building itself — it has a name, an address, and building-wide settings like how many backup copies to keep. Inside, blob storage is the shelving system: containers are the aisles (named sections like “day11files”), and blobs are the individual boxes on the shelves (your files). You never place a box on the warehouse floor — every blob lives inside a container. In a separate wing, Azure Files offers file shares: shared network drives that multiple computers can mount at once, like the shared drive in an office.
Three settings control cost and durability, and they are worth understanding before you click. Performance (Standard vs. Premium) sets the speed class — Standard is the economical default. Redundancy sets how many copies Azure keeps: LRS (locally redundant storage) keeps three copies in one datacenter and is the cheapest; ZRS spreads copies across zones, GRS across regions, each costing more. The access tier prices how often you touch the data: Hot for files you read often, Cool for files you rarely read (cheaper to store, pricier to access), Archive for deep storage you almost never open.
A security habit starts today and never leaves: storage accounts have access keys — master passwords for all the data inside. Treat them like house keys: never paste them into chat, email, or code. In this lab you will use the portal (which signs in as you) and the CLI with --auth-mode login, so no keys are copied anywhere. Later in your career you will meet managed identities and Key Vault, the grown-up ways to handle secrets.
- Storage account — the container for all storage services; settings apply building-wide.
- Container / blob — a named section / an individual file in blob storage.
- File share — SMB shared drive mountable by multiple VMs.
- LRS / ZRS / GRS — how many copies and where; Hot / Cool / Archive — pricing by access frequency.
Storage is pay-for-what-you-use down to the gigabyte, so a lab that uploads a few small files costs fractions of a cent — the free credit covers it many times over. Portal screens and prices change over time; use portal search if a label moved.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Microsoft Learn — Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find the free storage modules for a second explanation of blobs, tiers, and redundancy | 20 min |
| Azure Storage documentation introduction | Documentation | https://learn.microsoft.com/en-us/azure/storage/common/storage-introduction Needs verification | Official reference on storage accounts, blob storage, and Azure Files — read after the lab | 20 min |
F. Hands-On Workshop
Objective: Create a storage account, upload a file to a blob container, change its access tier, create a file share, and upload a file there — all through the portal.
Prerequisites: Azure free account; portal access. Optional: Cloud Shell for the assessment’s practical question.
Step 1. Portal → top search bar → type 'Storage accounts' → open it → click '+ Create'.
Expected result: The 'Create a storage account' form opens.
Verify: The Basics tab of the storage account form is displayed.
Step 2. Basics tab: Subscription = your free-trial subscription. Resource group → 'Create new' → rg-day11 → OK. Storage account name → type a globally unique lowercase name, 3–24 characters, letters and numbers only — for example stday11 followed by your initials and a number, like stday11abc1.
Expected result: The name is accepted (no red error) and the new resource group is selected.
Verify: A green check confirms the name is available.
Troubleshooting: 'Name not available' means someone else took it — add more characters until the green check appears. No uppercase, no dashes.
Step 3. Region → your usual region (for example, East US). Performance → Standard. Redundancy → 'Locally-redundant storage (LRS)' — the cheapest option, three copies in one datacenter.
Expected result: The region dropdown lists Azure regions.
Verify: Performance reads Standard and Redundancy reads LRS.
Step 4. Click 'Review + create' → 'Create'. Wait for deployment, then 'Go to resource'.
Expected result: Deployment succeeds after about a minute.
Verify: The storage account overview page opens showing the account name.
Step 5. In the left menu, under 'Data storage', click 'Containers' → '+ Container'. Name → day11files. Public access level → Private (the default — no anonymous access). Click Create.
Expected result: The 'New container' panel opens on the right.
Verify: day11files appears in the containers list.
Step 6. Click into day11files → 'Upload' → select a small file from your computer (any text file or image under 1 MB) → click Upload. Wait for the 'Successfully uploaded' notification.
Expected result: The upload panel opens.
Verify: Your file is listed inside day11files.
Troubleshooting: If the upload stalls, try a smaller file — large files are unnecessary for this lab.
Step 7. Click your uploaded blob → 'Change tier' (or open its Properties). Change the access tier from Hot to Cool, save, then change it back to Hot. Say out loud when you would use Cool: data you keep but rarely read, like old backups.
Expected result: The blob’s properties show Access tier: Hot (or Cool after change).
Verify: You saw the tier change in both directions.
Troubleshooting: Tier changes can take a moment to reflect — refresh the properties if it still shows the old tier.
Step 8. Back in the storage account left menu, under 'Data storage', click 'File shares' → '+ File share'. Name → shared. Tier → Transaction optimized (the default). Click Create.
Expected result: The 'New file share' panel opens.
Verify: The 'shared' file share appears in the list.
Step 9. Click into the 'shared' file share → 'Upload' → choose a small file → Upload. Then click 'Connect' at the top and read the Windows/Linux/macOS connection info — notice it shows how multiple machines could mount this same share as a drive. You do not need to mount it today; understanding the concept is the goal.
Expected result: The upload panel for the file share opens.
Verify: The file is listed in the share and you can explain in one sentence how a VM would mount it.
G. Practical Assignment
On your own, create a second container named 'backups' in the same storage account, move (re-upload) your lab file into it, and set that container’s default access tier to Cool. Then delete the storage account’s resource group. Write down the two CLI or portal paths you used. No solution is provided.
H. Knowledge Assessment
- Q1. What is the correct hierarchy in Azure Blob Storage?
- A) Account → blob → container, and containers are optional
- B) Storage account → container → blob; every blob lives inside a container
- C) Blob → file share → account
- D) Container → account → blob
- Q2. Which storage account settings are the sensible, cheapest choice for learning labs?
- A) Premium SSD with ultra disks
- B) Standard performance with LRS (locally redundant storage)
- C) Geo-redundant with read access plus a private endpoint
- D) Storage accounts have no redundancy setting
- Q3. When should data use the Cool access tier instead of Hot?
- A) Hot is cheapest for everything
- B) Hot for frequently accessed data; Cool for rarely accessed data (cheaper storage, higher access cost)
- C) Cool deletes data after 30 days
- D) Tiers only affect the account name
- Q4. Why would you pick an Azure file share over blob storage?
- A) File shares are faster than local disks
- B) Blobs can be mounted as drive letters
- C) File shares use the SMB protocol and mount as shared drives on multiple VMs; blobs are object storage accessed by API/URL
- D) There is no difference
- Q5. Practical: from Cloud Shell, upload a local file to your container using the Azure CLI with your own login (not an account key). What is the exact command, and what does success look like?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. The account is the front door (name + settings like redundancy); containers are the aisles; blobs are the boxes on the shelves. You never upload a blob without putting it in a container.
- Q2 — Answer: B. LRS keeps three copies in one datacenter — the cheapest option and fine for learning. GRS/ZRS add geographic or zone resilience at higher cost, which you do not need for lab files.
- Q3 — Answer: B. Hot is for data you touch often; Cool is cheaper to store but costs more to read — right for backups and archives you rarely open. Archive is the cheapest shelf but takes hours to retrieve from.
- Q4 — Answer: C. A file share speaks the SMB file-sharing protocol, so it mounts as a drive letter (Windows) or mount point (Linux) on multiple VMs at once — exactly like a shared office drive. Blobs are object storage accessed via APIs and URLs, not mounted drives.
- Q5 — Answer: Upload the file with: az storage blob upload --account-name <your-account> --container-name day11files --name notes.txt --file notes.txt --auth-mode login. Success prints a JSON block with the blob’s URL and properties and no error. (The --auth-mode login flag uses your Azure sign-in instead of a key — least privilege in action: no keys copied around.). This proves you can drive storage from the CLI too, and the --auth-mode login detail reinforces the no-keys habit.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 12 — Azure App Service and Basic Web Application Deployment60–90 minutes
A. Day 12 — Azure App Service and Basic Web Application Deployment
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain PaaS vs IaaS and App Service vs App Service plan with a plain-words analogy
- Create a Free-tier App Service plan and a web app in the portal
- Browse the default page of a new web app and explain what the default domain is
- Deploy a custom HTML page using ZIP deploy from Cloud Shell
- Describe deployment slots and CI/CD as next steps without doing them yet
C. Prerequisites
- Azure free account; Days 7–11 completed
- Browser signed in to the Azure portal; Cloud Shell (Bash)
- Your usual region noted (reuse it today)
D. Concepts Explained Simply
On Day 8 you built a computer and installed everything yourself — that is IaaS (Infrastructure as a Service): maximum control, maximum chores (patching, scaling, uptime are all yours). Azure App Service is PaaS (Platform as a Service): the restaurant-kitchen analogy. Instead of constructing the building, you rent a professional kitchen — ovens, gas, health inspections handled — and you just bring your recipes (code). Azure runs the servers, patches the OS, and offers scaling; you deploy a web app and get a public URL in minutes.
Two objects work together. The App Service plan is the kitchen itself: it defines the region, the size of the workers, and how many of them run — including the Free (F1) tier, which costs nothing but has strict quotas (limited daily compute, no custom domains, no always-on). The web app is your restaurant running in that kitchen: it gets a globally unique name that becomes your URL, like myday12app.azurewebsites.net, and a runtime stack (Node, Python, .NET, Java, PHP) that must match your code.
Getting code onto the app is called deployment. Today you will use ZIP deploy: zip your files and hand the package to Azure, which unpacks and restarts the app. Professionals later graduate to deployment slots (a staging copy of the app you can swap into production) and CI/CD pipelines (automatic deploy on every code change) — know the names today, master them later.
- IaaS / PaaS — rent the computer vs. rent the managed platform.
- App Service — the PaaS for hosting web apps and APIs.
- App Service plan — the compute behind the app (region, size, scale, pricing tier).
- Runtime stack — the language platform your code runs on; ZIP deploy — publish code as a zip package.
Cost note: the F1 Free tier used here costs nothing, but its quotas are real — if the app sleeps or refuses connections after heavy use, you likely hit the daily compute limit; wait or redeploy tomorrow. Free-tier availability varies by region, so if F1 is missing, pick another large region. Portal screens and limits change over time; use portal search if a label moved.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Microsoft Learn — Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find the free App Service modules for a second explanation of plans, scaling, and deployment | 20 min |
| Azure App Service documentation overview | Documentation | https://learn.microsoft.com/en-us/azure/app-service/overview Needs verification | Official reference on App Service plans, runtimes, and deployment options — read after the lab | 20 min |
F. Hands-On Workshop
Objective: Create a Free-tier web app in the portal, view its default page, then deploy your own HTML page with ZIP deploy from Cloud Shell.
Prerequisites: Azure free account; portal access; Cloud Shell (Bash).
Step 1. Portal → top search bar → type 'App Services' → open it → click '+ Create' → 'Web App'.
Expected result: The 'Create Web App' form opens.
Verify: The Basics tab of the web app form is displayed.
Step 2. Basics tab: Subscription = your free-trial subscription. Resource group → 'Create new' → rg-day12 → OK. Name → a globally unique name, lowercase letters and numbers, like webday12 followed by your initials and a number (for example webday12abc1) — this becomes your URL: webday12abc1.azurewebsites.net.
Expected result: The new resource group and a unique app name are accepted.
Verify: A green check confirms the name is available.
Troubleshooting: 'Name not available' means it is taken worldwide — add more characters until the check passes.
Step 3. Publish → Code. Runtime stack → Node 20 LTS (any stack works for a plain HTML page; Node is a common default). Operating System → Linux.
Expected result: Publish = Code and the runtime dropdown lists language stacks.
Verify: Publish shows Code and a runtime stack is selected.
Step 4. Region → your usual region (for example, East US). Keep your Week 2 resources together.
Expected result: Your usual region is selected.
Verify: The region matches the one you used on Days 8–11.
Step 5. Pricing plans → click 'Explore pricing plans' (or the plan dropdown) → select the 'Free F1' tier → Select/Apply. This is the zero-cost tier with quotas — exactly what a lab needs.
Expected result: The pricing plan selector opens.
Verify: The plan summary reads Free F1 (or similar free-tier wording).
Troubleshooting: If F1 is not offered in your region, go back and choose a different large region such as East US, then try again.
Step 6. Click 'Review + create' → 'Create'. Wait for 'Your deployment is complete', then 'Go to resource'.
Expected result: Deployment completes after 1–3 minutes.
Verify: The web app overview page opens.
Troubleshooting: Name-taken errors at this stage are rare since the name was validated — if deployment fails, note the error and retry once.
Step 7. On the overview page, click the 'Default domain' URL (your-name.azurewebsites.net). A Microsoft default page appears — this proves the app is live before you change anything.
Expected result: A default Azure landing page loads in the browser.
Verify: The default page loads with HTTP 200 (no error screen).
Troubleshooting: If the page shows an error, wait 2–3 minutes — the app can need a moment after first creation — then refresh.
Step 8. Open Cloud Shell (Bash) from the top toolbar. You will build the deployment package here.
Expected result: A Cloud Shell terminal opens.
Verify: You see the Cloud Shell prompt.
Step 9. Type: echo '<h1>Hello from Day 12</h1><p>My first Azure deployment.</p>' > index.html. This creates a tiny web page. Then type: ls -l to confirm index.html is there.
Expected result: An index.html file exists in the current directory.
Verify: ls -l lists index.html.
Troubleshooting: Mind the quotes — single quotes around the HTML, double quotes are not needed here.
Step 10. Type: zip app.zip index.html. (If zip is missing, install it first: sudo apt-get update && sudo apt-get install -y zip — this installs inside Cloud Shell, which is fine.)
Expected result: app.zip is created containing index.html.
Verify: The output says 'adding: index.html' and ls -l shows app.zip.
Troubleshooting: 'command not found' means the install step was skipped — run it, then retry zip.
Step 11. Type: az webapp deploy --resource-group rg-day12 --name <your-app-name> --src-path app.zip --type zip. Replace <your-app-name> with the unique name from step 2. This uploads the zip; Azure unpacks it and restarts the app. Wait 1–2 minutes.
Expected result: A JSON response describing the deployment, ending without errors.
Verify: The command finishes with a JSON block and no error message.
Troubleshooting: 'Resource not found' means the app name or resource group is mistyped — compare letter by letter with the portal. Deployment taking a while is normal; wait before retrying.
Step 12. Back in the browser, hard-refresh your app’s URL (Ctrl+Shift+R or Cmd+Shift+R). Your custom page should now load.
Expected result: Your heading 'Hello from Day 12' appears instead of the default page.
Verify: Your own HTML is visible at your azurewebsites.net URL.
Troubleshooting: Still seeing the default page? Wait another 2 minutes and hard-refresh again — browsers cache the old page aggressively.
G. Practical Assignment
On your own, change your index.html to include today’s date and one line about what you learned in Week 2, re-zip, and redeploy with the same az webapp deploy command. Browse the site and confirm the change appears. Then delete rg-day12. No solution is provided — repetition is what makes deployment feel routine.
H. Knowledge Assessment
- Q1. What is the difference between running your site on a VM (IaaS) and on App Service (PaaS)?
- A) App Service is cheaper hardware
- B) There is no difference
- C) With IaaS you manage the VM and OS; with PaaS (App Service) Azure manages the platform and you deploy code
- D) PaaS cannot run websites
- Q2. What is the relationship between an App Service plan and a web app?
- A) They are the same thing
- B) The plan provides the compute (size, scale, region); the app is the website running on that compute
- C) The app provides compute and the plan is the website
- D) Plans are only for databases
- Q3. What are the practical limits of the Free (F1) App Service plan tier?
- A) It offers unlimited scale for free
- B) It is free with strict limits (daily compute quotas, no custom domains) — ideal for learning, not for production
- C) It requires a credit card charge per deployment
- D) It only runs static images
- Q4. Which three settings matter most when creating a web app, and why?
- A) A globally unique app name (it becomes your URL), the region, and the runtime stack matching your code
- B) Only the app name — the rest is automatic
- C) A virtual network and an NSG
- D) A storage account key
- Q5. Practical: describe the exact steps to replace the default App Service page with your own index.html using ZIP deploy from Cloud Shell. What does success look like?
Answer key & explanations (open after you finish)
- Q1 — Answer: C. IaaS rents you the VM and you manage the OS up; PaaS (App Service) rents you a managed platform and you just bring code. The analogy: renting a kitchen (PaaS) vs. building the restaurant (IaaS).
- Q2 — Answer: B. The plan is the VM fleet behind your apps; the app is the website running on it. Scaling the plan up or out affects every app sharing it — which is why production apps usually get their own plan.
- Q3 — Answer: B. F1 is free with tight quotas (limited daily compute, no custom domains, no always-on). It is perfect for learning and terrible for real traffic — exactly the right tool for today.
- Q4 — Answer: A. A globally unique name becomes your public URL. Region pins where it runs (keep your usual region), and the runtime stack must match your code — a mismatch is the classic 'my deploy succeeded but the page errors' cause.
- Q5 — Answer: In Cloud Shell: create the page (echo '<h1>Hello from Day 12</h1>' > index.html), zip it (zip app.zip index.html — install zip first if needed with: sudo apt-get update && sudo apt-get install -y zip), then deploy: az webapp deploy --resource-group rg-day12 --name <your-app-name> --src-path app.zip --type zip. Then hard-refresh https://<your-app-name>.azurewebsites.net. Success looks like your heading replacing the default page; a deployment-log entry appears under the app’s Deployment Center.. This is the smallest real deployment loop: edit → zip → deploy → browse. The same shape scales to professional CI/CD pipelines later.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 13 — Azure Functions and Serverless Computing Fundamentals60–90 minutes
A. Day 13 — Azure Functions and Serverless Computing Fundamentals
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain serverless computing and when it fits better than VMs or App Service
- Describe the anatomy of an Azure Functions app: triggers, bindings, and code
- Identify common trigger types (HTTP, timer, queue) and what each is used for
- Compare the Functions hosting plans (Flex Consumption, Premium, Dedicated) at a beginner level
- Create, run, and delete an HTTP-triggered function using the Azure portal
C. Prerequisites
- Azure free account (created on Day 1)
- Completion of Days 1–12, especially Day 10 (App Service), so you can compare hosting styles
D. Concepts Explained Simply
Serverless computing means you write code and run it without provisioning or managing any servers yourself. You still "use" servers — you just don't see, patch, or pay for them when idle. The analogy: ordering food at a restaurant versus renting a whole kitchen. With a VM (Virtual Machine) you rent the kitchen (always paying). With App Service you rent a kitchen with a chef who runs the shifts. With serverless, you order individual dishes: the restaurant appears when you order, cooks exactly your dish, and you pay per dish.
Azure Functions is Microsoft's serverless platform for running small units of code that respond to events. You write one function — a single piece of code with one job, like "when this file arrives, resize it" or "every hour, clean up old data." A Function App is the container that groups related functions together so they share settings, like an app shares a name and address.
Every function has a trigger (what wakes it up) and bindings (the inputs and outputs it can connect to without boilerplate code). Common triggers: HTTP trigger (runs when a web request hits a URL), timer trigger (runs on a schedule), queue trigger (runs when a message lands in a queue). Bindings let your function read a blob, write to a database row, or send a queue message by just declaring it — no connection code required.
Hosting plans control how your functions scale and what you pay. The Flex Consumption plan (recommended for new apps) scales from zero automatically and you pay only for what runs — true serverless billing. The Premium plan keeps always-warm instances ready for instant responses. The Dedicated plan runs functions inside an existing App Service plan with predictable costs. Beginners on a free account should use Flex Consumption.
Cold start is a term worth knowing: when a function hasn't run in a while, the platform may take a few seconds to wake it up before it responds. This matters for user-facing APIs (which is why Premium offers always-warm), but not for background jobs. Portal UI, free-tier limits, and billing details change over time — check the current pricing calculator before any real-world use. This workshop is not sponsored, endorsed, or certified by Microsoft.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Functions overview (Microsoft Learn) | Documentation | https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview Verified | Official explanation of triggers, bindings, scenarios, and hosting plans — the reference behind today's lab | 15 min |
| Azure training hub (Microsoft Learn) | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find beginner serverless and Functions learning paths when you want to go deeper | 10 min |
F. Hands-On Workshop
Objective: Create a serverless Function App with an HTTP-triggered function in the Azure portal, call it from a browser, then clean it up.
Prerequisites: Azure free account. A web browser. You do not need any code editor — the portal has one built in.
Step 1. Create a resource group. Portal top search bar → type "Resource groups" → open Resource groups → + Create. Subscription: your free subscription. Name: rg-serverless-day13. Region: East US (or your Day-4 region). Click Review + create → Create.
Expected result: The rg-serverless-day13 resource group appears in the resource group list.
Verify: Refresh the Resource groups blade; rg-serverless-day13 is listed with your subscription and region.
Troubleshooting: If Create is greyed out, check your subscription dropdown shows your free subscription and all required fields are filled.
Step 2. Create the Function App. Portal top search bar → type "Function App" → open Function App → + Create. On the Basics tab: Subscription: your free subscription. Resource Group: rg-serverless-day13. Function App name: func-day13-<yourname> (must be globally unique, letters/numbers only — if taken, add digits). Runtime stack: Node.js (or Python). Version: latest stable offered. Region: same region as your resource group. Hosting: Flex Consumption plan.
Expected result: The create form validates and the Review + create button becomes available.
Verify: Portal shows no red validation errors on the Basics tab; your app name has a green check.
Troubleshooting: Name already taken: add more digits. Region mismatch error: pick the same region as the resource group.
Step 3. Finish creation. Click Review + create → Create. Wait for the deployment spinner to finish (1–2 minutes). Click "Go to resource" when it appears.
Expected result: A green "Your deployment is complete" banner; the Function App overview blade opens.
Verify: The overview blade shows your function app name, runtime stack, and status Running.
Troubleshooting: Deployment stuck over 10 minutes: check Notifications (bell icon) for the error, then delete and recreate with a different app name.
Step 4. Create a function. Inside the Function App blade, left menu → Functions → + Create (or + Add). In the template list choose "HTTP trigger". Template details: Function name: greet. Authorization level: Anonymous (this makes the URL callable without a key — fine for this lab, never use this for production). Click Create.
Expected result: The greet function appears in the Functions list.
Verify: Functions list shows greet with trigger type "Http" and status Enabled.
Troubleshooting: Template list empty or fails to load: wait a minute and refresh; the portal sometimes lags on a fresh Function App.
Step 5. Look at the code. Select the greet function → Code + Test (left menu). Read the sample code: notice the parts that read the HTTP request, and notice you never wrote any server code — the platform provides the web server. Do not change anything yet.
Expected result: Sample code for your runtime stack loads in the editor pane.
Verify: You can see a line that builds the response body (e.g. returning a message with the name query parameter).
Troubleshooting: Code pane blank: refresh the blade; the editor can take a few seconds on first open.
Step 6. Get the URL and test it. Select the greet function → Get function URL (top of the blade or in Code + Test) → copy the URL. Paste it into a new browser tab, then add ?name=Siva to the end and press Enter.
Expected result: The browser shows a greeting response containing "Siva" (or the default response if your stack differs).
Verify: The page text includes the name you passed in the query string — your function ran in the cloud, from that URL, with no server you managed.
Troubleshooting: 404 or function not found: you copied a URL for a different function or the app name; re-copy via Get function URL.
Step 7. Check the trigger in the portal. Back in the greet blade, open Integration (left menu). Notice the trigger section says httpTrigger and shows how bindings declare inputs and outputs without extra code.
Expected result: The Integration blade lists one trigger (httpTrigger) with its binding configuration.
Verify: You can point to the trigger name and explain in one sentence what wakes your function up.
Step 8. Clean up. Portal top search bar → "Resource groups" → open rg-serverless-day13 → Delete resource group (top toolbar). Type the resource group name exactly to confirm → Delete. Wait for the deletion notification.
Expected result: The resource group disappears from the list after a few minutes.
Verify: Resource groups list no longer shows rg-serverless-day13; Function App is gone (billing stopped).
Troubleshooting: Delete fails: some resources take minutes to release; retry deletion after 5 minutes.
G. Practical Assignment
On paper or in your journal, sketch three real-world tasks from your own work or daily life (for example: a daily report email, a photo upload to process, a webhook from another tool) and write which Azure Functions trigger each one needs — HTTP, timer, or queue — and one sentence why. Do not build them.
H. Knowledge Assessment
- Q1. What is the core idea of serverless computing?
- A) There are no servers anywhere in the cloud
- B) You run code without provisioning or managing servers, and you are billed for what actually runs
- C) You get free servers from the cloud provider
- D) Servers are shared equally between all customers at all times
- Q2. In Azure Functions, what is a trigger?
- A) The billing meter that counts executions
- B) The event that causes a function to run, such as an HTTP request, a timer, or a queue message
- C) A security rule that blocks unauthorized users
- D) The region where the Function App is deployed
- Q3. Which hosting plan should a beginner on the free account choose for true serverless, pay-for-what-runs billing?
- A) Dedicated plan
- B) Premium plan
- C) Flex Consumption plan
- D) App Service Basic plan
- Q4. What is a cold start in Azure Functions?
- A) The first time you write the function code
- B) The delay when a function that has been idle needs to be loaded before it can respond
- C) A function that only runs in cold regions
- D) Shutting down the Function App at night
- Q5. Practical: You need a task that runs every night at 2 AM to archive old database records. Which trigger fits, and why?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Serverless hides server management from you; the provider still runs servers and you pay for actual executions (scale-to-zero). A is wrong — servers exist, you just don't manage them.
- Q2 — Answer: B. The trigger is the wake-up event for a function. Bindings are the declared inputs/outputs; the trigger is specifically what starts execution.
- Q3 — Answer: C. Flex Consumption is the recommended serverless plan: automatic scale-from-zero and pay-as-you-go billing. Premium is for always-warm speed; Dedicated is predictable-cost App Service hosting.
- Q4 — Answer: B. Cold start is the warm-up delay when the platform loads an idle function. It matters for latency-sensitive APIs, not background jobs.
- Q5 — Answer: Timer trigger, because the job is time-based and runs on a fixed schedule regardless of user activity. An HTTP trigger would require someone to call a URL, and a queue trigger would require a message to be posted — neither matches a nightly schedule.. Match the trigger to the event: scheduled work → timer trigger; web requests → HTTP trigger; background messages → queue trigger.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 14 — Week 2 Practical Lab and Assessment60–90 minutes
A. Day 14 — Week 2 Practical Lab and Assessment
Estimated duration: 60–90 minutes
B. Learning Objectives
- Combine the Week 2 building blocks (VNet, VM, storage, App Service) into one working system
- Apply integration thinking: trace a request across multiple Azure services
- Practice a repeatable integration-debugging method (isolate, follow the path, check the locks, read the logs)
- Explain why budgets are alerts, not spending caps, and why deleting resource groups is the real cost control
- Pass a self-test that checks the full Week 2 skill set
C. Prerequisites
- Azure free account
- Completion of Days 1–13 (VMs, networking, storage, App Service)
D. Concepts Explained Simply
Week 2 taught you compute (the VMs from Days 5–6), networking (virtual networks, subnets, NSGs from Days 7–8), storage (Days 9–10-era storage accounts and blob storage), and App Service (hosted web apps). Today you assemble all four into one working system — the way real cloud systems look. The analogy: a restaurant (your whole application) has a dining room (App Service, what the public sees), a kitchen (the VM running the database), a pantry (storage), and hallways between them (the virtual network) with locked doors (NSGs).
The key skill this week: integration thinking. A VM alone is a box. A web app alone is a website. Connected together with correct network paths (which subnet can reach which), identity and access (who is allowed in), and connection strings (secret addresses apps use to find databases — never publish these), they become a real system. Most real outages are integration failures, not single broken parts.
Debugging integration has a repeatable pattern: (1) Isolate — test each piece alone. Does the web app load? Does the VM respond? (2) Follow the path — trace the traffic from browser → web app → VNet → VM, and ask where it stops. (3) Check the locks — NSG rules, firewalls, and connection strings are the usual suspects. (4) Read the logs — the portal's Diagnose and Metrics blades tell you what the service itself sees.
Budgets are ALERTS, not spending caps. This is the most important safety fact of the workshop: setting a budget in Cost Management sends you an email when spending crosses a threshold — it does NOT stop Azure from spending, and the alert can arrive hours late. The only way to stop costs in this lab is to delete the resource group at the end, which you will do today. VMs bill by the hour while they exist (even stopped, they still reserve the VM), so clean up promptly.
Portal UI, pricing, and free-tier limits change over time — always verify current prices in the pricing calculator before building real systems. This workshop is not sponsored, endorsed, or certified by Microsoft.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Estimate costs before building — shows how a VM, storage, and App Service plan add up | 15 min |
| Azure free account | Documentation | https://azure.microsoft.com/free/ Verified | Review what is free versus pay-as-you-go before running a billable VM lab | 10 min |
F. Hands-On Workshop
Objective: Build a small four-part system (VNet + storage account + App Service web app + VM), verify each piece, practice one controlled failure, then delete everything.
Prerequisites: Azure free account. Completion of Days 1–13. About 60 minutes of uninterrupted time.
Step 1. Create a resource group. Portal → search "Resource groups" → + Create. Name: rg-week2-build. Region: your usual region (e.g. East US). Review + create → Create.
Expected result: rg-week2-build appears in the resource group list.
Verify: Refresh the Resource groups blade; rg-week2-build is listed.
Step 2. Create the virtual network. Portal → search "Virtual networks" → + Create. Resource group: rg-week2-build. Name: vnet-week2. Region: same region. IPv4 address space: 10.1.0.0/16. Add two subnets: subnet-app (10.1.1.0/24) and subnet-db (10.1.2.0/24). Review + create → Create.
Expected result: The VNet validation passes; the overview blade shows address space 10.1.0.0/16 with two subnets.
Verify: Open vnet-week2 → Subnets; both subnet-app and subnet-db are listed.
Troubleshooting: Address space overlap error: keep the default 10.x ranges shown and do not reuse another lab's range.
Step 3. Create the storage account. Portal → search "Storage accounts" → + Create. Resource group: rg-week2-build. Storage account name: stweek2<randomdigits> (must be globally unique, lowercase). Performance: Standard. Redundancy: LRS. Region: same region. Create. After deployment, open the account → left menu Data management → Static website → Enabled → set index document name index.html → Save.
Expected result: Storage account deploys; static website shows an Enabled toggle.
Verify: Static website blade shows Enabled and a Primary endpoint URL.
Troubleshooting: Name taken: add more random digits — storage names must be globally unique.
Step 4. Upload a test page. In the storage account → left menu Data storage → Containers → $web container → Upload → choose a simple index.html file from your computer (any file with a hello message; create one in Notepad/TextEdit if needed) → Upload. Copy the Primary endpoint from the Static website blade and open it in a new browser tab.
Expected result: The Primary endpoint URL loads your page text in a browser.
Verify: Your browser shows the contents of your index.html — your storage is serving web content.
Troubleshooting: 404 on the page: the file name must be exactly index.html and must live inside the $web container.
Step 5. Create the App Service web app. Portal → search "App Service" → + Create → Web App. Resource group: rg-week2-build. Name: web-week2-<randomdigits> (globally unique). Publish: Code. Runtime stack: Node 20 LTS (or .NET). Operating System: Linux. Region: same region. Pricing plan: create new, SKU: Free F1. Review + create → Create.
Expected result: The App Service plan and web app deploy; the overview blade shows a default URL.
Verify: Open the web app → Overview; the URL loads a default welcome page.
Troubleshooting: Free F1 unavailable in a region: switch to the Basic B1 SKU (billable) and delete promptly at the end, or retry another region.
Step 6. Create the VM. Portal → search "Virtual machines" → + Create → Azure virtual machine. Resource group: rg-week2-build. Name: vm-db-week2. Region: same region. Image: Ubuntu Server. Size: Standard_B1s. Authentication: password (write it in your journal only — never publish it). Virtual network: vnet-week2, subnet: subnet-db. Public inbound ports: None. Review + create → Create.
Expected result: The VM deploys; its overview blade shows Running status and a public IP.
Verify: VM overview shows Running and the virtual network vnet-week2 attached.
Troubleshooting: Size unavailable: try Standard_B2s or another region; availability varies.
Step 7. Draw the system and verify the pieces. On paper, draw: browser → web app (public URL) → VNet → VM in subnet-db; storage static site (public URL). Then open each resource's overview blade and confirm it matches your drawing: web app URL works, storage static URL works, VM is Running in vnet-week2.
Expected result: You can explain, in your own words, how traffic flows from the browser to each part.
Verify: All four resources exist in rg-week2-build and you can point at each on your drawing.
Step 8. Practice a controlled failure. Stop the VM: open vm-db-week2 → Stop → confirm. Observe: the web app and storage still work — the system degrades, but parts are independent. Then start the VM again.
Expected result: The web app shows its default page (or an error you recognize); stopping the VM does not take the web app down, because they are separate pieces.
Verify: You observed and wrote down which pieces kept working while the VM was stopped.
Step 9. Clean up everything. Portal → Resource groups → rg-week2-build → Delete resource group → type the name → Delete. Confirm deletion in the list.
Expected result: The resource group disappears; Cost Management shows no running resources in this lab.
Verify: Resource groups no longer lists rg-week2-build.
Troubleshooting: Deletion hangs: retry after a few minutes; VMs sometimes take time to release.
G. Practical Assignment
Run the troubleshooting checklist from memory on one of the resources in your Week 2 build (without looking at the lab): find the resource, open its Diagnose/Metrics blade, and describe in your journal what you checked and what you found. Then delete everything.
H. Knowledge Assessment
- Q1. Your Week 2 build has a VM that must not be reachable from the public internet, but its subnet needs to reach a storage account. Which control do you adjust FIRST?
- A) Network security group (NSG) rules on the VM's subnet or NIC
- B) Storage account private endpoint settings
- C) Web app application settings
- D) The Azure firewall inside the VM's operating system only
- Q2. Your App Service web app shows a database connection error even though the database VM is running in your virtual network. What is the MOST likely cause?
- A) The web app needs more CPU
- B) The storage account region is wrong
- C) App Service by default cannot reach resources inside a VNet — the architecture needs redesign, e.g. VNet integration or a different path
- D) The budget alert is misconfigured
- Q3. Why does every lab in this workshop tell you to create one resource group per lab?
- A) The resource group would delete my subscription
- B) Everything in the lab is deleted at once, in one step
- C) Resources are renamed to their old values
- D) Nothing happens; resource groups cannot be deleted
- Q4. What does the Azure pricing calculator (and Cost Management) actually do?
- A) It puts a hard spending cap on your subscription
- B) It emails you a bill every hour
- C) It estimates before you build and shows actual spend after — it never blocks spending by itself
- D) It deletes resources that cost money
- Q5. Practical: On paper, redesign your Week 2 build so the web app reaches the database but the database is NOT reachable from the public internet. Draw the VNet, subnets, NSG rules, and traffic arrows, then explain each choice.
Answer key & explanations (open after you finish)
- Q1 — Answer: A. NSG rules at the subnet/NIC level are the correct way to limit inbound traffic. Storage private endpoints and app settings don't open VM ports; firewall settings refer to different products.
- Q2 — Answer: C. App Service's sandbox normally blocks outbound access to Azure VM virtual networks by default. The design itself needs correcting (e.g., expose the DB over a private network path), not just retries.
- Q3 — Answer: B. Resource groups are a management boundary: deleting it removes everything the lab created in one action. That's exactly why the safety policy requires one resource group per lab.
- Q4 — Answer: C. Cost management is estimation — the calculator estimates and Cost Management shows actuals; nothing hard-blocks spending. Only a spending limit on the free account does that, and that's a different setting.
- Q5 — Answer: Redesign step-by-step, explaining each change: move the database into the same VNet, add VNet integration to the web app, and write NSG rules that allow the web-app subnet to reach the database subnet but block direct internet access to the database. The answer is judged on the learner's reasoning about network paths and least privilege.. Tests whether the learner can think in network topology and least privilege across services, not just click through a portal.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Weekly Review — Week 2 Review - Compute, Networking, and Storage
Week 2 covered virtual machines, App Service, Functions, virtual networks, and storage. Ten questions below. Try them closed-book first.
- Q1. You need a full server where you control the operating system, patches, and installed software. Which Azure service do you choose?
- A) Azure App Service
- B) Azure Virtual Machines
- C) Azure Functions
- D) Azure DNS
- Q2. Availability Zones protect your application against:
- A) A hacker attack
- B) Failure of an entire datacenter within a region
- C) A typo in your application code
- D) An expired user password
- Q3. A network security group (NSG) is used to:
- A) Store passwords securely
- B) Allow or deny inbound and outbound network traffic using rules
- C) Back up virtual machines
- D) Translate domain names to IP addresses
- Q4. Two NSG rules conflict with each other. Which rule is applied?
- A) The rule created most recently
- B) The rule with the lower priority number
- C) The rule with the higher priority number
- D) Both rules are applied at once
- Q5. Which storage redundancy option keeps a copy of your data in a second, paired region?
- A) LRS
- B) ZRS
- C) GRS
- D) Premium SSD
- Q6. You need to store unstructured files such as images, videos, and backups. Which Azure Storage service fits best?
- A) Azure Files
- B) Blob Storage
- C) Azure Queues
- D) Azure Tables
- Q7. What is the key difference between the Hot, Cool, and Archive blob access tiers?
- A) The file formats they support
- B) The trade-off between storage cost and retrieval speed and cost
- C) The maximum file size allowed
- D) The Azure regions they are available in
- Q8. You want code to run automatically whenever a new file is uploaded to Blob Storage. Which Azure Functions trigger do you use?
- A) HTTP trigger
- B) Timer trigger
- C) Blob trigger
- D) Queue trigger
- Q9. A subnet is:
- A) A billing category
- B) A range of IP addresses carved out of a virtual network to group resources
- C) A type of storage account
- D) A user role in Microsoft Entra ID
- Q10. An App Service plan defines:
- A) The domain name of your app
- B) The region, pricing tier, and compute size shared by the apps running on it
- C) The programming language your app uses
- D) The backup schedule for your app
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Azure Virtual Machines is IaaS: you get a full VM and manage the OS yourself. App Service and Functions abstract the OS away.
- Q2 — Answer: B. Each Availability Zone is a physically separate datacenter (independent power, cooling, networking) inside a region. Spreading VMs across zones survives a datacenter failure.
- Q3 — Answer: B. An NSG holds allow/deny rules based on source, destination, port, and protocol. Attach it to a subnet or a network interface.
- Q4 — Answer: B. NSG rules are evaluated in priority order and the first match wins. Lower number means higher priority (for example, 100 beats 1000).
- Q5 — Answer: C. GRS (geo-redundant storage) replicates data to a paired secondary region. LRS keeps copies in one datacenter; ZRS spreads them across zones in one region.
- Q6 — Answer: B. Blob Storage is the object store for unstructured data. Azure Files is for SMB/NFS file shares; Queues is for messages; Tables is for NoSQL key-value data.
- Q7 — Answer: B. Hot costs more to store but is cheapest to access; Cool and Archive cost less to store but more (and slower) to retrieve. Pick the tier that matches how often you read the data.
- Q8 — Answer: C. A trigger defines the event that starts a function. The Blob trigger fires when a blob is created or updated in the watched container.
- Q9 — Answer: B. You divide a VNet's address space (for example, 10.0.0.0/16) into subnets (for example, 10.0.1.0/24) to organize resources and control traffic.
- Q10 — Answer: B. The plan is the compute behind your web apps: region, tier (Free, Basic, Standard, and so on), and instance size/count. You pay for the plan; multiple apps can share it.
Day 15 — Azure Key Vault and Secrets Management60–90 minutes
A. Day 15 — Azure Key Vault and Secrets Management
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what Azure Key Vault is and why secrets must not live in code or config files
- Distinguish secrets, keys, and certificates at a beginner level
- Create a key vault and store/read a secret using the Azure portal
- Apply RBAC roles and access policies with least privilege
- Describe soft-delete and audit logging as safety nets for secrets
C. Prerequisites
- Azure free account
- Completion of Days 1–14, especially the RBAC concepts from Day 4
D. Concepts Explained Simply
Azure Key Vault is a managed service for storing and controlling access to secrets (passwords, API keys, connection strings), keys (cryptographic keys used by Azure services for encryption), and certificates (files that prove a server's identity for TLS/SSL — the "https" padlock). The analogy: a bank's safe-deposit room. The vault is the room, each box is a secret, and the bank's guard — RBAC (Role-Based Access Control) — checks your identity before opening your box.
Why a vault instead of a config file? Because code and configuration travel: they get copied to laptops, committed to Git, shared in chat. Secrets must live in ONE guarded place where access is granted to identities, not copied around. The golden rule: never put a secret in code, app settings in screenshots, or chat. If a secret ever appears outside the vault, treat it as compromised and rotate it (generate a new one and replace the old).
Access control works in two layers. RBAC roles like "Key Vault Secrets User" and "Key Vault Secrets Officer" decide WHO can read or manage secrets. Access policies (the older model, still visible in the portal) decide WHAT operations each identity can do. Least privilege means: grant only the Secrets User role, to only the identities that truly need it, and remove it when they're done.
Two more concepts worth knowing: soft-delete keeps a deleted secret recoverable for 90 days, protecting against accidents; diagnostic logging records every access attempt so you have an audit trail. Azure encrypts your data at rest with Microsoft-managed keys by default — Key Vault becomes essential when you want customer-managed keys, where YOU control the key and can revoke it.
Portal UI, free-tier limits, and feature names change over time — verify against current Azure docs. Never share, screenshot, or publish real secrets. This workshop is not sponsored, endorsed, or certified by Microsoft.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Key Vault overview (Microsoft Learn) | Documentation | https://learn.microsoft.com/en-us/azure/key-vault/general/overview Verified | Official explanation of vaults, secrets, keys, certificates, and access control | 20 min |
| Azure free account | Documentation | https://azure.microsoft.com/free/ Verified | Check free-tier limits before creating any service, including Key Vault operations | 10 min |
F. Hands-On Workshop
Objective: Create a key vault, store a secret in it, read it back, control access with RBAC, and clean up.
Prerequisites: Azure free account. No code editor needed.
Step 1. Create a resource group. Portal → search "Resource groups" → + Create. Name: rg-keyvault-day15. Region: your usual region (e.g. East US). Review + create → Create.
Expected result: rg-keyvault-day15 appears in the resource group list.
Verify: Refresh the list; rg-keyvault-day15 is present.
Step 2. Create the key vault. Portal → search "Key vaults" → + Create. Basics tab: Resource group: rg-keyvault-day15. Key vault name: kv-day15-<randomdigits> (must be globally unique, 3–24 letters/numbers). Region: same region. Pricing tier: Standard. Leave recovery options at defaults. Review + create → Create.
Expected result: The key vault deploys; its overview blade shows the vault URI like https://kv-day15-xxx.vault.azure.net/.
Verify: Overview blade shows the vault name and its vault URI.
Troubleshooting: Name taken: add more digits. Region mismatch with policy: use the same region as your resource group.
Step 3. Create a secret. Open the key vault → left menu Objects → Secrets → + Generate/Import. Upload options: Manual. Name: db-password. Secret value: type a FAKE password like TrainingDemo-1234! (never use a real password in a lab). Leave activation/expiry empty. Create.
Expected result: The secret appears in the Secrets list with your name.
Verify: Secrets list shows db-password with the current version.
Troubleshooting: Generate/Import greyed out: you may not have the Secrets Officer role; wait a few minutes for RBAC to propagate, then retry.
Step 4. Read the secret back. Click db-password → click the current version → Show Secret Value (eye icon). Notice the portal makes you click to reveal — this is the least-privilege UI pattern. Copy nothing; just confirm you can see it.
Expected result: The secret value displays; you have confirmed read access works.
Verify: You saw the fake value displayed once.
Troubleshooting: 403 / access denied: your account needs Key Vault Secrets User or Officer role; wait a few minutes and retry.
Step 5. Check your own access. Key vault → left menu Access control (IAM) → Role assignments. Find your account listed with "Key Vault Secrets Officer" (granted by default to the creator). Notice you could add or remove people here.
Expected result: Your account is listed with the Secrets User role on the vault.
Verify: You can name which role your account holds on this vault.
Step 6. Turn on audit logging. Key vault → left menu Monitoring → Diagnostic settings → + Add diagnostic setting. Name: kv-audit. Select the "AuditEvent" log category. Destination: send to your Log Analytics workspace if you have one, or "Send to Log Analytics" later on Day 17. Save. Wait a few minutes, read your secret once more, then check where the log would land.
Expected result: The vault shows at least one logged access entry.
Verify: The diagnostic setting is listed; you know that every secret read is now recorded.
Troubleshooting: No Log Analytics workspace yet: that's expected — you create one on Day 17. The point today is knowing where the switch lives.
Step 7. Look at the safety nets. Key vault → Overview → Properties (or Settings → Properties). Find "Soft delete" and the retention days. Understand: deleting a secret or vault does not immediately destroy it — it is recoverable for the retention period.
Expected result: Soft-delete and purge settings are visible on the vault's Properties blade.
Verify: You can state in one sentence what soft-delete protects you from (accidental or malicious deletion).
Step 8. Clean up. Portal → Resource groups → rg-keyvault-day15 → Delete resource group → type the name → Delete. Optional: to reuse the vault name, open Key vaults → Manage deleted vaults → select your vault → Purge.
Expected result: The resource group disappears; the deleted vault is listed under managed deleted vaults if not purged.
Verify: Resource groups no longer lists rg-keyvault-day15.
Troubleshooting: Purge option unavailable: your account needs the right permissions; leaving the vault in soft-delete is acceptable for a lab.
G. Practical Assignment
Find one place in your own notes or projects where a password or connection string is written in plain text. Describe how you would move it to Key Vault: what the secret would be named, who would get the Secrets User role, and what you would delete from your notes afterward.
H. Knowledge Assessment
- Q1. What is the primary job of Azure Key Vault?
- A) To run serverless code
- B) To store passwords, keys, connection strings, and certificates in one centrally guarded place
- C) To store large files and videos
- D) To scan application logs for errors
- Q2. What is the difference between secrets, keys, and certificates in Key Vault?
- A) Secrets and certificates are the same thing
- B) Keys are passwords for virtual machines
- C) Secrets store credentials, certificates prove identity for TLS/SSL, and keys are cryptographic keys used by Azure services
- D) All three are stored only in App Service
- Q3. In the safe-deposit analogy for Key Vault, what do the vault and the bank guard represent?
- A) The billing currency
- B) The region where it lives
- C) What it is (the store) and how it is guarded (RBAC roles and access policies)
- D) The name of the vault
- Q4. When do customer-managed keys in Key Vault matter versus Microsoft-managed encryption keys?
- A) Key Vault is required for all Azure storage
- B) Encryption is on by default; Key Vault matters when you want to control or revoke the keys yourself
- C) Customer-managed keys make data unencrypted
- D) You must bring your own hardware to use encryption
- Q5. Practical: Your team suspects a former contractor's account still had access to a production database password stored as a Key Vault secret. What is the FIRST thing you do in the vault, and which capability proves who accessed it?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Key Vault's job is to keep secrets out of code and configs in one guarded store. It doesn't run apps, store blobs, or inspect logs.
- Q2 — Answer: C. Secrets are API keys, connection strings, and passwords. Certificates hold cryptographic identity material for TLS/SSL. Keys (in the KMS sense) are cryptographic keys used by Azure services for encryption at rest.
- Q3 — Answer: C. A vault is the logical store; access is controlled by RBAC roles plus per-vault access policies. That's the governance boundary.
- Q4 — Answer: B. Azure encrypts with Microsoft-managed keys by default. Customer-managed keys in Key Vault give you control and revocation rights — the classic least-privilege trade: more control, more responsibility.
- Q5 — Answer: Audit trail, because the requirement is to PROVE who accessed a secret, not just to stop unauthorized access. RBAC stops it; logging proves it.. Tests that the learner separates enforcement (RBAC/policy) from evidence (logging/audit).
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 16 — Azure Monitor, Metrics, Logs, and Alerts60–90 minutes
A. Day 16 — Azure Monitor, Metrics, Logs, and Alerts
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what Azure Monitor does, using the patient-monitor analogy
- Distinguish metrics, logs, the Activity log, and insights
- Read a metric chart for a real resource in the Metrics explorer
- Build an alert rule with a threshold and attach an action group
- Describe static vs dynamic thresholds at a beginner level
C. Prerequisites
- Azure free account
- Completion of Days 1–15, especially Day 5–6 (VMs) and Day 14 (the multi-resource build)
D. Concepts Explained Simply
Azure Monitor is Microsoft's unified service for collecting, analyzing, and acting on telemetry — measurements about your cloud resources. Think of a hospital patient monitor: the metrics are the live numbers on the screen (heart rate 72 — for Azure, CPU 45%, requests per second 120), and the logs are the nurse's written diary ("at 2:04 PM the patient received medication" — for Azure, "at 2:04 PM a deployment happened"). Metrics are numbers over time; logs are timestamped records of events.
Metrics are stored automatically for nearly every Azure resource at no extra setup. You view them in Metrics (the Metrics explorer blade), where you pick a resource, a metric (like Percentage CPU), and a time range, and get a chart. Many services also ship insights — prebuilt dashboards like VM insights that show CPU, disk, memory, and top processes without you building charts.
The Activity log is a special log: it records control-plane events — WHO did WHAT to WHICH resource and WHEN ("Siva deleted vm-db at 9:41 PM"). It answers accountability questions and is the first place to look when something changed unexpectedly. Resource logs (diagnostic logs) record what happened INSIDE a service — data-plane events like failed login attempts on a database.
Alerts turn watching into action. An alert rule says WHEN to fire ("CPU above 80% for 5 minutes"). An action group says WHO gets told and HOW (email Siva, SMS the on-call, call a webhook). You can use static thresholds (a fixed number) or dynamic thresholds (machine learning that learns the normal pattern and fires on unusual deviation — good for spiky workloads).
Portal UI, metric names, and free-tier limits change over time — verify against current docs. Alerting on a deleted or idle lab resource wastes noise; always clean up. This workshop is not sponsored, endorsed, or certified by Microsoft.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Monitor overview (Microsoft Learn) | Documentation | https://learn.microsoft.com/en-us/azure/azure-monitor/overview Verified | Official explanation of metrics, logs, alerts, insights, and the data platform — the reference for today's concepts | 20 min |
| Azure training hub (Microsoft Learn) | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find monitoring and observability learning paths when you want to go deeper | 10 min |
F. Hands-On Workshop
Objective: Point Azure Monitor at a small VM, graph its CPU metric, build an alert rule with an action group, and clean up.
Prerequisites: Azure free account. No extra tools needed.
Step 1. Create a resource group. Portal → search "Resource groups" → + Create. Name: rg-monitor-day16. Region: your usual region. Review + create → Create.
Expected result: rg-monitor-day16 appears in the resource group list.
Verify: Refresh; rg-monitor-day16 is listed.
Step 2. Create a small signal-source VM. Portal → search "Virtual machines" → + Create → Azure virtual machine. Resource group: rg-monitor-day16. Name: vm-monitor-16. Image: Ubuntu Server. Size: Standard_B1s. Authentication: password (journal only, never publish). Public inbound ports: None. Review + create → Create.
Expected result: The VM deploys and shows Running status.
Verify: VM overview shows Running.
Troubleshooting: Size unavailable: try Standard_B2s.
Step 3. Open Metrics for the VM. Open vm-monitor-16 → left menu Monitoring → Metrics. Scope should already be your VM. Metric: choose "Percentage CPU". Aggregation: Avg. Time range: Last 1 hour. Click Apply (or it auto-applies). Watch the chart.
Expected result: The Metrics blade shows a chart with at least one line (even near zero).
Verify: You see a CPU chart for vm-monitor-16 and can read a value off it.
Troubleshooting: Chart empty/flat at zero: that's normal for an idle VM — a flat line near zero IS data.
Step 4. Look at VM insights. Still in the VM blade → Monitoring → Insights. Browse the tabs (Performance, Map). Notice how much analysis ships prebuilt — this is the "insights" experience for VMs.
Expected result: The Insights view loads with prebuilt charts (CPU, disk, memory may show limited data on a fresh VM).
Verify: You can describe two charts you saw in VM insights.
Troubleshooting: Insights asks to enable: click Enable if offered (uses the free tier of data collection at learning scale).
Step 5. Start an alert rule. Portal top search → "Alerts" → open Monitor Alerts → + Create → Alert rule. Scope: select vm-monitor-16 (Resource groups → rg-monitor-day16 → the VM). Condition tab → See all signals → search "Percentage CPU" → select it.
Expected result: The alert rule wizard opens with your VM pre-selected as the scope.
Verify: The condition pane shows the Percentage CPU signal for vm-monitor-16.
Troubleshooting: Signal list empty: confirm the scope is the VM itself, not the resource group.
Step 6. Set a deliberately low threshold. Operator: Greater than. Threshold value: 1 (percent). Aggregation: Average. Evaluation: check every 1 minute, look back 5 minutes. We use 1% so the rule will fire on an idle VM — this is a TEST threshold, not a production one. Click Next.
Expected result: The condition summary reads like "Greater than 1, Avg Percentage CPU, evaluated every 1 minute over 5 minutes" (your exact numbers may differ).
Verify: You can read the condition back in plain English.
Step 7. Create an action group. Actions tab → + Create action group. Resource group: rg-monitor-day16. Action group name: ag-day16-test. Region: Global. Notification type: Email/SMS message/Push/Voice → Email → enter YOUR email address → OK. Review + create → Create. Then select this action group in the alert wizard.
Expected result: The action group appears in the list with your email shown.
Verify: The alert rule wizard shows ag-day16-test selected under Actions.
Troubleshooting: Email not arriving later: check spam/junk; Azure alert emails sometimes land there the first time.
Step 8. Finish the alert rule. Details tab: name it alert-cpu-test-day16. Severity: 3 (or 4 — this is a test). Description: "Lab test alert — will be deleted." Review + create → Create.
Expected result: The alert rule is listed with status Enabled and severity of your choice.
Verify: Monitor → Alerts → Alert rules lists alert-cpu-test-day16 as Enabled.
Troubleshooting: Create blocked: every alert rule needs at least one action group — go back and attach ag-day16-test.
Step 9. Check the Activity log. Portal → search "Activity log" (or the VM's Activity log blade). Filter to the last hour. Find the entries for creating the VM and the alert rule — WHO did WHAT and WHEN.
Expected result: You can explain in one sentence what the Activity log recorded (e.g. the alert rule creation event).
Verify: You found at least one entry naming your alert rule creation.
Step 10. Clean up. Portal → Resource groups → rg-monitor-day16 → Delete resource group → type the name → Delete. Then open Monitor → Alerts → Alert rules and confirm alert-cpu-test-day16 is gone (if it was in a shared group, delete it manually).
Expected result: The resource group disappears and the alert rule no longer exists.
Verify: No resource group, no VM, no alert rule remains.
Troubleshooting: Stray alert emails after deletion: action groups fire on old evaluations for a short while, then stop.
G. Practical Assignment
Pick any resource you still have from earlier labs (or create a tiny storage account). Write one realistic alert rule for it on paper: the signal (metric), the threshold, the evaluation window, and who gets notified. Include why you chose that threshold.
H. Knowledge Assessment
- Q1. What is the difference between metrics and logs in Azure Monitor?
- A) Metrics are free and logs cost money
- B) Metrics are numeric measurements over time; logs are timestamped records of events
- C) Logs are numeric and metrics are text
- D) There is no difference
- Q2. What is the relationship between an alert rule and an action group?
- A) An alert rule emails you; an action group blocks the alert
- B) An action group creates the alert rule
- C) The alert rule defines WHEN to fire; the action group defines WHO is notified and HOW
- D) They are two names for the same thing
- Q3. Your Day-14 VM is running slowly. Which is the FASTEST place to see its CPU, disk, and memory trends?
- A) The Azure pricing calculator
- B) The VM's Insights (Monitor → Insights) view
- C) The virtual machine's size settings
- D) The resource group's activity log
- Q4. What is the difference between a static threshold and a dynamic threshold in an alert rule?
- A) Static thresholds learn from history
- B) Dynamic thresholds are always free
- C) Static thresholds fire at a fixed value; dynamic thresholds learn the normal pattern and adapt
- D) Dynamic thresholds cannot be used with metrics
- Q5. Practical: Your web app was down for 10 minutes last night. Name the two places in Azure Monitor you would check FIRST, what kind of data each shows, and how you would tell an app problem from a platform problem.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Metrics are numbers over time (CPU %), logs are event records (a login happened at 2:04). Different data types, different tools: metrics explorer vs Log Analytics.
- Q2 — Answer: C. Alerts fire when data crosses a rule you defined; an action group defines WHO gets notified and HOW (email, SMS, webhook). The alert without an action group fires into silence.
- Q3 — Answer: B. VM Insights is the dedicated monitoring experience for VMs — prebuilt charts for CPU, disk, memory, and processes. The pricing calculator estimates costs; the VM's own overview shows status, not deep performance.
- Q4 — Answer: C. Dynamic thresholds learn the normal pattern from history and adjust automatically. Static thresholds fire at a fixed number regardless of context.
- Q5 — Answer: Describe: check Metrics for a number (e.g. CPU percentage over time) and the Activity log for control-plane events (who did what, when). A high CPU with no restart events points to the app; a restart event with low CPU points to the platform. Judged on separating data-plane (workload) from control-plane (platform) evidence.. Tests evidence-based troubleshooting: using two different data types to separate app problems from platform events.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 17 — Log Analytics Workspace and Introductory KQL60–90 minutes
A. Day 17 — Log Analytics Workspace and Introductory KQL
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what a Log Analytics workspace is and how logs are organized into tables
- Describe the KQL pipeline model (table → pipe → operator)
- Write basic KQL queries using take, where, project, summarize, and sort/top
- Explain ingestion cost and the Analytics vs Basic table plans
- Run queries against sample data without ingesting anything (no cost)
C. Prerequisites
- Azure free account
- Completion of Day 16 (Azure Monitor, metrics, logs, alerts)
D. Concepts Explained Simply
A Log Analytics workspace is Azure Monitor's data store for logs: one big house where log records from many resources are collected into tables (like Heartbeat, Perf, Usage, SecurityEvent). Think of it as a library: each shelf is a table, each book is a record, and every book has a timestamp shelf-tag called TimeGenerated. You don't browse this library by hand — you query it.
The query language is KQL (Kusto Query Language). KQL reads like a pipeline flowing left to right: start with a table, then each pipe (|) passes the rows to the next operator. SecurityEvent | take 10 means "give me 10 rows from SecurityEvent, just to look at them." Learning KQL is learning a handful of operators well.
The six operators that cover 90% of beginner queries: take (grab a small sample), where (filter rows, e.g. | where TimeGenerated > ago(1h)), project (keep only the columns you want), summarize (group and count/average, the heart of analysis), sort by / top (order results), extend (add a computed column). Case matters in KQL — table and column names must match exactly, and keywords are lowercase.
Cost reality: you pay to ingest (write) data into a workspace and to retain it. Two table plans exist: Analytics logs (full features — alerts, all operators) and Basic logs (much cheaper to ingest, query-only with limits, no alerts). Choosing per-table plans is how real teams control log bills. Always filter by time (ago()) early in a query — scanning a month of data when you need an hour is slow and wasteful.
Portal UI, table names, and pricing change over time — verify against current docs. This workshop is not sponsored, endorsed, or certified by Microsoft.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Log Analytics workspace overview (Microsoft Learn) | Documentation | https://learn.microsoft.com/en-us/azure/azure-monitor/logs/log-analytics-workspace-overview Verified | How workspaces, tables, retention, and access work — the reference for today's concepts | 20 min |
| Get started with log queries in Azure Monitor Logs (Microsoft Learn) | Documentation | https://learn.microsoft.com/en-us/azure/azure-monitor/logs/get-started-queries Verified | Microsoft's own KQL walkthrough with the demo environment link — follow it alongside today's lab | 25 min |
F. Hands-On Workshop
Objective: Create a Log Analytics workspace, learn where its tables live, then practice five KQL queries against Microsoft's demo environment with real sample data.
Prerequisites: Azure free account. Completion of Day 16 (Azure Monitor basics).
Step 1. Create a resource group. Portal → search "Resource groups" → + Create. Name: rg-loganalytics-day17. Region: your usual region. Review + create → Create.
Expected result: rg-loganalytics-day17 appears in the resource group list.
Verify: Refresh; the group is listed.
Step 2. Create a Log Analytics workspace. Portal → search "Log Analytics workspaces" → + Create. Resource group: rg-loganalytics-day17. Name: law-day17-<randomdigits>. Region: same region. Review + create → Create.
Expected result: The workspace deploys; its overview blade shows the workspace name and region.
Verify: Overview blade shows your workspace name and a green provisioning state.
Troubleshooting: Name taken: add more digits — workspace names must be unique per resource group; digits make collisions unlikely.
Step 3. Open the Logs blade and look at the schema. Open your workspace → left menu General → Logs. On the left is the schema pane listing tables (Heartbeat, Perf, Usage, and more). Notice your fresh workspace has tables defined but almost no data yet — that's why the next steps use the demo workspace for queries.
Expected result: The Logs blade opens (possibly with a welcome dialog); the left schema pane lists tables.
Verify: You can name three tables from the schema pane.
Troubleshooting: Logs blade asks about a query mode: choose KQL mode or Simple mode — pick KQL mode for this workshop.
Step 4. Open the demo environment. In a new browser tab, go to the Microsoft Learn "Get started with log queries" article (linked in Resources) and follow its link to the demo environment, or search the portal help for "Log Analytics demo". Sign in with your Azure account if prompted — the demo workspace is read-only sample data.
Expected result: The demo Log Analytics environment opens with sample data available to query.
Verify: The demo Logs blade shows populated tables (e.g. SecurityEvent has data).
Troubleshooting: Demo link hard to find: the article linked in today's Resources contains it; the demo is the standard way to practice without ingesting data.
Step 5. Query 1 — take a sample. In the demo Logs blade, clear the editor and type: SecurityEvent | take 10 — then click Run. This is the universal first move when facing any new table: look at a few rows.
Expected result: Exactly 10 rows are returned from the SecurityEvent table.
Verify: The results grid shows 10 rows with columns like TimeGenerated and Computer.
Troubleshooting: Syntax error highlight: KQL is case-sensitive; the table name must be exactly SecurityEvent and keywords lowercase.
Step 6. Query 2 — filter by time and sort. Type: SecurityEvent | where TimeGenerated > ago(1h) | top 10 by TimeGenerated desc — Run. Notice the pipeline: filter first (cheap), then sort the small remainder.
Expected result: Rows are returned, all within the last hour, newest first.
Verify: All returned TimeGenerated values are within the window you chose.
Troubleshooting: No results: the demo data may be sparse in the last hour; widen to ago(24h).
Step 7. Query 3 — group and count. Type: SecurityEvent | summarize Count = count() by Computer | top 10 by Count desc — Run. summarize collapses thousands of rows into one row per computer — this is the operator that turns raw logs into answers.
Expected result: A two-column result: Computer and a count column, highest counts first.
Verify: Each Computer appears exactly once, with its event count.
Troubleshooting: Column name mismatch: use the exact name shown in the schema pane; in the demo, Computer exists on SecurityEvent.
Step 8. Query 4 — chart performance over time. Type: Perf | where TimeGenerated > ago(6h) | where CounterName == "% Processor Time" | summarize avg(CounterValue) by bin(TimeGenerated, 30m) — Run, then switch the results view to Chart. bin() groups continuous time into 30-minute buckets.
Expected result: Each row shows a timestamp bucket and an average CPU value.
Verify: A line or bar chart of average CPU over time renders.
Troubleshooting: Perf empty in your window: widen to ago(7d); demo data has gaps.
Step 9. Query 5 — find what costs money. Type: Usage | where TimeGenerated > ago(1d) | summarize TotalMB = sum(Quantity) by DataType | top 5 by TotalMB desc — Run. This is the query real teams run to find their most expensive log sources.
Expected result: A small table of data types with their ingestion volumes, biggest first.
Verify: You can name the top data type by volume in the demo.
Step 10. Clean up. Portal → Resource groups → rg-loganalytics-day17 → Delete resource group → type the name → Delete. Confirm deletion.
Expected result: The resource group and workspace are gone.
Verify: Resource groups no longer lists rg-loganalytics-day17.
G. Practical Assignment
In your journal, write two KQL queries that would answer questions about YOUR Day-16 VM: (1) average CPU per hour over the last day, (2) the 20 most recent heartbeat records. Then run both against the demo workspace and note what the results look like.
H. Knowledge Assessment
- Q1. What is a Log Analytics workspace?
- A) A database server you manage yourself
- B) A data store (workspace) where logs from many Azure resources are collected and queried
- C) A single text file on your VM
- D) The same thing as a storage account
- Q2. What does the KQL query `SecurityEvent | take 10` mean?
- A) SecurityEvent is a column name
- B) The query returns 10 random rows from SecurityEvent, piped step by step left to right
- C) The pipe character means OR
- D) Random is actually fine here — rows come back in no particular order; the core idea is pipeline + limit
- Q3. Which KQL operator counts events grouped by computer?
- A) where Computer == "web01"
- B) extend Rows = count()
- C) summarize count() by Computer
- D) project Computer
- Q4. What is the difference between Analytics logs and Basic logs tables?
- A) Basic logs are encrypted; Analytics logs are not
- B) Basic logs are cheaper to ingest but can't be used for alerts and have limited features — a per-table cost choice
- C) Basic logs expire after 1 hour
- D) Analytics logs must be queried with SQL
- Q5. Practical: Write a KQL query that returns the top 3 data types by total ingested volume in the last 24 hours, using the Usage table.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. A Log Analytics workspace is the data store for logs; querying happens in Log Analytics using KQL written in the Logs blade.
- Q2 — Answer: D. KQL is read left to right as a pipeline — table, then each | operator transforms the flowing rows. take limits rows to a sample.
- Q3 — Answer: C. summarize creates groups and aggregates them — count() by Computer gives per-computer totals. where filters rows; project keeps columns; extend adds one.
- Q4 — Answer: B. Basic logs are cheaper to ingest but are query-only (no alerts/analytics features, limited retention). It's a budget choice per table, not a different language.
- Q5 — Answer: KQL: Usage | where TimeGenerated > ago(1d) | summarize TotalGB = sum(Quantity) / 1000 by DataType | top 3 by TotalGB desc. Judged on correct pipeline logic (filter time → summarize sum → sort/top), not exact syntax.. Tests pipeline thinking: narrow, aggregate, then rank.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 18 — Azure Backup, Recovery, and Resilience Fundamentals60–90 minutes
A. Day 18 — Azure Backup, Recovery, and Resilience Fundamentals
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what Azure Backup does and when to use it
- Distinguish backup/restore from disaster recovery (Azure Site Recovery)
- Define RPO and RTO and relate them to backup policy design
- Enable VM backup to a Recovery Services vault with a daily policy
- Run an on-demand backup, verify the recovery point, and clean up completely
C. Prerequisites
- Azure free account
- Completion of Days 1–17, especially Days 5–6 (VMs) and Day 16 (monitoring)
D. Concepts Explained Simply
Azure Backup is Azure's native backup service: it protects your data and restores it when needed, without you deploying or managing any backup servers. The analogy: the spare key to your house kept at a friend's place. The house (your production VM) can burn down, but the spare key — and a copy of everything you need — survives because it lives somewhere else. That "somewhere else" is the Recovery Services vault, which stores backup data and recovery points and acts as a security boundary isolated from production.
Backup answers the question "can I get my data back?" — it is about backup and restore. Azure Site Recovery answers a different question: "can my service keep running if a whole region goes down?" — that is disaster recovery (failover orchestration of live systems to another region). They are complementary, not substitutes: Backup restores data to a point in time; Site Recovery keeps systems running during a regional disaster.
Two numbers define every recovery plan. RPO (Recovery Point Objective) = how much data loss is acceptable — if backups run daily, your RPO is roughly 24 hours. RTO (Recovery Time Objective) = how fast you must be back online — 30 minutes means your restore procedure must actually be practiced and that fast. Backup policies turn these numbers into schedules: how often backups run and how long recovery points are kept.
Protection against the worst case matters too: soft delete keeps deleted backup data for a retention period, defending against accidental or malicious deletion; immutable backups lock recovery points so they cannot be modified or deleted; RBAC restricts who can touch the vault. The vault's storage replication — LRS (Locally Redundant Storage) (three copies in one region), GRS (Geo-Redundant Storage) (copied to a distant secondary region — the default), ZRS (Zone-Redundant Storage) (spread across zones in the region) — decides how far your backups survive.
Note: backup of a real VM can take a long time (hours) and incurs small storage costs — this lab uses a small VM and on-demand backup; delete the vault promptly. Portal UI, pricing, and vault features change over time. This workshop is not sponsored, endorsed, or certified by Microsoft.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| What is Azure Backup? (Microsoft Learn) | Documentation | https://learn.microsoft.com/en-us/azure/backup/backup-overview Verified | Official overview: when to use Backup, what it protects, vaults, policies, and security features | 20 min |
| Azure free account | Documentation | https://azure.microsoft.com/free/ Verified | Check what the free account covers before running backup storage and VM hours | 10 min |
F. Hands-On Workshop
Objective: Create a Recovery Services vault, enable backup on a small VM with a daily policy, run an on-demand backup, verify the recovery point, then clean up fully.
Prerequisites: Azure free account. Completion of Day 16 (VM creation) — you will create a small VM.
Step 1. Create a resource group. Portal → search "Resource groups" → + Create. Name: rg-backup-day18. Region: your usual region (e.g. East US). Review + create → Create.
Expected result: rg-backup-day18 appears in the resource group list.
Verify: Refresh; rg-backup-day18 is listed.
Step 2. Create a small VM to protect. Portal → search "Virtual machines" → + Create → Azure virtual machine. Resource group: rg-backup-day18. Name: vm-backup-18. Image: Ubuntu Server. Size: Standard_B1s. Authentication: password (journal only, never publish). Public inbound ports: None. Review + create → Create.
Expected result: The VM deploys and shows Running status.
Verify: VM overview shows Running.
Troubleshooting: Size unavailable: try Standard_B2s.
Step 3. Create a Recovery Services vault. Portal → search "Recovery Services vaults" → + Create. Resource group: rg-backup-day18. Vault name: rsv-day18-<randomdigits>. Region: same region. Backup storage redundancy: Locally-redundant (LRS) for this lab (cheaper). Review + create → Create.
Expected result: The vault deploys; its overview blade shows the vault name and backup/storage replication settings.
Verify: Vault overview shows the name and LRS storage replication.
Step 4. Start the backup setup. Open the vault → left menu Getting Started → Backup. Where is your workload running? Azure. What do you want to back up? Virtual machine. Click Backup (or Continue). Select vm-backup-18 from the list.
Expected result: The VM appears in the backup configuration list and can be selected.
Verify: vm-backup-18 is selected as the item to protect.
Troubleshooting: VM not listed: it must be in the same subscription; the vault region and VM region may need to match — keep them the same.
Step 5. Choose a backup policy. Select the DefaultPolicy (daily backup, 30-day retention) — or create a custom policy if offered: daily at a set time, retain recovery points for 30 days. Click Enable backup. Wait for the enable-backup job to complete (check the bell Notifications icon).
Expected result: A policy is attached to the VM; backup is "enabled" on the VM.
Verify: Vault → Backup items → Azure Virtual Machine shows vm-backup-18 with protection status (e.g. Healthy or Backup in progress).
Troubleshooting: Enable fails with an extension error: retry once; the backup extension install can take several minutes on first run.
Step 6. Run an on-demand backup. Vault → Backup items → Azure Virtual Machine → select vm-backup-18 → Backup now → set "Retain backup till" 30 days from today → OK. This queues a backup job. Watch it under Monitoring → Backup jobs. The first backup of a VM can take 30+ minutes — start it, work on the assignment, and check back.
Expected result: A "Backup now" job appears in Backup jobs with status Completed after some time.
Verify: Backup jobs shows a completed "Backup" job for vm-backup-18.
Troubleshooting: Job stuck at "In progress" for a long time: normal for a first VM backup; only worry if it fails outright — then check Backup jobs → the failed job's error message.
Step 7. Verify the recovery point. Vault → Backup items → Azure Virtual Machine → select vm-backup-18 → Backup → the Recovery points section shows your completed backup with date and time. This is your spare key — proof you could restore.
Expected result: At least one recovery point with a timestamp is listed.
Verify: You can read out the recovery point's date and time.
Troubleshooting: Recovery points empty though the job completed: wait a few minutes and refresh; the list can lag behind the job.
Step 8. Walk through a restore WITHOUT completing it. Click Restore VM → observe the steps: choose recovery point, choose restore type (Create new virtual machine vs Replace existing). Do NOT click through the final restore — a real restore creates billable resources. Close the blade after studying the options.
Expected result: The Restore blade lists recovery-point types and restore options (e.g. create a new VM) — you understand the path without paying for a real restore.
Verify: You can describe in one sentence the difference between restoring to a new VM vs replacing the existing one.
Step 9. Clean up fully. Vault → Backup items → Azure Virtual Machine → select vm-backup-18 → Stop backup → choose "Delete backup data" → confirm. Then Portal → Resource groups → rg-backup-day18 → Delete resource group → type the name → Delete. Confirm deletion.
Expected result: The resource group and vault are gone; no backup data remains.
Verify: Resource groups no longer lists rg-backup-day18; vault is gone.
Troubleshooting: Delete blocked by soft-delete: stopping backup with "Delete backup data" first is the required order; then retry the resource group deletion.
G. Practical Assignment
Check one real thing in your life that has no backup (a phone photo library, a school project, a USB drive). Write the RPO/RTO for it in plain words and the concrete change you will make this week so losing it costs you at most one day.
H. Knowledge Assessment
- Q1. What is the difference between Azure Backup and Azure Site Recovery?
- A) They are the same service with two names
- B) Azure Backup restores data and workloads to a point in time; Azure Site Recovery replicates and fails over running systems to another region
- C) Backup is only for on-premises; Site Recovery is only for the cloud
- D) Site Recovery is free and Backup is expensive
- Q2. What does soft delete in Azure Backup protect against?
- A) Soft delete encrypts the vault
- B) Soft delete makes backups smaller
- C) Soft delete retains deleted backup data for a defined period so it can be recovered after accidental or malicious deletion
- D) Soft delete automatically restores the VM
- Q3. What is a Recovery Services vault?
- A) A type of virtual machine
- B) The vault that stores backup data and recovery points and acts as a security boundary
- C) The billing container for Backup
- D) A networking gateway
- Q4. A business says "we can lose at most 1 hour of data, and we must be back online within 30 minutes." Which statement uses RPO and RTO correctly?
- A) RPO and RTO are the same number
- B) RPO is the cost of backup; RTO is the cost of restore
- C) RPO = how much data loss is acceptable (backup frequency); RTO = how quickly service must be restored (restore speed)
- D) RPO applies to VMs; RTO applies to databases
- Q5. Practical: In your journal, write a one-page backup plan for the Day-14 web app + VM build: choose an RPO and RTO with reasons, a backup policy (frequency + retention), storage replication (LRS/GRS/ZRS), and say which restore path (file, disk, or full VM) each of two scenarios needs: (1) an app config file is corrupted, (2) the whole VM is deleted.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Backup (recovery of data to a point in time) and Site Recovery (failover of running systems to another region) are complementary: Backup restores data, Site Recovery keeps services running during a regional disaster.
- Q2 — Answer: C. Soft delete holds deleted backup data for a retention period, so accidental or malicious deletion can be reversed. Immutability locks recovery points from being changed at all.
- Q3 — Answer: B. The Recovery Services vault stores backup data and recovery points and acts as a security boundary — isolated from the production environment so a production incident doesn't take backups with it.
- Q4 — Answer: C. RPO is about DATA loss (how recent must the backup be); RTO is about TIME (how fast must you be back). A 1-hour RPO needs frequent backups; a 30-minute RTO needs a fast-tested restore path.
- Q5 — Answer: Practical plan, judged on: realistic RPO/RTO numbers with reasons; policy frequency vs RPO (e.g. daily backup supports ~24h RPO); retention aligned to a stated need; LRS vs GRS justified by disaster scope; which restore path each incident uses; note that restore speed is verified by a drill, not assumed.. Tests realistic recovery planning rather than memorized definitions.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 19 — Azure Cost Management, Pricing, Budgets, and Cleanup60–90 minutes
A. Day 19 — Azure Cost Management, Pricing, Budgets, and Cleanup
Estimated duration: 60–90 minutes
B. Learning Objectives
- Read Cost Analysis to find exactly which resource groups and services are costing you money
- Estimate a monthly bill with the Azure Pricing Calculator before you deploy anything
- Create a monthly budget with actual-cost and forecasted-cost alerts at your own subscription scope
- Explain why a budget is an alert, not a spending cap, and why alerts can arrive hours late
- Delete leftover lab resources so they stop charging you
C. Prerequisites
- Azure free account (created on Day 1)
- Completion of Days 1–18, or equivalent portal experience with resource groups and storage accounts
D. Concepts Explained Simply
Think of your Azure bill like an electricity meter, not a rent cheque. Rent is a fixed number you agree to in advance. An electricity meter runs every minute something is plugged in — and you find out the total at the end of the month. Azure works the same way: every resource you leave running adds up, whether you are using it or not. Today's lesson is about reading that meter, estimating it before you switch things on, and setting an alarm for when the meter runs too fast.
Cost Management is the dashboard where you read the meter. Its Cost Analysis view shows spending broken down by resource group, service, region, or tag (a name/value label you attach to resources, which you will master tomorrow on Day 20). The Pricing Calculator is the opposite end: it estimates the monthly cost of a configuration before you create it. Always estimate first, deploy second.
A budget sets a spending target for a scope — a subscription, a resource group, or a service — over a monthly, quarterly, or annual period. Here is the critical fact, and it is the most expensive misunderstanding in Azure: a budget does not stop spending. Crossing 100% of a budget does nothing to your resources. A budget only alerts — it sends email notifications when your actual cost or your forecasted cost passes thresholds you choose, such as 50%, 80%, or 100% of the budget amount.
Two more facts about timing. Cost data typically takes 8–24 hours to show up, and budgets are re-evaluated about every 24 hours. An alert email normally goes out within an hour of the evaluation. So a budget alert is never instant — it can lag a day behind reality. That is why the habit that saves real money is not the budget itself, but cleanup: deleting resource groups you no longer need. A virtual machine you deleted last week can still cost you money if its managed disk or public IP (Internet Protocol) address was left behind — these are called orphaned resources, and Cost Analysis grouped by resource is how you hunt them down.
One last note: portal screens, prices, and free-tier limits change over time. The exact dollar amounts you see today may differ from what is in any screenshot — the steps and the concepts stay the same.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Pricing Calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Estimate the monthly cost of a VM, storage account, or database before you create it | 15 min |
| Tutorial: Create and manage budgets | Documentation | https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/tutorial-acm-create-budgets Verified | Step-by-step reference for creating budgets, actual vs forecasted alerts, and alert timing | 20 min |
| Describe the Microsoft Cost Management tool | Microsoft Learn | https://learn.microsoft.com/en-us/training/modules/describe-cost-management-azure/6-describe-azure-tool Verified | Short training unit on Cost Analysis, cost alerts, and budgets | 10 min |
F. Hands-On Workshop
Objective: Inspect your real spending in Cost Analysis, estimate a future bill with the Pricing Calculator, and create a budget with alerts at your subscription scope.
Prerequisites: Azure free account. Sign in to portal.azure.com as the subscription owner or contributor.
Step 1. In the Azure portal top search bar, type 'Cost Management' and select 'Cost Management + Billing'. On the left menu, select 'Cost Management', then 'Cost analysis'. Set the scope dropdown to your subscription.
Expected result: A chart of your accumulated cost for the current billing period, with totals in your currency.
Verify: You can see a total cost figure and a breakdown chart. If your subscription is brand new, the total may be $0 — that is fine.
Troubleshooting: If Cost Management shows nothing or says data is unavailable, your subscription may be too new — cost data can take up to 48 hours to appear on a brand-new subscription. Continue with the budget steps and come back tomorrow.
Step 2. Above the chart, change 'Group by' from 'Service name' to 'Resource group'. Write down (on paper or in your journal) the two resource groups with the highest cost.
Expected result: The chart re-renders, showing one bar or segment per resource group from your earlier lab days.
Verify: You can read the names of at least two resource groups and their cost shares.
Step 3. Change 'Group by' to 'Resource'. Expand the top items. Look for any resource that belongs to a lab you thought was finished — for example a storage account or disk in a lab resource group you no longer need.
Expected result: Individual resources appear with their cost. This is how you spot orphaned resources like leftover disks.
Verify: You can name one resource you no longer need, if any exist.
Step 4. Open the Azure Pricing Calculator in a new tab (azure.microsoft.com/pricing/calculator). Add a Virtual Machines product: choose Windows, region East US, B2s size, 1 VM running 730 hours/month. Note the monthly estimate.
Expected result: The calculator shows an estimated monthly price for that VM configuration.
Verify: You have a dollar figure written down for the VM alone, before storage and bandwidth.
Troubleshooting: If the calculator page layout changed, use its search box for 'Virtual Machines' — the estimate logic is the same.
Step 5. Back in the portal, go to 'Subscriptions', select your subscription, and select 'Budgets' in the left menu. Select '+ Add' to create a budget.
Expected result: The 'Create budget' window opens with the subscription pre-selected as the scope.
Verify: The scope shown matches your subscription name.
Troubleshooting: If 'Add' is greyed out, you need contributor-level access on the subscription. Free-account owners have this by default.
Step 6. Name the budget 'workshop-monthly-budget'. Set reset period to 'Monthly'. Set the budget amount to 10 (ten dollars or your currency equivalent — this is a learning budget, not your real limit). Set an expiration date one year in the future. Select 'Next'.
Expected result: You move to the alert configuration page, possibly with a spending graph suggesting a threshold.
Verify: Budget name, Monthly period, amount 10, and a future expiration date are all visible.
Step 7. Under 'Set alerts', create actual-cost alerts at 50%, 80%, and 100% of the budget, all sending email to your own email address. Add one forecasted-cost alert at 100% to your email. Select 'Create'.
Expected result: The budget appears in the Budgets list with 0% or low usage against it.
Verify: Open the budget — you see four alert rules (50/80/100 actual, 100 forecasted) with your email as the recipient.
Troubleshooting: Remember: these alerts notify you. They do not stop or delete anything. If your email provider filters them, add azure-noreply@microsoft.com to your safe senders.
Step 8. Return to Cost Analysis. Open the 'Budgets' list inside Cost Analysis (or the Budgets page) and confirm your new budget is shown against your spending trend.
Expected result: The budget line appears alongside your actual spending trend.
Verify: You can see the budget name and its current usage percentage.
Step 9. Cleanup review: in the portal, search 'Resource groups'. Open each lab resource group from Days 1–18 that you are completely finished with. If it contains no resources you need, delete the resource group: open it, select 'Delete resource group', type the name to confirm, and select Delete.
Expected result: The deleted resource groups disappear from the list within a few minutes.
Verify: The resource group is gone from the Resource groups list. Repeat Cost Analysis tomorrow to confirm its cost stops growing.
Troubleshooting: Deletion can take a few minutes. Do NOT delete a resource group if you are unsure what is inside — open it and read the resource list first.
Step 10. Write in your journal: your current month-to-date total from Cost Analysis, the Pricing Calculator estimate from step 4, and which resource groups you deleted. Keep the budget in place — it will watch your spending for the rest of the workshop.
Expected result: Three facts recorded in your own words.
Verify: You can state your spend, your estimate, and your cleanup actions without re-opening the portal.
G. Practical Assignment
Pick one resource you still have running from an earlier lab day (for example a storage account). Use the Pricing Calculator to estimate its monthly cost, then decide: keep it, stop it, or delete it — and write one sentence explaining your decision.
H. Knowledge Assessment
- Q1. Your spending crosses 100% of your Azure budget. What happens to your resources?
- A) Azure automatically stops all resources in the budget scope until the next month
- B) Azure deletes the most expensive resources to bring spending back under budget
- C) Nothing happens to the resources — you only receive alert notifications
- D) Your subscription is suspended immediately
- Q2. Why can a budget alert arrive a day or more after the spending actually happened?
- A) Budget alerts are sent by physical mail once a month
- B) Cost and usage data typically takes 8–24 hours to appear, and budgets are re-evaluated about every 24 hours
- C) Alerts only fire on the first day of each month
- D) The alert system is paused on weekends
- Q3. You want to know what a new virtual machine will cost per month BEFORE you create it. Which tool should you use?
- A) Cost Analysis
- B) Azure Advisor
- C) The Azure Pricing Calculator
- D) The Budgets page
- Q4. You deleted a virtual machine last week, but Cost Analysis grouped by Resource still shows charges from its resource group. What is the most likely cause?
- A) The budget you created is too low
- B) Orphaned resources — such as the VM's managed disk or public IP address — were left behind and are still billing
- C) Cost Analysis shows data from other subscriptions
- D) Deleted resources keep billing for exactly 30 more days by design
- Q5. Open Cost Analysis in your own subscription, group by Resource group, and answer in your own words: which two resource groups cost you the most this month, and name one resource you can delete today to stop future charges.
Answer key & explanations (open after you finish)
- Q1 — Answer: C. Budgets are alerts, not spending caps. Crossing a budget threshold only triggers the alert rules you configured (emails, action groups). Resources keep running and charges continue. This is the single most important cost fact in Azure.
- Q2 — Answer: B. Cost data lags reality by 8–24 hours, and budget evaluation happens roughly once a day, with emails normally sent within an hour of the evaluation. Alerts are therefore never instant.
- Q3 — Answer: C. The Pricing Calculator estimates future cost before deployment. Cost Analysis shows money already spent, budgets watch spending against a target, and Advisor recommends optimizations.
- Q4 — Answer: B. Deleting a VM does not delete its disk, NIC, or public IP. Those orphaned resources keep accruing charges. Grouping Cost Analysis by Resource is how you find them; deleting the whole resource group removes them all.
- Q5 — Answer: A correct answer names two real resource groups from the learner's Cost Analysis (for example, a lab group from an earlier day) and identifies at least one deletable resource — such as a leftover storage account, disk, or an entire finished lab resource group — with the reasoning that deleting the group removes all its billable resources at once.. This is a practical check that you can read your own bill and act on it. The habit of grouping by resource group and deleting finished labs is what keeps a free account free.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 20 — Azure Policy, Governance, and Resource Tagging60–90 minutes
A. Day 20 — Azure Policy, Governance, and Resource Tagging
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain the difference between a policy definition, an initiative, and an assignment
- Describe the four assignment scopes and how policies inherit down the hierarchy
- Assign the built-in 'Allowed locations' policy and observe the Deny effect blocking a deployment
- Apply standard name/value tags to a resource group and a resource
- Read the Policy compliance dashboard and distinguish compliant from non-compliant resources
C. Prerequisites
- Azure free account (created on Day 1)
- Day 19 completed (Cost Analysis grouping by tag was introduced there)
D. Concepts Explained Simply
Yesterday you learned to read the meter. Today you learn to write the building code. Governance means setting rules so that your Azure environment stays organized, compliant, and cheap — without you having to check everything by hand. Azure Policy is the rule engine; tags are the labels that make the rules useful.
Azure Policy compares every resource against business rules and reports compliance. The vocabulary is four words: a policy definition is one rule written in JSON (JavaScript Object Notation), a machine-readable format; an initiative is a bundle of definitions for one goal (for example, every rule needed for a security standard); an assignment applies a definition or initiative to a scope; and the scope is where the rule applies — a management group (a container for subscriptions), a subscription, a resource group, or a single resource. Rules cascade down: a policy assigned at the subscription applies to every resource group inside it.
Each rule also has an effect — what the policy actually does when it evaluates a resource. The common effects: Deny blocks the deployment, Audit allows it but flags it as non-compliant in the dashboard, Append adds properties (like tags) to the resource, and DeployIfNotExists creates something missing. Important subtlety: Deny only blocks new or updated resources. It never deletes existing ones — those simply show as non-compliant until you fix them.
Tags are name/value pairs — sticky notes for resources — such as environment=production or owner=siva. You can attach up to 50 tags to a resource, resource group, or subscription. Tags power the cost reports from Day 19: group Cost Analysis by tag and you can report spending per project or per team. Two honest limitations to remember: a tag you add today does not re-label yesterday's costs, and a resource does not automatically inherit its resource group's tags — but Azure Policy can enforce tagging and even inherit tags from a resource group down to its resources.
Portal screens and policy names can change over time. If a built-in policy name in this lab looks slightly different in your portal, use the Policy search box to find the closest match.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| How to tag a VM using the Azure portal | Documentation | https://learn.microsoft.com/en-us/azure/virtual-machines/tag-portal Verified | Shows the portal tagging pattern (Name/Value pairs, 50-tag limit) that applies to all resource types | 5 min |
| Azure Policy overview | Documentation | https://learn.microsoft.com/en-us/azure/governance/policy/overview Needs verification | Official overview of definitions, initiatives, assignments, scopes, and effects | 20 min |
| Use tags to organize your Azure resources | Documentation | https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources Needs verification | Tagging strategy, naming guidance, and tag limitations for real environments | 15 min |
F. Hands-On Workshop
Objective: Assign the built-in 'Allowed locations' policy to a lab resource group, watch it block a wrong-region deployment, tag resources, and read the compliance dashboard.
Prerequisites: Azure free account with owner or contributor access on the subscription.
Step 1. In the portal, search 'Resource groups' → '+ Create'. Create a resource group named rg-policy-lab in region East US. Leave tags empty for now. Select 'Review + create', then 'Create'.
Expected result: A new empty resource group rg-policy-lab in East US appears in the Resource groups list.
Verify: rg-policy-lab appears in the Resource groups list with Location 'East US'.
Step 2. In the portal top search bar, type 'Policy' and select the 'Policy' service. Take one minute to look at the layout: 'Compliance' on the left is the dashboard you will check later.
Expected result: The Policy service page opens showing Compliance, Authoring, and Remediation sections.
Verify: You are on the Policy page and can see 'Compliance' in the left menu.
Step 3. Select 'Assignments' in the left menu, then '+ Assign policy' at the top. Confirm the Scope shows your subscription and the resource group rg-policy-lab. If not, open the scope picker and select rg-policy-lab.
Expected result: The assignment form opens with Scope already set to your resource group.
Verify: Scope reads like '/subscriptions/.../resourceGroups/rg-policy-lab'.
Step 4. Under 'Policy definition', select the browse button (…). In the search box type 'Allowed locations' and select the built-in definition 'Allowed locations'. Name the assignment 'policy-lab-allowed-locations'.
Expected result: The policy appears selected with its parameters below.
Verify: The definition field shows 'Allowed locations'.
Troubleshooting: If you see several similar names, pick the plain 'Allowed locations' definition. Built-in definition names can change slightly over time.
Step 5. Select the 'Parameters' tab. Check 'Only show parameters that need input'. Set 'listOfAllowedLocations' to East US only (remove any others). Leave the effect as the default. Select 'Review + create', then 'Create'.
Expected result: The parameter list shows the effect and an empty locations list.
Verify: The assignment 'policy-lab-allowed-locations' appears in the Assignments list for scope rg-policy-lab.
Step 6. Wait 2–3 minutes for the assignment to take effect. Then try to break the rule: create a storage account inside rg-policy-lab but choose region West US (not East US). Attempt to create it.
Expected result: You should see an error mentioning the policy, e.g. 'RequestDisallowedByPolicy'. This is the policy doing its job — a failed deployment is the success signal here.
Verify: The creation is blocked with a policy denial error.
Troubleshooting: If the deployment succeeds anyway, the assignment may not have propagated yet — wait 5 more minutes and retry. Do not proceed until you see the denial.
Step 7. Now follow the rule: create the storage account again in rg-policy-lab, this time in East US, with a globally unique lowercase name starting with 'policylab' and SKU Standard_LRS. Create it.
Expected result: The storage account is created successfully in East US.
Verify: The storage account appears inside rg-policy-lab.
Troubleshooting: If the name is taken, add random digits — storage account names must be globally unique, 3–24 lowercase letters and numbers.
Step 8. Tag both levels. Open rg-policy-lab → 'Tags' in the left menu → add environment=learning and owner=<your name> → Apply. Then open the storage account → 'Tags' → add the same two tags → Apply.
Expected result: Tags are saved and shown on both the resource group and the storage account overviews.
Verify: The Tags blade of each shows both name/value pairs.
Step 9. Go back to Policy → 'Compliance'. Select your subscription scope if needed, and open the assignment 'policy-lab-allowed-locations'. Read the compliant vs non-compliant counts.
Expected result: The compliance page lists your assignment and shows 1 compliant resource (the East US storage account) and 0 non-compliant.
Verify: You can state the compliant and non-compliant counts for your assignment.
Troubleshooting: Compliance data can take 15–30 minutes to refresh. If the counts look empty, wait and refresh.
Step 10. Search 'Tags' in the portal top search bar and open the 'Tags' service. Select the tag name 'environment' and then the value 'learning' to see every resource carrying that tag.
Expected result: The tag name and its resources are listed.
Verify: Your resource group and storage account both appear under environment=learning.
G. Practical Assignment
In the portal, list three built-in policy definitions whose names contain 'tag' (use the Policy search box). For each, write one sentence saying what it enforces and whether its default effect is Audit, Deny, or something else.
H. Knowledge Assessment
- Q1. A colleague says Azure Policy and Azure RBAC do the same job. How do you correct them?
- A) They are the same thing with different names
- B) Policy controls who can sign in; RBAC controls resource rules
- C) RBAC is free and Policy is a paid feature
- D) RBAC controls who is allowed to act; Policy controls what rules resources must follow
- Q2. You assign the built-in 'Allowed locations' policy with the Deny effect at subscription scope, allowing only eastus. There are already VMs in westus. What happens?
- A) All existing resources outside eastus are deleted immediately
- B) Existing resources are flagged non-compliant, but only new or updated resources are blocked
- C) The subscription is moved to eastus automatically
- D) Existing resources keep running with no compliance impact at all
- Q3. What is an Azure Policy initiative?
- A) A bundle of policy definitions grouped for one compliance goal, assigned as a single unit
- B) A single policy definition written in JSON
- C) A scope where policies are assigned, such as a subscription
- D) A type of budget alert for policy violations
- Q4. Which statement about Azure tags is true?
- A) Tags are automatic system labels you cannot change
- B) A tag can only be a single word with no value
- C) Tags are name/value pairs you attach to resources, used for cost grouping and organization
- D) Tags only work on virtual machines
- Q5. In your own subscription, tag a storage account with costcenter=1001, then describe in your own words where that tag appears in the portal and how you would use it to report costs for cost center 1001.
Answer key & explanations (open after you finish)
- Q1 — Answer: D. RBAC answers 'who can do what' (permissions); Policy answers 'what rules must resources follow' (compliance). One controls people, the other controls resources.
- Q2 — Answer: B. Deny applies to new deployments and updates — the portal blocks the request. Existing non-compliant resources are flagged in the compliance dashboard, never deleted. Policy never destroys what already exists.
- Q3 — Answer: A. An initiative bundles multiple policy definitions under one assignment — for example a regulatory standard like ISO 27001. A single definition is one rule; a scope is where an assignment applies; an alert is a notification, not a policy concept.
- Q4 — Answer: C. Tags are arbitrary name/value pairs (up to 50 per resource) you attach to resources, resource groups, or subscriptions. They are the standard way to group costs by project, team, or environment in Cost Analysis.
- Q5 — Answer: A correct answer shows the tag name costcenter=1001 on the storage account's Tags blade, plus the description that tags appear under the tag name in the portal 'Tags' service and become a 'Group by: Tag' option in Cost Analysis once cost data refreshes.. This proves you can apply a real tag in the portal and know where tags surface: the resource overview, the Tags service, and Cost Analysis grouping.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 21 — Azure CLI and PowerShell Hands-On Automation60–90 minutes
A. Day 21 — Azure CLI and PowerShell Hands-On Automation
Estimated duration: 60–90 minutes
B. Learning Objectives
- Open Azure Cloud Shell and confirm your signed-in subscription with az account show
- Create a resource group and a storage account using Azure CLI commands
- Switch Cloud Shell to PowerShell and manage the same resources with Az cmdlets
- Explain when to prefer the CLI (JSON output, cross-platform scripts) vs PowerShell (objects, Verb-Noun cmdlets)
- Delete a resource group from the terminal and verify it is gone
C. Prerequisites
- Azure free account (created on Day 1)
- Days 1–20 completed, or comfort with resource groups and storage accounts in the portal
D. Concepts Explained Simply
So far you have driven Azure with a steering wheel — the portal, clicking one screen at a time. Today you switch to autopilot scripts. Automation means writing instructions once and running them a hundred times, identically. When you can create ten identical environments with one command, you stop making the small manual mistakes that cause outages and surprise bills.
Azure gives you two command-line tools that both talk to the same engine, Azure Resource Manager (ARM), the management layer that creates, updates, and deletes everything. The Azure CLI (Command-Line Interface) is a cross-platform tool with short commands like az group create; it prints JSON (JavaScript Object Notation) text that is easy to read and filter. Azure PowerShell is a set of cmdlets (pronounced 'command-lets', small single-purpose commands) with a Verb-Noun pattern like New-AzResourceGroup; it returns .NET objects you can filter, sort, and pipe into other commands.
You do not need to install anything today. Azure Cloud Shell is a browser-based terminal built into the portal: it comes pre-authenticated to your subscription with the CLI, PowerShell, Bicep, and Git already installed, and it keeps a small persistent storage drive for your files. The first time you open it, it asks you to create a storage account for that drive — that storage is part of the free tier and costs essentially nothing.
One safety rule before you type anything that creates or deletes: always check where you are signed in first — az account show in the CLI or Get-AzContext in PowerShell. And never paste passwords or keys into scripts or chat windows; the workshop's standing rule is interactive sign-in and Key Vault patterns only. Portal screens and CLI versions change over time — if a command's output looks slightly different, the parameters and ideas are the same.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Install the Azure CLI | Documentation | https://learn.microsoft.com/en-us/cli/azure/install-azure-cli Verified | Install the CLI on your own computer later so you can script without the portal | 15 min |
| What is Azure Cloud Shell | Documentation | https://learn.microsoft.com/en-us/azure/cloud-shell/overview Verified | How Cloud Shell works, its persistent storage, and Bash vs PowerShell environments | 10 min |
| Install Azure PowerShell on Windows | Documentation | https://learn.microsoft.com/en-us/powershell/azure/install-azps-windows?view=azps-14.1.0 Verified | Install the Az module locally with Install-Module when you outgrow Cloud Shell | 15 min |
F. Hands-On Workshop
Objective: Create and delete a resource group and a storage account using Azure CLI in Cloud Shell Bash, then read the same resources with Az PowerShell in Cloud Shell.
Prerequisites: Azure free account. A modern browser — no local installs needed.
Step 1. In the portal, select the Cloud Shell icon (>_) in the top toolbar. When asked, choose 'Bash'. If this is your first time, accept the prompt to create a storage account for Cloud Shell persistence.
Expected result: A terminal panel opens at the bottom of the portal. First launch asks you to create a storage account for Cloud Shell files — accept the defaults.
Verify: You see a Bash prompt like 'user@Azure:~$' in the terminal.
Troubleshooting: If Cloud Shell fails to start, sign out and back in to the portal, then retry. It needs a fresh authentication token.
Step 2. Run 'az version' to confirm the CLI works, then run 'az account show'. Read the 'name' and 'id' fields — this is the subscription every command below will act on.
Expected result: Version info and your subscription details: name, id, tenantId, and 'state: Enabled'.
Verify: The subscription name matches your free Azure account.
Troubleshooting: If you have multiple subscriptions, run 'az account set --subscription <subscription-id>' with the ID from the output to select your free subscription explicitly.
Step 3. Create a lab resource group: az group create --name rg-cli-lab --location eastus. The --name flag sets the name; --location sets the Azure region.
Expected result: JSON output showing the new group with provisioningState 'Succeeded'.
Verify: The output's provisioningState is 'Succeeded'.
Troubleshooting: Names must be 1–90 characters. If you get an authorization error, your sign-in expired — run 'az login' and follow the browser prompts.
Step 4. Run 'az group list --output table' to see all your resource groups as a simple table. Notice --output table changes the JSON into readable columns.
Expected result: A table listing rg-cli-lab and any other groups in your subscription.
Verify: rg-cli-lab appears as a row in the table.
Step 5. Create a storage account: az storage account create --name clilab<random-digits> --resource-group rg-cli-lab --location eastus --sku Standard_LRS. Replace <random-digits> with 6 digits (for example clilab482913). Storage names must be globally unique, 3–24 lowercase letters and numbers.
Expected result: JSON output ending with provisioningState 'Succeeded'. The storage account now exists.
Verify: The command completes with provisioningState 'Succeeded'.
Troubleshooting: 'StorageAccountAlreadyTaken' means someone else has that name — change the digits and retry. Do not reuse a name from an earlier lab.
Step 6. Read it back: az storage account show --name clilab<your-digits> --resource-group rg-cli-lab --output table. This proves create and read both work from the terminal.
Expected result: The account details print, confirming the CLI created it.
Verify: You see the storage account's name, location, and SKU in the table.
Step 7. Switch languages: in the Cloud Shell toolbar, change the environment dropdown from 'Bash' to 'PowerShell'. Confirm the restart when prompted. You are still signed in to the same subscription.
Expected result: The terminal restarts in PowerShell mode with a 'PS' prompt.
Verify: The prompt changes to 'PS /home/user>'.
Step 8. Run 'Get-AzContext' to see your current Azure context, then run 'Get-AzResourceGroup' to list resource groups — the PowerShell twin of 'az group list'.
Expected result: Your subscription context prints, matching what 'az account show' showed in Bash.
Verify: rg-cli-lab appears in the Get-AzResourceGroup output.
Troubleshooting: If Get-AzContext shows a different subscription, run 'Set-AzContext -SubscriptionId <your-id>'.
Step 9. Read the CLI-created storage account with PowerShell: Get-AzStorageAccount -ResourceGroupName rg-cli-lab. Same resource, different tool — that is the whole point of today.
Expected result: The storage account details print, showing the account the CLI created.
Verify: Your clilab storage account appears in the output.
Troubleshooting: Cmdlet names are Verb-Noun with the Az prefix: Get-AzStorageAccount, not Get-StorageAccount.
Step 10. Switch back to Bash in the Cloud Shell dropdown. Delete everything with one command: az group delete --name rg-cli-lab --yes. Deleting the group deletes the storage account inside it.
Expected result: No output — in Bash, a successful delete is silent.
Verify: Run 'az group list --output table' and confirm rg-cli-lab is no longer listed.
Troubleshooting: The command may take a minute. Do not close Cloud Shell until the prompt returns.
G. Practical Assignment
In Cloud Shell Bash, run 'az account list --output table' and write down how many subscriptions you have and which one is marked as the default (IsDefault=true). Then run 'az account set --subscription' with your subscription ID to practice selecting it explicitly.
H. Knowledge Assessment
- Q1. Before running a script that creates resources, which Azure CLI command tells you exactly which subscription you are signed in to?
- A) az subscription new
- B) az account show
- C) az group list
- D) az login --check
- Q2. Which is the correct Az PowerShell cmdlet to create a resource group?
- A) New-AzResourceGroup
- B) az group create
- C) Create-AzResourceGroup
- D) New-ResourceGroup
- Q3. What is the practical difference between Azure CLI output and Az PowerShell output?
- A) The CLI only works on Linux and PowerShell only on Windows
- B) The CLI is free but PowerShell requires a license
- C) The CLI returns JSON text; PowerShell returns objects you can filter and pipe
- D) They manage completely different sets of Azure resources
- Q4. Why does this workshop use Azure Cloud Shell for the automation labs?
- A) It is pre-authenticated and has the CLI, PowerShell, Bicep, and Git already installed
- B) It is the only place Azure CLI commands work
- C) It automatically deletes resources after one hour
- D) It gives you a free virtual machine with admin access
- Q5. Write the exact command (your choice: Azure CLI or Az PowerShell) that lists all resource groups in your subscription in a simple table, and say which tool you used.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. 'az account show' prints the subscription you are currently signed in to. Running it before any script that creates or deletes resources is the cheapest safety habit in cloud automation.
- Q2 — Answer: A. Az PowerShell cmdlets follow the Verb-Noun pattern: New-AzResourceGroup creates a resource group. Get- reads, Remove- deletes, Set- updates.
- Q3 — Answer: C. The CLI prints JSON text you parse with queries; PowerShell returns .NET objects you can filter and pipe (Get-AzResourceGroup | Where-Object). Same Azure underneath, different handling on your side.
- Q4 — Answer: A. Cloud Shell runs in the browser with the CLI, PowerShell, Bicep, Git, and your credentials pre-installed — nothing to install locally. It is the fastest zero-setup path for this workshop.
- Q5 — Answer: CLI: az group list --output table. PowerShell: Get-AzResourceGroup (or Get-AzResourceGroup | Format-Table Name, Location). Both commands list the same resource groups, proving the two tools manage the same Azure.. The point of the question is that both tools talk to the same Azure Resource Manager — the tool is a choice, the cloud is the same.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Weekly Review — Week 3 Review - Security, Monitoring, Cost, and Automation
Week 3 covered Key Vault, monitoring and KQL, backup, cost management, policy, and the Azure CLI. Ten questions to close out the week.
- Q1. Azure Key Vault is used to store:
- A) Virtual machine images
- B) Secrets, keys, and certificates so applications never hardcode credentials
- C) DNS records
- D) Billing invoices
- Q2. A system-assigned managed identity lets your app:
- A) Log in as the subscription owner
- B) Authenticate to Azure services like Key Vault without storing any password or key
- C) Create new Azure subscriptions
- D) Bypass network firewalls
- Q3. In Azure Monitor, metrics are best described as:
- A) Detailed text records of events
- B) Numeric time-series values, such as CPU percentage, used for dashboards and alerts
- C) Billing invoices
- D) Backup files
- Q4. KQL (Kusto Query Language) is used to:
- A) Deploy virtual machines
- B) Query and analyze log data in Log Analytics
- C) Create user accounts
- D) Configure DNS zones
- Q5. In a KQL query, the operator that filters rows is:
- A) summarize
- B) where
- C) project
- D) take
- Q6. Azure Backup is designed to:
- A) Speed up virtual machines
- B) Protect VMs, databases, and file shares and restore them to a point in time
- C) Monitor network traffic
- D) Assign RBAC roles
- Q7. True or false: creating a budget in Cost Management automatically stops your spending when the budget is reached.
- A) True
- B) False
- Q8. Azure Policy is used to:
- A) Enforce organizational rules, such as allowed regions or required tags, across resources
- B) Write application code
- C) Create virtual networks
- D) Reset user passwords
- Q9. Which Azure CLI command lists all resource groups in the current subscription?
- A) az group show
- B) az group list
- C) az resource list
- D) az account list
- Q10. Tags on Azure resources are useful for:
- A) Increasing resource performance
- B) Organizing resources and tracking costs by owner, project, or environment
- C) Encrypting data at rest
- D) Creating automatic backups
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Key Vault is the managed vault for passwords, API keys, connection strings, certificates, and encryption keys, with full audit logging.
- Q2 — Answer: B. The managed identity is an Entra ID identity tied to the Azure resource. Azure handles the credential automatically, so there is nothing to leak or rotate.
- Q3 — Answer: B. Metrics are numbers over time (CPU, request count, disk IOPS). They are cheap to store and ideal for charts and threshold alerts. Logs carry the details.
- Q4 — Answer: B. KQL is the read-only query language for Log Analytics and Application Insights. You write queries like: requests | where success == false.
- Q5 — Answer: B. where keeps only rows matching a condition. summarize aggregates, project picks columns, take returns the first N rows.
- Q6 — Answer: B. Azure Backup stores recovery points in a Recovery Services vault so you can restore files, disks, databases, or whole VMs after deletion, corruption, or ransomware.
- Q7 — Answer: B. False. Budgets send alerts (email or action group) when thresholds are crossed, but they do NOT stop resources or cap spending. This is the single most misunderstood cost concept.
- Q8 — Answer: A. Policy evaluates resources against rules (allowed SKUs, required tags, allowed locations) and can deny non-compliant deployments. RBAC controls WHO can act; Policy controls WHAT is allowed.
- Q9 — Answer: B. az group list returns every resource group. az group show needs a --name. az account list shows subscriptions, not resource groups.
- Q10 — Answer: B. Tags are name/value labels (for example, env=prod, owner=team-a). Cost Management can group spending by tag, which is how teams answer who spent what.
Day 22 — Infrastructure as Code Concepts and Introduction to Bicep60–90 minutes
A. Day 22 — Infrastructure as Code Concepts and Introduction to Bicep
Estimated duration: 60–90 minutes
B. Learning Objectives
- Define Infrastructure as Code and explain declarative vs imperative approaches
- Describe what Bicep is, what a DSL is, and how Bicep relates to ARM templates
- Read a Bicep file and identify params, resources, and outputs
- Compile a Bicep file to ARM JSON with az bicep build
- Validate a Bicep template against Azure without deploying anything
C. Prerequisites
- Azure free account (created on Day 1)
- Day 21 completed — you are comfortable in Cloud Shell Bash
D. Concepts Explained Simply
Imagine you build furniture two ways. The imperative way is a friend on the phone telling you each step: 'pick up screw A, turn it clockwise, now pick up panel B…' — if you miss one step, the chair wobbles. The declarative way is handing a factory a blueprint: 'a chair, oak, these dimensions.' The factory figures out the steps, and every chair comes out identical. Infrastructure as Code (IaC) is the blueprint approach for cloud resources: you write a file describing what you want, and the cloud builds it the same way every time.
Why does this matter? Three reasons. Repeatability: the tenth deployment looks exactly like the first. Reviewability: a blueprint is a file, so teammates can review it like code before anything is built. Recoverability: if a resource is accidentally deleted, you redeploy the same file and get it back. Manual clicking in the portal gives you none of these.
Bicep is Microsoft's IaC language for Azure — a DSL (Domain-Specific Language), meaning a small language built for one job: describing Azure resources. It uses declarative syntax. A Bicep file has params (values supplied at deployment time, like a name), vars (values computed inside the file), resources (the Azure things to create, each with a type like Microsoft.Storage/storageAccounts and an API version), and outputs (values the deployment hands back to you, like a resource ID). Behind the scenes, Bicep compiles — transpiles — into a standard ARM (Azure Resource Manager) template in JSON, which is what Azure actually executes.
Two habits start today and never stop: keep infrastructure files in version control (Git — Day 24), and validate before you deploy. Today you only author and validate a Bicep file — nothing is deployed to Azure, so today costs nothing. Tomorrow, on Day 23, you deploy it for real.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Bicep documentation | Documentation | https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/ Verified | The hub page: what Bicep is, install guides, authoring references, and deployment how-tos | 20 min |
| Fundamentals of Bicep learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/fundamentals-bicep/ Verified | Free Microsoft Learn path that goes deeper: parameters, conditions, loops, and modules | 60 min |
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Browse further Azure learning paths after this workshop | 10 min |
F. Hands-On Workshop
Objective: Install the Bicep CLI, write a Bicep file that declares a storage account, compile it to ARM JSON, and validate it against a resource group without deploying.
Prerequisites: Azure free account. Cloud Shell Bash from Day 21 — Bicep CLI installs on demand through the Azure CLI.
Step 1. Open Cloud Shell in Bash. Check the Bicep tooling: run 'az bicep version'. If it is not installed, run 'az bicep install' and then check the version again.
Expected result: The Bicep version prints, e.g. 'Bicep CLI version 0.x.x'.
Verify: A Bicep CLI version number is displayed.
Troubleshooting: If the install is slow, wait — it downloads the Bicep binary on first use only.
Step 2. Create a working folder: mkdir bicep-lab && cd bicep-lab. Everything for Days 22–23 lives here.
Expected result: A folder named bicep-lab exists in your Cloud Shell home directory.
Verify: Running 'pwd' shows a path ending in bicep-lab.
Step 3. Open the editor: run 'code main.bicep'. Cloud Shell opens an in-browser editor for the new file.
Expected result: A file named main.bicep opens in the Cloud Shell editor.
Verify: You see an empty editor tab titled main.bicep.
Troubleshooting: If 'code' does nothing, type it once more after a few seconds — the editor sometimes needs a moment to load.
Step 4. Type (do not paste blindly — read each line) the following Bicep file, then save (Ctrl+S or the editor's save): param location string = resourceGroup().location param storageAccountName string = 'st${uniqueString(resourceGroup().id)}' resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = { name: storageAccountName location: location sku: { name: 'Standard_LRS' } kind: 'StorageV2' } output storageAccountId string = storageAccount.id Read it once more: two params, one resource (a storage account), one output (its ID).
Expected result: The file saves with the param, resource, and output blocks.
Verify: The file contains the words param, resource, and output.
Troubleshooting: Bicep is indentation-sensitive in blocks. If you get a syntax error later, compare your braces { } line by line.
Step 5. Compile the file: az bicep build --file main.bicep. This transpiles your Bicep into ARM JSON locally. Nothing is sent to Azure.
Expected result: A new file main.json appears in the folder — this is the compiled ARM template.
Verify: 'ls' shows both main.bicep and main.json.
Troubleshooting: A syntax error here points at a line number — fix the Bicep and rebuild.
Step 6. Open main.json and search for 'Microsoft.Storage/storageAccounts'. Compare the JSON block with your Bicep resource block — same information, far more verbose. This is why Bicep exists.
Expected result: You find a 'resources' array containing one entry of type Microsoft.Storage/storageAccounts.
Verify: You can point to the storage account resource inside the JSON.
Step 7. Validate without deploying. First create an empty group: az group create --name rg-bicep-lab --location eastus. Then run: az deployment group validate --resource-group rg-bicep-lab --template-file main.bicep. Validation checks the template against Azure rules but creates nothing.
Expected result: The validate command returns without errors (it may print warnings about the unused location param default — that is fine).
Verify: The validate command completes with no error output.
Troubleshooting: 'ResourceGroupNotFound' means the group creation did not finish — wait a few seconds and retry the validate command.
Step 8. Experiment safely: change the sku name in main.bicep from 'Standard_LRS' to 'Standard_GRS', rebuild, and notice the JSON changes. Then change it back to 'Standard_LRS' and rebuild once more. You are practicing the edit-build loop with zero risk.
Expected result: 'az bicep build' shows no errors, and you can explain what changed in main.json.
Verify: main.json reflects the SKU you currently have in main.bicep.
G. Practical Assignment
Modify your main.bicep: add a second parameter 'skuName' with default 'Standard_LRS', and use it in the resource's sku block instead of the hard-coded value. Rebuild with 'az bicep build' and confirm the JSON changed. (No deployment — this stays free.)
H. Knowledge Assessment
- Q1. What does 'declarative' mean in Infrastructure as Code?
- A) You declare each step in order, one command at a time
- B) You describe the desired end state and let the engine figure out the steps
- C) You declare your budget before deploying anything
- D) It means the code is written in a compiled language like C#
- Q2. When you deploy a Bicep file, what does it get compiled into behind the scenes?
- A) Python bytecode
- B) A SQL database script
- C) A standard ARM template in JSON
- D) A Docker container image
- Q3. In a Bicep file, what is the difference between a param and a var?
- A) Parameters are secret and variables are public
- B) Parameters are supplied at deployment time; variables are computed inside the file
- C) They are identical — two names for the same thing
- D) Variables can only hold numbers
- Q4. What does 'az bicep build --file main.bicep' do?
- A) It deploys the file to Azure immediately
- B) It deletes the resource group
- C) It uploads the file to a storage account
- D) It compiles the .bicep file to ARM JSON locally without touching Azure
- Q5. A teammate sends you this Bicep snippet: param storageName string resource st 'Microsoft.Storage/storageAccounts@2023-05-01' = { name: storageName location: 'eastus' sku: { name: 'Standard_LRS' } kind: 'StorageV2' } In your own words: what resource type does it declare, which value must you supply at deployment time, and how many resources will exist in Azure after it deploys?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Declarative IaC describes the desired end state ('I want a storage account with these settings') and lets the engine figure out the steps. Imperative scripts list the steps ('run this, then that'). Bicep and ARM templates are declarative; CLI scripts are imperative.
- Q2 — Answer: C. Bicep files compile (transpile) to standard ARM template JSON, which is what Azure Resource Manager actually executes. Bicep is the friendlier authoring language on top of the same engine.
- Q3 — Answer: B. A parameter is supplied at deployment time (with defaults and descriptions); a variable is computed inside the file from other values. Parameters make templates reusable across environments; variables keep the file tidy.
- Q4 — Answer: D. 'az bicep build' only compiles the .bicep file to .json locally — it creates nothing in Azure. It is the safe, zero-cost way to check your syntax before you ever deploy.
- Q5 — Answer: The answer names the resource type 'Microsoft.Storage/storageAccounts', the parameter storageName (or notes that storageName is the parameter controlling the name), and states that the deployment creates exactly one storage account in the target resource group — nothing else.. Reading a template means identifying three things: which resource types it declares, which values are parameterized, and what will exist after deployment. That is the skill this practical question checks.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 23 — Deploy Azure Resources Using a Bicep Template60–90 minutes
A. Day 23 — Deploy Azure Resources Using a Bicep Template
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain what a deployment is and what the what-if operation previews
- Deploy a Bicep file to a resource group with az deployment group create
- Pass values to parameters and read deployment outputs
- Redeploy an edited template and explain why the resource is updated, not duplicated
- Describe Incremental vs Complete deployment modes and why this workshop uses Incremental
C. Prerequisites
- Azure free account (created on Day 1)
- Day 22 completed — main.bicep exists in Cloud Shell ~/bicep-lab
D. Concepts Explained Simply
Yesterday you wrote the blueprint and checked it without building anything. Today you hand the blueprint to the factory. A deployment is one execution of a template against Azure: Azure Resource Manager reads your Bicep file (compiled to an ARM template), compares it with what already exists, and makes reality match the file.
Before any real deployment, professionals run a rehearsal called what-if. It lists every change the deployment would make — which resources would be created, modified, or deleted — without changing anything. Think of it as the 'preview changes' button before you hit 'publish'. If the what-if shows a Delete you did not expect, you stop and fix the template.
Deployments are idempotent: running the same template twice does not create two of everything. ARM identifies each resource by its type and name, so the second run simply confirms 'already correct' and changes nothing. That is why editing a template and redeploying is the normal way to update infrastructure — you never hand-edit the resource in the portal and hope it matches the file.
Deployments run in a mode. The default is Incremental: create or update what is in the template, leave everything else in the resource group alone. Complete mode deletes anything in the resource group that is not in the template — powerful, and dangerous if you did not mean it. This workshop uses Incremental only.
The lab deploys one storage account — the same file from Day 22 — and deletes it at the end. Portal screens, prices, and CLI output formats can change over time; the commands and concepts stay the same.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Fundamentals of Bicep learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/fundamentals-bicep/ Verified | Deeper Bicep skills after today: parameters, conditions, loops, modules | 60 min |
| Quickstart: Deploy a container instance in Azure using Bicep | Documentation | https://learn.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-bicep Verified | A second real example of the full Bicep workflow: review file, deploy with CLI, verify, clean up | 20 min |
| Bicep documentation | Documentation | https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/ Verified | Reference for deployment options: Azure CLI, PowerShell, Cloud Shell, and what-if | 15 min |
F. Hands-On Workshop
Objective: Preview with what-if, deploy a Bicep template that creates a storage account, verify outputs in the portal, redeploy a change, and delete the resource group.
Prerequisites: Azure free account. main.bicep from Day 22 in Cloud Shell (~/bicep-lab). If you lost it, recreate it from the file printed in step 2.
Step 1. Open Cloud Shell in Bash and confirm your context: run 'az account show' and check the subscription name. Then run 'cd ~/bicep-lab && ls' and confirm main.bicep is there.
Expected result: You see your subscription details, and the prompt returns to ~/bicep-lab with main.bicep present.
Verify: 'az account show' names your free subscription and main.bicep is listed.
Troubleshooting: If main.bicep is missing, recreate it with 'code main.bicep' using the file from Day 22, step 4 (two params, one storage account resource, one output).
Step 2. Create the deployment target: az group create --name rg-bicep-deploy --location eastus. Deployments at 'group' scope always need a resource group to deploy into.
Expected result: JSON output with provisioningState 'Succeeded' for the empty group.
Verify: The group appears in 'az group list --output table'.
Step 3. Rehearse first: az deployment group what-if --resource-group rg-bicep-deploy --template-file main.bicep. Read the summary carefully — every change should be a Create, nothing should be a Delete.
Expected result: A what-if summary listing one planned change: Create Microsoft.Storage/storageAccounts/<your-name>. No Delete operations.
Verify: The what-if output shows exactly one Create and zero Deletes.
Troubleshooting: If what-if reports errors, fix main.bicep and rebuild with 'az bicep build' first (Day 22, step 5).
Step 4. Deploy for real: az deployment group create --name day23-deploy --resource-group rg-bicep-deploy --template-file main.bicep. The --name flag names the deployment record (visible in the portal under Deployments).
Expected result: Long JSON output ending with 'provisioningState': 'Succeeded'.
Verify: provisioningState is 'Succeeded' in the output.
Troubleshooting: 'StorageAccountAlreadyTaken': the generated name collided — edit the storageAccountName default to add digits, rebuild, and retry. 'InvalidTemplateDeployment': read the inner error message, it names the bad property.
Step 5. Find the outputs: in the deployment JSON, search for 'outputs'. Note the storageAccountId value — this is the output block from your Bicep file coming back to you.
Expected result: A storage account ID path like /subscriptions/.../storageAccounts/st....
Verify: You can copy the storage account ID from the deployment output.
Troubleshooting: If outputs are empty, your Bicep output block may be missing — add 'output storageAccountId string = storageAccount.id', rebuild, redeploy.
Step 6. Verify in the portal: search 'Resource groups' → open rg-bicep-deploy → select the storage account. Confirm location, SKU, and kind match what the template declared.
Expected result: The storage account page shows East US, Standard_LRS, StorageV2 kind — matching your Bicep file exactly.
Verify: Portal values match the Bicep file's declared values.
Step 7. In rg-bicep-deploy, select 'Deployments' in the left menu and open 'day23-deploy'. This is Azure's receipt: template used, parameters, duration, and outputs.
Expected result: The deployment appears with status Succeeded and timestamp.
Verify: You can open the deployment and see its inputs and outputs.
Step 8. Make a safe change: in main.bicep, add a tags block to the storage account resource: tags: { environment: 'learning' }. Rebuild ('az bicep build --file main.bicep'), run what-if again — confirm it shows a Modify — then redeploy with the same create command.
Expected result: What-if shows Modify (not Create, not Delete) on the storage account. The redeploy succeeds.
Verify: The portal storage account now shows the tag environment=learning, and there is still exactly one storage account.
Troubleshooting: If what-if shows Delete, stop: you likely changed the resource name. Restore the name and retry.
Step 9. Cleanup: delete the whole lab with one command: az group delete --name rg-bicep-deploy --yes. Wait for the prompt to return, then verify with 'az group list --output table'.
Expected result: The resource group disappears from the portal list within a few minutes.
Verify: rg-bicep-deploy no longer appears in the group list.
Troubleshooting: Deletion takes a minute or two. Do not start Day 24's Git work until the group is confirmed gone.
G. Practical Assignment
Add a second resource to main.bicep: a blob container is a child resource and slightly advanced, so instead add tags to the storage account (tags: { environment: 'learning' }). Run what-if first to confirm it shows an update (not a delete), then redeploy and verify the tag in the portal.
H. Knowledge Assessment
- Q1. What does 'az deployment group what-if' do?
- A) It deletes the resource group as a test
- B) It deploys the template to a temporary sandbox subscription
- C) It previews which resources would be created, modified, or deleted — without changing anything
- D) It estimates the monthly cost of the deployment
- Q2. You deploy main.bicep twice in a row with no changes. What happens on the second deployment?
- A) A second storage account is created with a new name
- B) The existing storage account is updated in place; no duplicate is created
- C) The deployment fails because the resource already exists
- D) The resource group is deleted and recreated
- Q3. By default, in which mode does 'az deployment group create' run?
- A) Complete mode — everything not in the template is deleted
- B) Incremental mode — template resources are created or updated, and anything else in the group is left alone
- C) Audit mode — the deployment only reports compliance
- D) Deny mode — the deployment is blocked
- Q4. Your deployment fails with 'StorageAccountAlreadyTaken'. What is the cause and the fix?
- A) The name is already taken by someone else — choose a different globally unique name
- B) Your subscription is out of storage quota — request a quota increase
- C) Bicep is not installed — run az bicep install
- D) The resource group is in the wrong region
- Q5. Write the three commands, in order, that (1) preview what main.bicep would change in rg-bicep-deploy, (2) actually deploy it, and (3) delete everything the lab created.
Answer key & explanations (open after you finish)
- Q1 — Answer: C. What-if previews the create/update/delete operations a deployment would perform, without changing anything. It is the safe rehearsal before the real deployment — always run it when a template changes.
- Q2 — Answer: B. ARM matches resources by type and name. Redeploying updates the existing resource in place instead of duplicating it — this idempotency is what makes IaC safe to re-run.
- Q3 — Answer: B. The default mode is Incremental: resources in the template are created or updated, and anything already in the group that is not in the template is left alone. (Complete mode would delete those extras — never use it by accident.)
- Q4 — Answer: A. Storage account names are globally unique across all of Azure. 'StorageAccountAlreadyTaken' means another customer owns that name — change the name (adding digits or using uniqueString) and redeploy.
- Q5 — Answer: az deployment group what-if --resource-group rg-bicep-deploy --template-file main.bicep → review the planned changes. az deployment group create --name day23-deploy --resource-group rg-bicep-deploy --template-file main.bicep → deploy. az group delete --name rg-bicep-deploy --yes → delete everything.. What-if first, deploy second, delete the resource group last. The group deletion is the cleanup that makes the whole lab cost essentially nothing.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 24 — Git and GitHub Fundamentals for Azure Learners60–90 minutes
A. Day 24 — Git and GitHub Fundamentals for Azure Learners
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain the difference between Git (local tool) and GitHub (hosting platform)
- Configure Git identity and initialize a local repository
- Stage and commit files with clear messages, and read git log
- Use .gitignore to keep secrets and local files out of version control
- Push a local repository to GitHub and pull a remote change back down
C. Prerequisites
- Completion of Days 21–23 — main.bicep from Day 22, deployed on Day 23
- A free GitHub account (the lab walks you through using it; create one at github.com beforehand if needed)
D. Concepts Explained Simply
Think of Git as save points in a video game, plus a shared cloud save. Every commit is a save point: a complete snapshot of your project with a message explaining what changed. You can return to any save point, compare two of them, or hand them to a teammate. A project under Git is a repository (often shortened to 'repo') — a folder whose entire history Git tracks.
Git and GitHub are different things, and confusing them is the most common beginner mistake. Git is free software that runs on your computer — no account, no internet needed. GitHub is a website (owned by Microsoft) that hosts Git repositories online, so you get a backup, sharing, and collaboration features like pull requests — a page where proposed changes are reviewed before being merged into the main branch. A copy of a repository on another machine is called a remote, conventionally named origin. You push commits up to the remote and pull other people's commits down; clone downloads a fresh copy of a repository.
Why does an Azure learner care? Everything you made in the last three days — CLI commands, PowerShell scripts, and your main.bicep — is code. Code belongs in Git: version-controlled, backed up, reviewable. Professional Azure teams keep their Bicep and scripts in GitHub and deploy from there. Today you will put your Day 23 Bicep file into your first GitHub repository.
One security rule, non-negotiable: never commit secrets — no passwords, no storage keys, no connection strings. A file named .gitignore lists files Git should skip (like local notes and credential files). And if a secret ever does get pushed, deleting it in the next commit is not enough — it still lives in the history. Treat it as compromised and rotate it immediately. GitHub setup screens change over time; if a button's label differs slightly from this lab, the flow is the same.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Getting started with Git | Documentation | https://docs.github.com/en/get-started/learning-to-code/getting-started-with-git?search-overlay-open=true Verified | GitHub's own walkthrough of repositories, branches, commits, and pull requests | 25 min |
| Connecting to GitHub | Documentation | https://docs.github.com/en/get-started/using-github/connecting-to-github Verified | The ways to work with GitHub repositories: browser, editor, desktop app, or command line | 10 min |
| Git documentation and Pro Git book | Documentation | https://git-scm.com/doc Needs verification | The official Git reference and the free Pro Git book for deeper study | 30 min |
F. Hands-On Workshop
Objective: Install/check Git, configure your identity, create a local repository containing your Bicep file, ignore a secrets file with .gitignore, push to a new GitHub repository, and pull a web edit back down.
Prerequisites: Azure free account not needed for this lab. You need a free GitHub account (create one at github.com if you don't have one) and a terminal — Cloud Shell Bash works and already has Git installed.
Step 1. Open Cloud Shell in Bash (or your local terminal). Run 'git --version'. Cloud Shell includes Git. On your own computer, if Git is missing, install it from the official downloads page for your operating system and re-run the command.
Expected result: A version line like 'git version 2.4x.x'.
Verify: A git version number prints.
Troubleshooting: Local Windows users: install 'Git for Windows' and use its Git Bash terminal. Do not skip configuration in step 2 — commits will fail without an identity.
Step 2. Tell Git who you are (one-time setup): git config --global user.name 'Your Name' and git config --global user.email 'you@example.com'. Use the email on your GitHub account so commits are attributed to you.
Expected result: No output — Git accepts the settings silently.
Verify: 'git config --global --list' shows user.name and user.email.
Troubleshooting: The quotes matter — use single quotes. Run 'git config --global --list' to check both values were saved.
Step 3. Create the project folder: mkdir ~/azure-git-lab && cd ~/azure-git-lab. Initialize Git: git init. Copy your Bicep file in: cp ~/bicep-lab/main.bicep . (If Day 22/23 files are elsewhere, adjust the path.)
Expected result: 'Initialized empty Git repository' message, and 'ls -a' shows a hidden .git folder.
Verify: git status prints 'On branch ... No commits yet' and lists main.bicep as an untracked file.
Troubleshooting: If 'cp' fails with 'no such file', find your file with 'find ~ -name main.bicep' and copy from that path.
Step 4. Create a README: use the editor ('code README.md') and type one line: '# Azure Workshop Files — Bicep templates and scripts from the 30-Day Azure Learning Workshop.' Save the file.
Expected result: A README.md file exists in the folder.
Verify: 'ls' shows README.md and main.bicep.
Step 5. Create a .gitignore so secrets never get committed: run 'code .gitignore' and add two lines: '.env' and 'secrets.txt'. Save. Then create a dummy secrets file to prove it works: echo 'this-is-not-a-real-secret' > .env.
Expected result: git status no longer lists .env — it is invisible to Git now.
Verify: 'git status' lists .gitignore, README.md, and main.bicep — but NOT .env.
Troubleshooting: The file must be named exactly '.gitignore' (leading dot, no extension). If Git still lists .env, check for a typo in the filename.
Step 6. Make your first commit: git add main.bicep README.md .gitignore, then git commit -m 'Add Day 23 Bicep template'. The add step stages files; the commit saves the snapshot with your message.
Expected result: git status reports 'nothing to commit, working tree clean'.
Verify: 'git log --oneline' shows one commit with your message.
Troubleshooting: If commit fails with 'Please tell me who you are', repeat step 2 — the identity config was not saved.
Step 7. Create the GitHub home: sign in to github.com → '+' (top right) → 'New repository'. Name it 'azure-workshop'. Leave it Public or Private (your choice). Do NOT tick 'Add a README file' — your local repo already has commits. Select 'Create repository'.
Expected result: An empty repository page showing a '…push an existing repository from the command line' section with a URL ending in .git.
Verify: You see the repository URL: https://github.com/<your-username>/azure-workshop.
Troubleshooting: If you accidentally added a README on GitHub, the push in the next step will be rejected — delete that repository and recreate it empty.
Step 8. Connect and push: git remote add origin https://github.com/<your-username>/azure-workshop.git, then git branch -M main, then git push -u origin main. Replace <your-username> with your GitHub username. If GitHub asks you to sign in, complete the browser sign-in prompt (Git Credential Manager) — never type your GitHub password into a random script or share it.
Expected result: Git prints 'branch main set up to track origin/main' and the push completes.
Verify: Refresh the GitHub repository page — main.bicep, README.md, and .gitignore are visible.
Troubleshooting: 'Permission denied' almost always means you typed the wrong username in the URL. Check with 'git remote -v' and fix with 'git remote set-url origin <correct-url>'.
Step 9. Make a web edit: on GitHub, open README.md → pencil icon → add a second line: 'Deployed with Azure CLI and Bicep.' → 'Commit changes'. You just committed directly on the remote.
Expected result: The web commit appears in the repository's commit list.
Verify: The README on GitHub shows both lines.
Step 10. Pull the web change down: back in your terminal, run 'git pull'. Watch it download and apply the README change from origin.
Expected result: git log shows two commits, with the web edit on top. Your local README.md now has both lines (check with 'cat README.md').
Verify: 'cat README.md' shows the line you added on the web.
Troubleshooting: If pull complains about local changes, you edited the file locally too — in this controlled lab, run 'git status' and commit your local change first, then pull again.
G. Practical Assignment
Create a second branch in your azure-workshop repository (git checkout -b add-readme-notes), add one line to README.md describing what the workshop is, commit it, push the branch, and open a pull request on GitHub. Read (do not merge yet) the pull request page and describe in your journal what it shows.
H. Knowledge Assessment
- Q1. What is the difference between Git and GitHub?
- A) Git is the version control tool on your computer; GitHub is a website that hosts Git repositories
- B) GitHub is the tool; Git is the website
- C) They are two competing products from the same company
- D) Git only works inside GitHub
- Q2. In the everyday Git workflow, what is the correct order?
- A) commit → add → push
- B) add → commit → push
- C) push → commit → add
- D) clone → push → commit
- Q3. What is a commit?
- A) A backup copy of your whole hard drive
- B) A comment on someone else's code
- C) A snapshot of your project files together with a message describing the change
- D) A folder you can safely delete at any time
- Q4. You realize you committed and pushed an Azure storage access key to GitHub last month. What is the correct first action?
- A) Make a new commit that deletes the secret file — the problem is fixed
- B) Revoke or rotate the credential immediately; it must be treated as compromised
- C) Nothing — private repositories are safe places for credentials
- D) Just rename the file in the next commit
- Q5. Starting from a folder on your computer that contains main.bicep and README.md, write the command sequence to create a local Git repository, commit those files with the message 'Add Day 23 Bicep template', connect it to an empty GitHub repository you already created, and push.
Answer key & explanations (open after you finish)
- Q1 — Answer: A. Git runs locally on your machine and works with no internet connection. GitHub is the website/platform that hosts Git repositories online (owned by Microsoft) for backup, sharing, and pull-request reviews.
- Q2 — Answer: B. Files flow: edit → stage with 'git add' → snapshot with 'git commit' → upload with 'git push'. Reversing stages (push before commit) uploads nothing.
- Q3 — Answer: C. A commit is a snapshot with a message. The commit itself — carrying all changes, metadata, and history position — is what lets you (and teammates) compare versions and roll back.
- Q4 — Answer: B. Secrets already pushed must be treated as breached: revoke/rotate them first, then scrub history with a tool like BFG and force-push. A removal commit alone leaves the secret in history forever.
- Q5 — Answer: git init → git add main.bicep README.md → git commit -m 'Add Day 23 Bicep template' → git remote add origin https://github.com/<username>/azure-workshop.git → git branch -M main → git push -u origin main. The answer should include all five stages in this order (username placeholder acceptable).. This is the exact Day 24 workflow. Init creates the repo, add stages, commit snapshots, remote connects GitHub, push uploads.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 25 — Deployment Workflows and Your First Look at Azure DevOps60–90 minutes
A. Day 25 — Deployment Workflows and Your First Look at Azure DevOps
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain CI (Continuous Integration) and CD (Continuous Delivery) in your own words.
- Describe what Azure DevOps is and name its five main services.
- Connect a GitHub repository to an Azure App Service so code deploys automatically.
- Trigger a real CI/CD redeploy by editing code in GitHub and watching the change go live.
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Days 1-24 — you can create resource groups and navigate the portal
- A free GitHub account (create one at github.com if you do not have one; it takes about five minutes)
D. Concepts Explained Simply
Think of the difference between cooking dinner for one friend and running a restaurant kitchen. Cooking for a friend, you improvise: a pinch of this, taste, adjust, serve. A restaurant cannot work that way. It needs a printed recipe, the same ingredients in the same order, the same timing, every single time — otherwise one customer's meal is perfect and the next is a disaster. Deploying software works the same way. Doing it by hand (copying files to a server yourself) is the home-cooking approach: slow, error-prone, and different every time. An automated deployment workflow is the restaurant kitchen: a fixed recipe that runs the same way on every order.
CI (Continuous Integration) means developers merge their code changes into a shared repository often — usually daily — and every merge automatically triggers a build and a set of tests. Problems surface in minutes, not weeks. CD has two meanings you should know: Continuous Delivery means the software is always in a releasable state and a human presses the final release button; Continuous Deployment goes one step further and releases to users automatically with no human button-press. In this workshop we use the automatic flavor.
A few words you will see everywhere: a pipeline is the automated recipe itself — a sequence of steps (build, test, deploy). An artifact is the packaged output of the build step, the thing that actually gets deployed. A stage (also called an environment) is one stop on the journey, such as dev, test, or production. A deployment slot is a second copy of your web app living beside the live one, so you can test the new version on a staging URL and swap it into production with zero downtime.
Azure DevOps is Microsoft's suite of tools for running this whole process. It has five main services: Boards (plan and track work), Repos (host Git code), Pipelines (build, test, and deploy with CI/CD), Artifacts (store packages), and Test Plans (manual and exploratory testing). You do not need all five today. The one that matters for deployment is Pipelines. Its main rival is GitHub Actions, which does the same CI/CD job from inside GitHub — and that is what we will use in today's lab, because App Service's Deployment Center can wire it up for you in a few clicks.
Two honest notes before we start. First: a budget alert in Azure is an alert, not a spending cap. It sends you an email when spending crosses a threshold, but it does not stop the spending, and the alert itself can be delayed. Set budgets anyway — early warning beats no warning. Second: portal screens, prices, and free-tier limits change over time. If a button has moved since this was written, search the portal for the feature name and you will find it.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Overview of Azure App Service | Documentation | https://learn.microsoft.com/en-us/azure/app-service/overview Verified | Official overview of the App Service platform you will deploy to today, including its CI/CD options | 15 min |
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Free Microsoft modules on Azure fundamentals if you want a second explanation of any concept | 20 min |
| Azure DevOps product overview | Documentation | https://azure.microsoft.com/en-us/products/devops Needs verification | Microsoft's introduction to the five Azure DevOps services described in today's lesson | 15 min |
| Azure-Samples Node.js hello-world app | Tool | https://github.com/Azure-Samples/nodejs-docs-hello-world Needs verification | The small sample web app you will fork on GitHub and deploy in the lab | 5 min |
F. Hands-On Workshop
Objective: Deploy a web app from GitHub to Azure App Service with automatic redeploys on every code change.
Prerequisites: Azure free account; free GitHub account.
Step 1. Sign in to GitHub (create a free account first if needed). Open the Azure-Samples Node.js hello-world repository (linked in today's resources) and click Fork (top-right), then Create fork. You now own a personal copy of the sample app.
Expected result: A new repository appears under your GitHub username with the same files as the sample.
Verify: Your GitHub profile → Repositories shows the forked repo.
Troubleshooting: No Fork button visible means you are not signed in — sign in and try again.
Step 2. In the Azure portal, click Create a resource, search for 'Web App', and click Create. Fill in: Subscription = your free subscription; Resource group = Create new, name it rg-deploy-day25; Name = a globally unique name like myapp-yourinitials-25; Runtime stack = Node 20 LTS; Operating system = Linux; Region = East US (or the region nearest you).
Expected result: The form accepts your entries; the app name shows a green checkmark.
Verify: Green checkmark next to the web app name means it is unique and valid.
Troubleshooting: Name rejected as taken: add more initials or numbers until the checkmark turns green.
Step 3. Under App Service Plan, click Create new. Name it asp-day25, then change the Pricing plan: click Change size (or Explore pricing plans), open the Dev/Test tab, select F1 (Free), and click Select/Apply.
Expected result: The plan summary shows Pricing plan: Free (F1).
Verify: The SKU reads F1 — this keeps the lab free.
Troubleshooting: F1 missing from the list: your subscription may already use its free quota in that region — try a different region.
Step 4. Click Review + create, then Create. Wait for 'Your deployment is complete', then click Go to resource.
Expected result: The web app's Overview blade opens.
Verify: Overview shows the app name, URL, and App Service Plan asp-day25.
Troubleshooting: Deployment failed: click the error, usually a name or region issue — delete the failed attempt and retry step 2.
Step 5. In the left menu under Deployment, click Deployment Center. Set Source to GitHub, then click Authorize and sign in to GitHub when asked, granting Azure App Service access to your repositories.
Expected result: A GitHub authorization window appears; after approving, the portal shows your GitHub account connected.
Verify: The Source dropdown area shows your GitHub username as connected.
Troubleshooting: Popup blocked by the browser: allow popups for portal.azure.com and click Authorize again.
Step 6. Still in Deployment Center: Organization = your GitHub username, Repository = your forked hello-world repo, Branch = main (or master — match whatever branch your fork has). Set Build provider to GitHub Actions, then click Save at the top.
Expected result: A banner says the deployment configuration is being saved; a workflow file is added to your repo.
Verify: In your GitHub fork, check the Actions tab — a workflow run should start within a minute.
Troubleshooting: No workflow appears: confirm the branch name matches your fork's default branch exactly.
Step 7. Watch the workflow: in GitHub, open your repo → Actions tab → click the running workflow. Wait until every step shows a green checkmark (2-5 minutes).
Expected result: All workflow steps succeed (build, deploy).
Verify: Green checkmarks on every step; the deploy step log mentions your app name.
Troubleshooting: A step fails: open its log, read the red error lines — most often a Node version mismatch, fixed by re-saving the Deployment Center settings.
Step 8. Back in the portal, open your web app → Overview → click Browse (or visit the URL). You should see the sample app's welcome page.
Expected result: The hello-world sample page loads in your browser.
Verify: The page title/content matches the sample app, not the Azure default landing page.
Troubleshooting: Still seeing the Azure default page: the deploy may still be finishing — wait 2 minutes and refresh, or restart the app (Overview → Restart).
Step 9. Now the CI/CD magic. In your GitHub fork, open the main page file (for example views/index or the HTML/JS file rendering the title), click the pencil Edit icon, change the heading text to include your name, and click Commit changes.
Expected result: GitHub saves the commit; the Actions tab starts a brand-new workflow run automatically.
Verify: Actions tab shows a new run triggered by your commit — nobody clicked anything in Azure.
Troubleshooting: No new run: make sure you committed to the same branch the Deployment Center is watching.
Step 10. Wait 2-4 minutes for the workflow to finish, then refresh your app URL. Your edited heading should now be live.
Expected result: The live site shows your custom heading text.
Verify: Your name/text appears on the public URL. You just did Continuous Deployment: code change → automatic build → automatic release.
Troubleshooting: Change not visible: hard-refresh (Ctrl+Shift+R), the browser may be showing a cached copy.
G. Practical Assignment
On paper, draw today's deployment flow as boxes and arrows: GitHub repo → GitHub Actions → App Service → browser. Label exactly where CI happens (build + test) and where CD happens (release to users). Keep it — you will reuse this diagram on Day 28.
H. Knowledge Assessment
- Q1. What is the practical difference between Continuous Integration (CI) and Continuous Deployment (CD)?
- A) CI deploys to users; CD only runs tests
- B) CI merges and tests code changes frequently and automatically; CD automatically releases every passing change to users
- C) They are two names for the exact same thing
- D) CI is manual and CD is automatic
- Q2. In a deployment pipeline, what is an artifact?
- A) A bug found during testing
- B) The packaged output of the build step that actually gets deployed
- C) A GitHub username
- D) A type of Azure region
- Q3. Which Azure DevOps service handles CI/CD pipelines?
- A) Boards
- B) Repos
- C) Pipelines
- D) Test Plans
- Q4. What is a deployment slot in App Service?
- A) A second copy of your app (e.g., staging) that you can test and then swap into production with zero downtime
- B) A time window when deployments are allowed
- C) A GitHub Actions billing tier
- D) A firewall rule for deployments
- Q5. Practical: without touching the Azure portal, how would you prove to a colleague that your Day 25 setup is true CI/CD?
Answer key & explanations (open after you finish)
- Q1 — Answer: B. CI is about integrating and validating code early and often; CD takes validated code all the way to users automatically.
- Q2 — Answer: B. The artifact is the build's packaged result (e.g., a zip of the app) — the pipeline deploys the artifact, not raw source files.
- Q3 — Answer: C. Pipelines builds, tests, and deploys. Boards tracks work, Repos hosts code, Artifacts stores packages, Test Plans manages testing.
- Q4 — Answer: A. Slots let you validate the new version on a staging URL first, then swap it live — the safe way to release.
- Q5 — Answer: Make a small text edit to the app in GitHub and commit it, then show that a deployment starts and goes live on its own — the portal is never opened during the release.. The defining test of CI/CD is that a code commit alone triggers the whole build-test-deploy chain with no manual steps.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 26 — Troubleshooting with Logs and Metrics60–90 minutes
A. Day 26 — Troubleshooting with Logs and Metrics
Estimated duration: 60–90 minutes
B. Learning Objectives
- Explain the difference between metrics and logs in your own words.
- Describe what Azure Monitor, Log Analytics, and Application Insights do.
- Read a metrics chart and run a basic KQL query against real log data.
- Create an alert rule that emails you when your app starts failing.
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Days 1-25 — you have deployed a web app before and can create resource groups
D. Concepts Explained Simply
Imagine you are a doctor and your patient is your application. The doctor checks two kinds of information. First, vitals: temperature, blood pressure, heart rate — numbers measured over time that show trends. In Azure, those are metrics: CPU percentage, request counts, failed requests, response times. Second, the doctor reads the patient's diary: timestamped notes like 'felt dizzy at 3pm after lunch.' In Azure, those are logs: individual events with timestamps, such as 'request to /checkout failed with status 500 at 14:32.' Metrics tell you something is wrong; logs tell you what exactly happened. Good troubleshooting uses both.
Azure Monitor is the umbrella service that collects both. Think of it as the hospital's monitoring department. Under it: Log Analytics is the filing cabinet where log data is stored in workspaces, and you search it with KQL (Kusto Query Language) — the librarian's search language, a simple pipeline-style query syntax you will try today. Application Insights is an APM (Application Performance Monitoring) feature of Azure Monitor built for live web apps: it tracks request rates, response times, failure rates, and dependencies automatically.
An alert rule is a smoke detector. It has two parts: a condition (the smoke — e.g., 'more than zero HTTP 500 errors in 5 minutes') and an action group (the alarm bell — e.g., 'email me'). Without alert rules, you only learn about outages from angry users. With them, Azure taps you on the shoulder first.
Professional incident investigation follows the same loop every time: Detect (alert fires or user reports) → Triage (how bad, who is affected, right now) → Investigate (metrics for scope, logs for cause) → Mitigate (stop the bleeding first — restart, roll back, scale) → Learn (blameless review: what broke, what would catch it sooner next time). Memorize this loop; it is the same one used by on-call engineers at every large company.
Cost note: Log Analytics ingestion includes a free allowance (5 GB per month at the time of writing — verify current limits, as pricing and free-tier limits change over time). Today's lab stays inside it. Portal screens may also have moved since this was written; search the portal for the feature name if a button is not where described.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Monitor overview | Documentation | https://learn.microsoft.com/en-us/azure/azure-monitor/overview Verified | Official overview of Azure Monitor: metrics, logs, Log Analytics workspaces, and Application Insights | 20 min |
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Free modules covering monitoring concepts if you want extra practice beyond the lab | 20 min |
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Estimate what Log Analytics ingestion would cost at higher volumes so you understand the free allowance | 10 min |
F. Hands-On Workshop
Objective: Send a web app's logs to Log Analytics, investigate them with KQL, and create an email alert for failures.
Prerequisites: Azure free account. You will recreate a small web app (Day 25's was deleted in cleanup).
Step 1. Create a resource group: Portal → search 'Resource groups' → + Create → name it rg-monitor-day26 → pick your usual region → Review + create → Create.
Expected result: The resource group is created.
Verify: It appears in the resource groups list.
Step 2. Create the Log Analytics workspace: Portal → search 'Log Analytics workspaces' → + Create → resource group rg-monitor-day26, name law-day26, region matching your resource group → Review + create → Create. (Pricing tier defaults are fine — you will stay inside the free ingestion allowance.)
Expected result: Deployment completes; the workspace opens.
Verify: Overview shows the workspace name and region.
Troubleshooting: Name rejected: workspace names must be unique-ish — add your initials.
Step 3. Create a web app in rg-monitor-day26 exactly as on Day 25 (Create a resource → Web App → Node 20 LTS, Linux, new Free F1 plan named asp-day26). You do NOT need the GitHub deployment wiring today — the default app is enough to generate logs.
Expected result: Web app created and running.
Verify: Overview → Browse shows the default app page.
Troubleshooting: Browse shows an error page right after creation: wait 1-2 minutes and refresh; new apps need a moment.
Step 4. Send the app's logs to your workspace: open the web app → left menu under Monitoring → Diagnostic settings → + Add diagnostic setting. Name it send-to-law. Under Logs, check AppServiceHTTPLogs and AppServiceAppLogs. Under Destination details, select 'Send to Log Analytics workspace' and pick law-day26. Click Save.
Expected result: The diagnostic setting is saved and listed.
Verify: Diagnostic settings shows send-to-law with the two log categories checked.
Troubleshooting: Save fails: make sure the workspace is in the same region as the app, then retry.
Step 5. Also turn on application logging: in the web app → left menu under Monitoring → App Service logs → Application logging (Filesystem) → On, Level = Information → Save.
Expected result: Setting saved.
Verify: The toggle reads On.
Step 6. Generate traffic: open the app URL in a browser, refresh 5-10 times, then visit a nonsense page like https://yourappname.azurewebsites.net/this-page-does-not-exist to create some 404 errors. (Replace yourappname with your app's name.)
Expected result: Pages load; the bad URL shows a 404.
Verify: You see normal pages and one 404 — that 404 is now evidence in your logs.
Step 7. Wait 5-10 minutes (log delivery is not instant), then open the web app → Monitoring → Metrics. Set Metric to 'Requests', Aggregation to Sum, and look at the chart. Try adding a second metric: 'Http 4xx'.
Expected result: The chart shows your recent requests as a line or bars, including the 404s under Http 4xx.
Verify: The chart is not flat/empty — it reflects the traffic you generated.
Troubleshooting: Chart empty: wait a few more minutes and widen the time range to 'Past 1 hour'.
Step 8. Now query the raw logs: web app → Monitoring → Logs → close any pop-up queries. In the query box, type exactly: AppServiceHTTPLogs | where TimeGenerated > ago(1h) | summarize Requests = count() by ScStatus | order by Requests desc Then click Run.
Expected result: A results table appears showing status codes (200, 404, ...) and their counts.
Verify: You see at least one row for 200 and one row for 404.
Troubleshooting: No results: the #1 cause is impatience — logs can take 10-15 minutes to arrive. Also confirm the time range (top-right) covers the last hour and that step 4's diagnostic setting saved.
Step 9. Create the smoke detector: web app → Monitoring → Alerts → + Create → Alert rule. Under Condition, click 'See all signals', search for and select 'Http 5xx'. Set: Aggregation = Total, Operator = Greater than, Threshold = 0, check period and window = 5 minutes. Click Next.
Expected result: The condition summary reads roughly 'Total Http 5xx > 0 over last 5 minutes'.
Verify: The condition preview shows your threshold logic.
Troubleshooting: Http 5xx signal missing: the app must have metrics flowing — revisit step 7; brand-new apps sometimes need traffic first.
Step 10. Under Actions: create an action group — click Create action group → name it ag-email-day26, short name agemail26 → Notification type = Email/SMS/Push/Voice → enter YOUR email → Review + create. Back in the rule wizard, name the alert rule alert-5xx-day26, set severity Sev 2, and Create alert rule.
Expected result: The alert rule is created and listed under Alerts → Alert rules.
Verify: Alert rules list shows alert-5xx-day26 as Enabled.
Troubleshooting: Email not received later: check spam; also note action-group emails can take several minutes.
Step 11. Optional but instructive: in the Logs blade, run this second query to see your slowest pages: AppServiceHTTPLogs | where TimeGenerated > ago(1h) | top 10 by TimeTaken desc | project TimeGenerated, CsUriStem, ScStatus, TimeTaken
Expected result: Up to 10 rows showing which requests took longest.
Verify: The TimeTaken column shows numbers — you are now reading real performance data.
Troubleshooting: TimeTaken column empty: some requests log it as 0 for tiny static responses — normal.
G. Practical Assignment
Write the Detect → Triage → Investigate → Mitigate → Learn loop on an index card in your own words, with one concrete Azure action for each step (for example, Investigate = 'run a KQL query in Log Analytics'). Keep it at your desk for the rest of the workshop.
H. Knowledge Assessment
- Q1. A teammate says 'metrics and logs are basically the same thing.' What is the correct distinction?
- A) Metrics are numbers measured over time (CPU %, request counts); logs are timestamped individual events ('request X failed at 14:32')
- B) Metrics are free and logs always cost money
- C) Logs are numbers and metrics are text
- D) There is no difference
- Q2. What is KQL used for in Azure?
- A) Writing web app code
- B) Querying log data stored in Log Analytics workspaces
- C) Creating virtual networks
- D) Sending alert emails
- Q3. Application Insights is best described as:
- A) A billing report
- B) An APM (Application Performance Monitoring) feature of Azure Monitor for live web apps — request rates, response times, failures
- C) A code editor
- D) A backup service
- Q4. An alert rule has two essential parts. They are:
- A) A condition (what counts as a problem) and an action group (who gets notified / what happens)
- B) A username and a password
- C) A region and a resource group
- D) A dashboard and a workbook
- Q5. Practical: write a KQL query that shows the 10 slowest requests to your app in the last hour, including the page URL and status code.
Answer key & explanations (open after you finish)
- Q1 — Answer: A. Metrics = aggregated numbers over time (trends, charts). Logs = discrete timestamped events (the details behind a spike).
- Q2 — Answer: B. KQL (Kusto Query Language) is the query language for searching and analyzing log data in Log Analytics.
- Q3 — Answer: B. Application Insights gives automatic performance and failure telemetry for running applications.
- Q4 — Answer: A. Condition = the smoke (e.g., Http 5xx > 0); action group = the alarm bell (e.g., email you).
- Q5 — Answer: AppServiceHTTPLogs | where TimeGenerated > ago(1h) | top 10 by TimeTaken desc | project TimeGenerated, CsUriStem, ScStatus, TimeTaken. Filter to the last hour, take the 10 highest TimeTaken values, and project only the useful columns.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 27 — Best Practices Review: Identity, Networking, Security, Operations60–90 minutes
A. Day 27 — Best Practices Review: Identity, Networking, Security, Operations
Estimated duration: 60–90 minutes
B. Learning Objectives
- Summarize identity best practices: Microsoft Entra ID, RBAC roles, least privilege, and managed identity.
- Summarize networking and security best practices: NSGs, Key Vault, and keeping secrets out of code.
- Apply operational best practices: naming conventions, tags, budget alerts, and Azure Advisor.
- Run a best-practice audit on your own Azure resources and fix what you find.
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Days 1-26 — especially Day 25 (deployment) and Day 26 (monitoring)
D. Concepts Explained Simply
Today is consolidation day — no brand-new service to learn. Instead, we do what professionals do before anything important ships: a checklist inspection. Think of a house inspection before you buy: the inspector does not build anything, she walks room to room checking locks, wiring, smoke detectors, and labels. Today you are the inspector, and your Azure subscription is the house. We review four rooms: identity, networking, security, and operations.
Room 1 — Identity. Microsoft Entra ID (formerly Azure AD) is the identity system: who you are. RBAC (Role-Based Access Control) is what you are allowed to do. Memorize the three big roles: Owner (full control including giving access to others), Contributor (manage resources but cannot grant access), Reader (look but do not touch). The golden rule is least privilege: give every person and every app only the permissions it actually needs — nothing more. And managed identity gives your app its own identity badge in Entra ID, so it can access other Azure resources without you ever storing a password or key in its settings.
Room 2 — Networking. Room 3 — Security. A VNet (virtual network) is your private network in the cloud; an NSG (Network Security Group) is the firewall rule list on its doors — default-deny, open only what you need. Key Vault is the safe: passwords, connection strings, and certificates live there, never in code, never in app settings as plain text, and never in a Git repository. If a secret is ever committed to Git, treat it as compromised and rotate it. Microsoft Defender for Cloud is the security guard that watches your subscription and grades your posture — free tier included.
Room 4 — Operations. Naming conventions (like rg-deploy-day25) let you tell what a resource is and when it can be deleted. Tags are labels on resources — Owner, Environment, CostCenter — that make cost reports and cleanup possible. Budget alerts email you before spending surprises you (remember: alerts, not caps). Azure Advisor is a free built-in consultant that scans your resources and recommends cost, security, reliability, and performance improvements. Professionals check Advisor the way pilots check instruments: routinely, not just in emergencies.
One meta-rule ties all four rooms together: never weaken security to make a lab work. If a tutorial tells you to disable a firewall, open a port to the world, or paste a key into code 'just to get it running,' that tutorial is teaching you a habit you will have to unlearn. There is always a secure way — managed identity, Key Vault references, scoped firewall rules — and this workshop only teaches those.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure Key Vault overview | Documentation | https://learn.microsoft.com/en-us/azure/key-vault/general/overview Verified | How Key Vault stores secrets, keys, and certificates so they never live in code or app settings | 15 min |
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Practice estimating costs — a core operational habit before creating any resource | 10 min |
| AZ-900 cloud concepts learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/ Verified | The official fundamentals path — a good cross-check that your identity/security mental models are correct | 30 min |
F. Hands-On Workshop
Objective: Audit a live web app against the four-room best-practice checklist and fix every finding.
Prerequisites: Azure free account.
Step 1. Create a resource group rg-review-day27 and a web app in it (Node 20 LTS, Linux, new Free F1 plan asp-day27) exactly as on Days 25-26. No GitHub wiring needed — this app is your inspection subject.
Expected result: Web app running; Browse shows the default page.
Verify: Overview shows the app and its URL.
Troubleshooting: Creation errors are almost always the app name being taken — add initials/numbers.
Step 2. Room 4 — Tags: open rg-review-day27 → left menu → Tags. Add: Owner = your name, Environment = Learning, DeleteAfter = 2026-11-01. Click Apply.
Expected result: Tags saved on the resource group.
Verify: Reopen Tags — your three tags are listed.
Troubleshooting: Tags not saving: you need write permission on the resource group — as subscription owner, you have it; retry.
Step 3. Room 1 — Managed identity: open the web app → left menu under Settings → Identity → System assigned tab → Status = On → Save → Yes to confirm.
Expected result: Status shows On with an Object (principal) ID.
Verify: An Object ID is displayed — your app now has its own Entra ID identity badge.
Troubleshooting: Save fails transiently: wait a minute and retry; identity provisioning occasionally needs a second attempt.
Step 4. Room 4 — Budget alert: Portal → search 'Cost Management' → Budgets → + Add. Scope = your subscription (or rg-review-day27), name budget-learning-20, amount $20 USD, monthly. Add an alert condition at 50% and 100% of budget, email = your address. Create.
Expected result: Budget appears in the budgets list.
Verify: Open it — alert conditions list your email at 50% and 100%.
Troubleshooting: Cannot create at subscription scope: scope it to the resource group instead — same protective effect for this workshop.
Step 5. Room 4 — Advisor: Portal → search 'Advisor' → open it. Review the recommendations under Cost, Security, Reliability, Operational Excellence for your resource group.
Expected result: A list of recommendations (possibly 'no recommendations' — that is also a result).
Verify: You can open at least one recommendation and read what it suggests.
Troubleshooting: Advisor empty: it can take time to analyze brand-new resources — note what you see and move on.
Step 6. Room 3 — Secrets check: web app → Settings → Configuration → Application settings. Confirm there are no passwords, keys, or connection strings stored here. (There should be none on a fresh app — the point is building the habit of looking.)
Expected result: Only default settings; no secrets present.
Verify: You can state where a real secret WOULD go: Key Vault, accessed via the managed identity you enabled in step 3.
Step 7. Room 1 — Access check: open rg-review-day27 → Access control (IAM) → Role assignments tab. Confirm only expected identities (you) hold roles here.
Expected result: Your user account listed, typically as Owner or Contributor; no strangers.
Verify: You can explain why Contributor would be enough for a teammate who only deploys code.
Step 8. Write down your audit findings: for each of the four rooms, one sentence on what you checked and whether it passed. Example: 'Identity: managed identity enabled — PASS.'
Expected result: Four sentences, one per room.
Verify: Any FAIL has a fix noted next to it (you already applied the fixes in steps 2-7).
G. Practical Assignment
Pick one real-world analogy of your own (not the house inspection) that explains least privilege to a non-technical friend — for example, hotel key cards that only open your floor. Write it in three sentences.
H. Knowledge Assessment
- Q1. What does 'least privilege' mean in practice?
- A) Everyone gets Owner so nothing is ever blocked
- B) Every person and app gets only the permissions it actually needs — nothing more
- C) Nobody gets any access
- D) Privileges are assigned alphabetically
- Q2. What problem does a managed identity solve?
- A) It makes the app run faster
- B) It gives the app its own Entra ID identity so it can access Azure resources without stored passwords or keys
- C) It backs up the app automatically
- D) It translates the app into other languages
- Q3. Where should a database connection string for your app be stored?
- A) Pasted into the app's code and committed to GitHub
- B) In Azure Key Vault, referenced by the app via its managed identity
- C) In a sticky note on your monitor
- D) Emailed to the team
- Q4. A classmate says 'I set a $20 budget, so Azure will stop my resources at $20.' What is wrong with this?
- A) Nothing — that is exactly how budgets work
- B) Budgets are alerts, not spending caps: you get an email, but spending continues, and alerts can be delayed
- C) Budgets only work on weekends
- D) The minimum budget is $200
- Q5. Practical: write the 5-line best-practice checklist you would tape to your monitor, one line each for identity, networking, security, cost, and operations.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Least privilege minimizes damage from mistakes or compromised accounts by granting only necessary permissions.
- Q2 — Answer: B. No more passwords in settings or code — Azure itself vouches for the app's identity.
- Q3 — Answer: B. Key Vault is the safe; managed identity is the key. Code and Git history are the worst places for secrets.
- Q4 — Answer: B. This is the single most misunderstood cost control in Azure — budgets warn, they do not stop.
- Q5 — Answer: Example: 1) Least privilege — no Owner unless needed. 2) NSGs default-deny; open only required ports. 3) Secrets in Key Vault, never in code. 4) Budget alert on every subscription. 5) Name and tag every resource so it can be found and deleted.. A good checklist is short, specific, and covers all four rooms plus cost — the version above is one valid answer.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 28 — Final Project: Plan and Design60–90 minutes
A. Day 28 — Final Project: Plan and Design
Estimated duration: 60–90 minutes
B. Learning Objectives
- Write a one-page project plan with a goal, users, and measurable success criteria.
- Draw an architecture diagram of the capstone solution.
- List every Azure resource with its SKU/tier and estimate the monthly cost.
- Define a test plan and a rollback plan before building anything.
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Days 1-27 — you will reuse deployment (Day 25), monitoring (Day 26), and best practices (Day 27)
D. Concepts Explained Simply
Builders do not start with bricks; they start with a blueprint. A blueprint forces every hard decision up front — what gets built, what it costs, what 'done' looks like — while changes are still cheap eraser marks instead of expensive demolitions. Today you draw the blueprint for your capstone project. Tomorrow you build it. The day after, you demo it.
Here is the capstone specification — Capstone: Deploy and Operate a Monitored Web App on Azure. Mandatory: (1) a resource group with a clear naming convention; (2) a web app on App Service (Free F1 tier is fine) running the sample app; (3) automatic deployment from GitHub — a commit must redeploy with no manual steps; (4) a system-assigned managed identity enabled on the app; (5) diagnostic settings sending logs to a Log Analytics workspace; (6) an alert rule that emails you on HTTP 5xx errors; (7) tags on all resources; (8) a budget alert; (9) a README.md documenting everything. Optional stretch goals: store a secret in Key Vault and reference it from the app, add a deployment slot, or add a custom domain.
Your architecture diagram does not need fancy software — boxes and arrows on paper are how real architects start. Draw one box per Azure resource, arrows for how they connect (GitHub → App Service, App Service → Log Analytics, Alert rule → your email), and label each box with its SKU. Anyone reading it should be able to rebuild your system without asking you a single question.
Estimate cost with the Azure pricing calculator before you build — professionals never skip this. At Free F1 plus the free Log Analytics ingestion allowance, this project should total $0/month; write that number down and cite the calculator as your source. Finally, write two plans most beginners skip: a test plan (exactly which checks prove it works — page loads, commit redeploys, 404 appears in logs, alert rule exists) and a rollback plan (if a deploy breaks the app: revert the GitHub commit or redeploy the previous artifact — because Git keeps every version, 'undo' is always one commit away).
Reminder: portal UI, pricing, and free-tier limits change over time — if the calculator looks different from any screenshot you have seen, follow the labels, not your memory.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure pricing calculator | Tool | https://azure.microsoft.com/pricing/calculator/ Verified | Estimate your capstone's monthly cost before building — your plan must cite a number from here | 15 min |
| Azure free account | Documentation | https://azure.microsoft.com/free/ Verified | Confirm what stays free for 12 months and what the $200 credit covers while you plan | 10 min |
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Reference material while you write your plan — look up anything you are unsure about | 15 min |
F. Hands-On Workshop
Objective: Produce a complete written project plan: goal, architecture diagram, resource list, cost estimate, test plan, and rollback plan.
Prerequisites: Nothing but your notes from Days 1-27. No Azure portal work today.
Step 1. Re-read the capstone specification in today's concepts (the nine mandatory items). Copy them into a new document called PROJECT-PLAN.md on your computer — this is your requirements list.
Expected result: A document with the nine mandatory requirements listed.
Verify: Count them: resource group, web app, GitHub auto-deploy, managed identity, diagnostics, alert rule, tags, budget, README.
Step 2. Write the goal section: one paragraph stating what you are building and who it is for. Then write 4-5 measurable success criteria, e.g., 'A commit to GitHub is live on the site within 5 minutes with no portal clicks.'
Expected result: Goal paragraph plus numbered success criteria.
Verify: Each criterion is checkable with a yes/no — vague criteria like 'works well' are rewritten.
Troubleshooting: Stuck on criteria? Turn each mandatory requirement into one: 'Alert rule exists and is Enabled — yes/no.'
Step 3. Draw the architecture diagram on paper (or any diagram tool): one box per resource — GitHub repo, App Service plan (F1), Web App, Log Analytics workspace, Action group, Budget. Draw arrows: code flow, log flow, alert flow. Label each box with its SKU/tier.
Expected result: A diagram showing all resources and how they connect.
Verify: A friend could rebuild your system from the diagram alone.
Step 4. Build the resource table in your document: columns = Resource, Name (following your naming convention, e.g., rg-capstone), SKU/Tier, Estimated monthly cost. Fill one row per resource.
Expected result: A complete table, one row per resource.
Verify: Every box in your diagram appears as a row in the table — nothing extra, nothing missing.
Step 5. Open the Azure pricing calculator and price each row: App Service F1, Log Analytics (within free allowance). Write the total monthly estimate in your document and note the calculator as your source.
Expected result: A total monthly cost figure with the calculator cited.
Verify: The total is $0 (or a few dollars at most) — if it is higher, you picked a paid SKU somewhere; find it.
Troubleshooting: Calculator confusing: search each product name in its search box and pick the free/basic tier options.
Step 6. Write the test plan: list the exact checks you will run on Day 29, in order — (1) page loads, (2) commit redeploys automatically, (3) 404 appears in Log Analytics via KQL, (4) alert rule exists and is Enabled, (5) tags and budget in place.
Expected result: An ordered checklist of tests.
Verify: Each test maps to one success criterion from step 2.
Step 7. Write the rollback plan in two sentences: what you do if a deployment breaks the app (revert the commit in GitHub / redeploy the previous working version), and how long it should take.
Expected result: A short, concrete rollback procedure.
Verify: It names the exact mechanism (Git revert), not just 'fix it'.
Step 8. Final review: read your PROJECT-PLAN.md top to bottom against the nine mandatory requirements. Check every box or revise the plan until you can.
Expected result: All nine requirements traceable to a part of your plan.
Verify: For each requirement, you can point at the diagram row, table row, or test that covers it.
Troubleshooting: A requirement with no coverage: add the missing resource or test now, while it is still cheap.
G. Practical Assignment
Show your architecture diagram to someone (friend, family, colleague) and explain it in under two minutes. Note every question they ask — those questions reveal what your README must explain on Day 29.
H. Knowledge Assessment
- Q1. Why do professionals plan (blueprint) before building in the cloud?
- A) It is required by law
- B) Decisions are cheapest to change on paper — fixing architecture after building wastes time and can waste money
- C) Planning makes the portal run faster
- D) It is only done for very large projects
- Q2. Which App Service tier keeps the capstone project free?
- A) F1 (Free)
- B) P3v3 (Premium)
- C) Any tier is free
- D) Tiers do not affect cost
- Q3. What is the purpose of the rollback plan?
- A) To delete the resource group
- B) To define exactly how you restore the last working version if a deployment breaks the app
- C) To roll back your learning progress
- D) To cancel your Azure subscription
- Q4. A good architecture diagram must let a reader:
- A) Admire your drawing skills
- B) Rebuild the system without asking you questions — every resource, SKU, and connection is shown
- C) Memorize Azure region names
- D) Skip writing documentation
- Q5. Practical: list your capstone's Azure resources with SKU and estimated monthly cost, in one short table.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. A plan surfaces missing pieces, wrong SKUs, and cost surprises while they are still eraser marks.
- Q2 — Answer: A. F1 is the free tier — the project spec allows it, and the pricing calculator confirms $0.
- Q3 — Answer: B. Every deployment can fail; professionals decide the recovery path before they need it — here, a Git revert.
- Q4 — Answer: B. The diagram's test is reproducibility: boxes for resources, arrows for flows, labels for SKUs.
- Q5 — Answer: Example: rg-capstone (resource group, $0); asp-capstone F1 ($0); web app on F1 ($0); law-capstone Log Analytics within free 5 GB ($0); alert rule + action group ($0); budget ($0). Total: $0/month per the pricing calculator.. The correct answer shows every resource, the free tier for each, and a total — proving the plan before the build.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 29 — Final Project: Build, Test, Document60–90 minutes
A. Day 29 — Final Project: Build, Test, Document
Estimated duration: 60–90 minutes
B. Learning Objectives
- Build the capstone solution in the correct order: foundation, app, wiring, monitoring.
- Wire CI/CD so a GitHub commit deploys automatically.
- Run smoke, functional, and security checks against the live project.
- Write a README.md that lets a stranger rebuild and operate your project.
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Day 28 — you have PROJECT-PLAN.md with the architecture, resource table, test plan, and rollback plan
- Your forked sample app repo on GitHub (from Day 25)
D. Concepts Explained Simply
Today you build in foundation order: the things everything else depends on go first. Resource group, then the Log Analytics workspace, then the App Service plan and web app, then identity, then the deployment wiring, then monitoring, then tests, then documentation. Building out of order — say, wiring alerts before the app exists — creates the classic beginner failure: half-configured pieces that cannot be tested. Follow your plan's order; it exists for exactly this reason.
Test in layers, cheapest first. A smoke test asks 'does it turn on?' — the page loads. A functional test asks 'does it do the job?' — a commit redeploys automatically, a 404 shows up in the logs. A security check asks 'did I leave anything exposed?' — no secrets in app settings, managed identity enabled, HTTPS on. A resilience check asks 'does it survive a bump?' — restart the app and confirm it comes back. Run them in that order; there is no point load-testing a page that does not load.
Documentation is part of the product, not decoration. Your README.md is the document a stranger — or you, six months from now — uses to rebuild and operate this project. It needs: what the project is and why it exists; the architecture (your Day 28 diagram, described in words); prerequisites; step-by-step setup; how deployment works; how to monitor it (where the logs and alerts live); the monthly cost; and how to tear it all down. Write it as you build, not after — memory fades within hours.
Portal UI and free-tier limits change over time; if a blade has moved, search the portal for the feature name. Keep every resource on the free tier from your plan — if a creation blade defaults to a paid SKU, change it before clicking Create.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Overview of Azure App Service | Documentation | https://learn.microsoft.com/en-us/azure/app-service/overview Verified | Reference for App Service configuration while you build — deployment options, identity, diagnostics | 15 min |
| Azure Monitor overview | Documentation | https://learn.microsoft.com/en-us/azure/azure-monitor/overview Verified | Reference for diagnostic settings, Log Analytics, and alert rules while you wire monitoring | 15 min |
| Install the Azure CLI | Documentation | https://learn.microsoft.com/en-us/cli/azure/install-azure-cli Verified | Optional: install the CLI now so you can verify resources from the terminal as well as the portal | 10 min |
F. Hands-On Workshop
Objective: Build the full capstone project from your Day 28 plan, test it in layers, and document it in a README.
Prerequisites: Azure free account; PROJECT-PLAN.md; GitHub fork of the sample app.
Step 1. Foundation: create resource group rg-capstone, then a Log Analytics workspace law-capstone inside it (same steps as Day 26).
Expected result: Both exist in rg-capstone.
Verify: Resource group lists the workspace.
Troubleshooting: Workspace name rejected: add initials.
Step 2. Create the App Service plan asp-capstone (Free F1) and the web app (Node 20 LTS, Linux) in rg-capstone, following your plan's naming.
Expected result: Web app running; Browse shows the default page.
Verify: Overview shows plan SKU F1.
Troubleshooting: If the SKU shows anything but F1, you accepted a paid default — delete the plan and recreate it on F1.
Step 3. Identity + tags: enable the system-assigned managed identity on the web app (Identity → System assigned → On → Save), then tag the resource group (Owner, Environment=Learning, Project=Capstone).
Expected result: Identity shows On with an Object ID; tags saved.
Verify: Object ID visible; Tags blade lists your three tags.
Step 4. Wiring — CI/CD: open the web app → Deployment Center → Source = GitHub → authorize → select your forked sample repo and branch → Build provider = GitHub Actions → Save. Watch the Actions tab until the workflow is green.
Expected result: Sample app deployed; Browse shows the sample page.
Verify: GitHub Actions run is green and the live URL shows the sample app.
Troubleshooting: Workflow fails: read the failing step's log (Day 25 troubleshooting) — usually a branch-name or Node-version mismatch.
Step 5. Prove CD works: edit one line of text in your GitHub fork, commit, wait for the Actions run to finish, and refresh the live URL.
Expected result: Your edited text is live with zero portal clicks during the release.
Verify: Change visible on the public URL. Tick off the matching success criterion in PROJECT-PLAN.md.
Troubleshooting: Stale page: hard-refresh (Ctrl+Shift+R).
Step 6. Monitoring — logs: web app → Diagnostic settings → add send-to-law sending AppServiceHTTPLogs and AppServiceAppLogs to law-capstone. Also turn on Application logging (Filesystem) = Information under App Service logs.
Expected result: Diagnostic setting saved; filesystem logging On.
Verify: Both blades show the saved settings.
Troubleshooting: Save errors: workspace and app must be in the same region.
Step 7. Monitoring — alert: create alert rule alert-5xx-capstone on signal 'Http 5xx' (Total > 0 over 5 min), with an action group emailing you (same pattern as Day 26).
Expected result: Alert rule listed as Enabled.
Verify: Alerts → Alert rules shows alert-5xx-capstone Enabled.
Step 8. Cost guard: create budget budget-capstone-20 ($20/month, alerts at 50% and 100% to your email) scoped to rg-capstone.
Expected result: Budget listed in Cost Management.
Verify: Open it — your email is on both alert conditions.
Step 9. Smoke + functional tests: (1) Browse the app — page loads. (2) Restart the app (Overview → Restart) — it comes back (resilience). (3) Visit a bad URL for a 404, wait ~10 minutes, run the Day 26 KQL status-code query in Logs — the 404 appears (functional).
Expected result: All three checks pass.
Verify: KQL results include your 404; the app survived the restart.
Troubleshooting: 404 not in logs yet: log delivery lags — wait longer, then re-run the query.
Step 10. Security check: web app → Configuration → Application settings — confirm no secrets stored. Confirm managed identity is still On and the site loads over HTTPS.
Expected result: No secrets; identity On; https URL works.
Verify: You can state where a secret would go instead (Key Vault + managed identity).
Step 11. Documentation: in your GitHub fork, click Add file → Create new file, name it README.md, and write: project description, architecture summary, prerequisites, setup steps, how deployment works, how to monitor (logs query + alert name), monthly cost, and teardown steps. Commit it.
Expected result: README.md renders on your repo's front page.
Verify: Open the repo in a private/incognito window — the README alone explains the project.
Step 12. Final plan check: open PROJECT-PLAN.md and tick every success criterion against the live project. Anything unticked is tomorrow's first job.
Expected result: Most or all criteria ticked.
Verify: Each mandatory requirement (Day 28's nine) is visibly satisfied in the portal or README.
Troubleshooting: Missing alert or diagnostics: go back to steps 6-7 now — Day 30's demo needs them.
G. Practical Assignment
Break something safely: stop your web app (Overview → Stop), wait one minute, then start it again and watch the metrics dip and recover. Write two sentences on what you observed — this is the story you will tell in your demo.
H. Knowledge Assessment
- Q1. What is the correct build order for the capstone, and why?
- A) Alerts first, then the app, then the resource group
- B) Foundation first (resource group, workspace, app, identity), then wiring (CI/CD), then monitoring, then tests, then docs — each layer depends on the previous one
- C) Documentation first, everything else in any order
- D) Order does not matter in the cloud
- Q2. What does a smoke test verify?
- A) The app handles 10,000 users
- B) The basics work — the page loads, the app starts ('does it turn on?')
- C) The code has no spelling mistakes
- D) The budget alert fires
- Q3. A deployment just broke the live app. Per your rollback plan, what do you do first?
- A) Delete the resource group and start over
- B) Revert the bad commit in GitHub (or redeploy the previous working version) so the pipeline restores the last good state
- C) Email Microsoft support
- D) Wait and hope it fixes itself
- Q4. Which README section matters most to someone who inherits your project?
- A) Your favorite color scheme
- B) Step-by-step setup and teardown plus how deployment and monitoring work — everything needed to rebuild and operate it
- C) A long apology for bugs
- D) Your biography
- Q5. Practical: write the 'How to monitor this project' section of your README in 4-6 lines.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. You cannot wire monitoring for an app that does not exist or test a deployment that was never configured — dependencies dictate order.
- Q2 — Answer: B. Smoke tests are the cheapest, fastest checks: if the page does not load, deeper testing is pointless.
- Q3 — Answer: B. Git keeps every version, so reverting the commit re-runs the pipeline with the last known-good code — the fastest safe recovery.
- Q4 — Answer: B. A README's job is reproducibility and operability: setup, deploy, monitor, cost, teardown.
- Q5 — Answer: Example: Logs: web app → Monitoring → Logs (law-capstone workspace); query AppServiceHTTPLogs for status codes. Metrics: Monitoring → Metrics → Requests / Http 5xx. Alerts: alert-5xx-capstone emails me when 5xx > 0 in 5 min. Budget: budget-capstone-20 warns at 50%/100% of $20.. A good section names the exact blades, workspace, queries, and alert so a stranger can find everything without asking.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Day 30 — Demo Day, Final Review, and Your Learning Roadmap60–90 minutes
A. Day 30 — Demo Day, Final Review, and Your Learning Roadmap
Estimated duration: 60–90 minutes
B. Learning Objectives
- Deliver a 10-minute live demo of your capstone project.
- Complete a final troubleshooting review of the most common failure modes.
- Assess your own skills against the workshop's learning goals.
- Build a personal 90-day learning roadmap starting with AZ-900.
C. Prerequisites
- Azure free account (created on Day 1)
- Completed Days 1-29 — your capstone project is built, tested, and documented (rg-capstone still exists)
D. Concepts Explained Simply
Today you do what professionals do at the end of every project: demonstrate it, review what broke along the way, and plan what is next. A good demo tells a story in five beats: Hook (the problem — 'deploying by hand is slow and risky') → Architecture (your diagram, 60 seconds) → Live tour (the site, a commit redeploying itself, the logs query, the alert rule) → Lessons (one thing that broke and how you fixed it — audiences trust demos with scars) → Close (what you would add next). Ten minutes, no more. Rehearse out loud once; everything feels longer on stage than in your head. And keep backup screenshots — live demos fail at the worst moments, and a screenshot of it working is a perfectly professional save.
Troubleshooting review — the greatest hits from 30 days, and their fixes: (1) App shows the default page / old version: deployment still running or browser cache — wait, restart the app, hard-refresh. (2) GitHub Actions run is red: open the failing step's log — usually a branch-name or runtime-version mismatch in the Deployment Center settings. (3) No data in Log Analytics: the #1 cause is impatience (10-15 min delay) or the diagnostic setting never saved / wrong region. (4) Alert never fires: condition threshold misread (e.g., 'greater than 5' when you only generated 2 errors) or the action group's email went to spam. (5) Resource creation fails: name already taken, wrong region for the SKU, or a paid default you did not change. (6) Costs surprise you: you skipped the pricing calculator or left a paid SKU running — budgets warn, they do not stop spending.
Your roadmap. The natural next step is AZ-900: Microsoft Certified: Azure Fundamentals — the entry-level certification covering cloud concepts, Azure architecture and services, and governance. You have already learned a large part of it in this workshop; the official learning path (linked below) fills the gaps. After AZ-900, pick a lane: AZ-104 (Azure Administrator) if you like operating infrastructure, AZ-204 (Azure Developer) if you like building apps, AI-900 if AI services excite you. This workshop is not affiliated with, endorsed, or certified by Microsoft — it is your preparation, not their program.
Keep three habits and you will keep growing: build weekly (the free tier and the Learn sandbox are your gym), read the docs (one docs page per week compounds fast), and write it down (your journal habit from this workshop is a career asset). Thirty days ago the portal was a foreign country. Today you can plan, deploy, monitor, secure, and demo a real cloud system. That is not beginner luck — that is a skill set. Go use it.
E. Learning Resources
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| AZ-900 cloud concepts learning path | Microsoft Learn | https://learn.microsoft.com/en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/ Verified | The official fundamentals learning path — your primary study material for AZ-900 preparation | 3 modules |
| Microsoft Learn Azure training hub | Microsoft Learn | https://learn.microsoft.com/en-us/training/azure/ Verified | Find the AZ-104, AZ-204, and AI-900 paths when you pick your next lane | 20 min |
| AZ-900 exam page | Documentation | https://learn.microsoft.com/en-us/certifications/exams/az-900/ Needs verification | Official exam page: skills measured, format, and scheduling (verify availability — page could not be confirmed in this session) | 10 min |
| Azure free account | Documentation | https://azure.microsoft.com/free/ Verified | Keep building after the workshop — know exactly what stays free | 10 min |
F. Hands-On Workshop
Objective: Run the final demo checklist, rehearse your demo, do a last troubleshooting pass, then tear everything down.
Prerequisites: Capstone project live (rg-capstone); PROJECT-PLAN.md; README.md.
Step 1. Final validation — work through this demo checklist against your live project, ticking each: (1) site loads over HTTPS; (2) managed identity is On; (3) tags on the resource group; (4) budget-capstone-20 exists; (5) alert-5xx-capstone is Enabled; (6) README.md renders on your repo.
Expected result: All six ticked.
Verify: Each item confirmed in the portal or on GitHub — no item taken on faith.
Troubleshooting: Anything unticked: fix it now using the Day 29 steps — the demo needs all six.
Step 2. Live CI/CD proof: make one final tiny commit in GitHub (e.g., update the README's 'last demoed' date), watch the Actions workflow go green, and refresh the live site.
Expected result: The change deploys itself; the site reflects it.
Verify: Zero portal clicks between commit and the live change.
Troubleshooting: Workflow slow: GitHub-hosted runners occasionally queue — wait up to 10 minutes.
Step 3. Monitoring proof: open the web app → Monitoring → Metrics and show the Requests chart; then open Logs and run your status-code KQL query live.
Expected result: Chart shows traffic; query returns rows.
Verify: Both work on the first try — if not, note the fix; honesty beats perfection in a demo.
Troubleshooting: Query slow: narrow the time range to the last hour.
Step 4. Take backup screenshots now: the live site, the green Actions run, the metrics chart, the KQL results, and the alert rule blade. Save them in a folder called demo-backup.
Expected result: Five screenshots saved.
Verify: Open each image — it is readable and clearly labeled by its filename.
Step 5. Rehearse your 10-minute demo out loud, following the five beats (Hook → Architecture → Live tour → Lessons → Close). Time yourself with a phone timer.
Expected result: You finish between 8 and 12 minutes.
Verify: If you ran long, cut the architecture section first — the live tour is the star.
Troubleshooting: Nervous about the live parts: that is what the screenshots are for — narrate over them if anything fails.
Step 6. Troubleshooting pass: deliberately pick ONE scenario from today's concepts (e.g., stop the app, then start it) and walk through detecting and fixing it using metrics and logs, narrating as you go.
Expected result: You detect the issue in metrics/logs and recover the app.
Verify: You can explain each step of the Detect → Triage → Investigate → Mitigate → Learn loop as you did it.
Step 7. Self-assessment: grade yourself honestly on the four workshop pillars — deploy (can you CI/CD a change?), monitor (can you query logs and read metrics?), secure (managed identity, Key Vault thinking, least privilege?), operate (tags, budgets, Advisor, docs?). Write one sentence per pillar on what is solid and what needs work.
Expected result: Four honest sentences.
Verify: Each sentence names something specific, not 'I need to learn more.'
Step 8. Write your 90-day roadmap: weeks 1-4 finish the AZ-900 learning path; weeks 5-8 practice exam + book the exam; weeks 9-12 pick your lane (AZ-104 / AZ-204 / AI-900) and start its path. Save it as ROADMAP.md next to PROJECT-PLAN.md.
Expected result: ROADMAP.md with dated milestones.
Verify: Each milestone has a concrete deliverable (e.g., 'complete path', 'book exam').
Step 9. Final teardown: Portal → Resource groups → delete rg-capstone (type the name to confirm). Then Cost Management → Budgets → delete budget-capstone-20. Then scan the full resource-group list for any leftover rg-deploy-day25, rg-monitor-day26, rg-review-day27, or rg-capstone entries and delete stragglers.
Expected result: No workshop resource groups remain; no workshop budgets remain.
Verify: Resource groups list shows none of the four names; Budgets list is empty of workshop budgets.
Troubleshooting: Delete blocked by a lock or a still-provisioning resource: wait 5 minutes and retry; locks are removed under the resource group's Settings → Locks.
G. Practical Assignment
Deliver your demo to a real human — friend, family member, colleague, or record it on your phone. Afterwards, write down the three questions they asked (or the three you asked yourself). Those questions are your personalized study guide for AZ-900.
H. Knowledge Assessment
- Q1. What is the correct five-beat structure of a professional project demo?
- A) Apologize → read slides → hope for questions
- B) Hook (problem) → Architecture → Live tour → Lessons (what broke) → Close (what is next)
- C) Live tour only — talking is cheating
- D) Start with pricing, end with pricing
- Q2. What is AZ-900?
- A) An Azure region in Europe
- B) Microsoft Certified: Azure Fundamentals — the entry-level certification covering cloud concepts, Azure services, and governance
- C) A type of virtual machine
- D) A GitHub Actions workflow
- Q3. After AZ-900, which exam fits someone who wants to operate Azure infrastructure (not primarily write code)?
- A) AZ-104 (Azure Administrator)
- B) AZ-204 (Azure Developer)
- C) AI-900 is the only option
- D) No further exams exist
- Q4. Your live demo fails in front of an audience. What is the professional move?
- A) Pretend it worked and move on
- B) Narrate the failure honestly and switch to your backup screenshots showing it working
- C) Cancel the demo
- D) Blame the Wi-Fi and end early
- Q5. Practical: write your 90-day post-workshop learning roadmap in 5 bullet points.
Answer key & explanations (open after you finish)
- Q1 — Answer: B. Story first, proof second, honesty about failures third — that structure earns trust in ten minutes.
- Q2 — Answer: B. AZ-900 is the fundamentals exam and the natural next step after this workshop's breadth-first tour.
- Q3 — Answer: A. AZ-104 is the administrator path; AZ-204 is the developer path; AI-900 covers AI fundamentals.
- Q4 — Answer: B. Prepared backups plus honest narration turn a failure into a credibility moment — every senior engineer has done this.
- Q5 — Answer: Example: Weeks 1-4: complete the AZ-900 learning path. Weeks 5-6: practice tests, book the AZ-900 exam. Weeks 7-8: take AZ-900. Weeks 9-12: start the AZ-104 (or AZ-204/AI-900) path and build one project per month on the free tier.. A good roadmap has dated milestones with concrete deliverables — path completion, a booked exam, a chosen next lane.
I. Daily Completion Checklist
J. Learning Journal
Write 3–5 sentences for each prompt in your own notebook or document:
- What did I learn today?
- What did I build or configure?
- What worked?
- What problems did I hit and how did I fix them?
- What do I need to revisit?
Final Project — Capstone: Deploy and Operate a Monitored Web App on Azure
Build a complete, real-world slice of an Azure workload: a web app running on Azure App Service, wired to Application Insights for monitoring, reading its secrets from Azure Key Vault through a managed identity, guarded by a budget alert, and then fully cleaned up. You will operate it for 3 to 5 days like a real service owner: checking health, reading metrics, and investigating one alert. Everything is designed for the free tier and free account credit. Note: portal screens, pricing, and free-tier limits change over time, so treat exact menu labels as guidance and read the current labels on screen. Estimated effort: 4 to 6 hours of building, plus a few minutes a day of operating.
Mandatory components
- One resource group holding every resource for this project, in a region close to you
- An Azure App Service web app on the Free (F1) tier with a simple sample app deployed and reachable over HTTPS
- Application Insights connected to the web app, collecting requests, with one custom event or one availability test configured
- One secret stored in Azure Key Vault, read by the web app through a system-assigned managed identity (no passwords, keys, or connection strings in code or app settings)
- A Cost Management budget with an alert threshold (for example, 50 percent and 100 percent of a small amount) so you see how budget alerts behave
- One metric alert rule (for example, HTTP server errors or response time) that notifies you by email via an action group
- A project README describing the architecture, the build steps you followed, and what you learned
- Full cleanup at the end: delete the resource group and confirm in Cost Management that no new charges appear
Optional enhancements
- A staging deployment slot with a swap to production
- A GitHub Actions workflow that builds and deploys the app on every push
- A custom domain name with a free managed TLS certificate
- An Azure Function backend called by the web app (for example, a health-check or queue-processing endpoint)
- A KQL query pinned to a dashboard showing request volume and failures over the operating period
Build steps
- Plan on paper first: sketch the architecture (web app, App Insights, Key Vault, budget, alert), pick a region, and write down the resource names you will use. Naming convention example: capstone-rg, capstone-web-<yourname>, capstone-kv-<yourname>.
- Create the resource group: Portal - Search Resource groups - Create, select your subscription and region, name it, and create. Everything in this project lives here so one delete removes everything.
- Create the App Service plan (Free F1 tier) and the Web App: Portal - Create a resource - Web App, select your resource group, give the app a globally unique name, choose a runtime you know (for example, Node or Python), select the Free F1 plan, and create.
- Deploy a simple sample app: use the App Service quickstart sample or deploy from VS Code with the Azure App Service extension. Browse to https://<yourapp>.azurewebsites.net and confirm the sample page loads.
- Enable Application Insights on the web app and open it. Generate traffic by refreshing the page, then check the Application Insights overview for incoming requests. This confirms telemetry is flowing.
- Create a Key Vault in the same resource group and add one secret (for example, a fake API key named DemoApiKey). On the web app, turn on the system-assigned managed identity, then grant that identity the Key Vault Secrets User role on the vault. Update the app to read the secret from Key Vault at runtime and verify it works. Confirm there is no secret value in your code or app settings.
- Create a budget: Portal - Cost Management - Budgets - Add, scope it to your resource group, set a small amount and alert thresholds at 50 percent and 100 percent of actual cost, and add your email as the recipient. Remember: this sends alerts; it does not stop spending.
- Create a metric alert rule: on the web app, go to Alerts - Create alert rule, pick a signal such as Http5xx, set a threshold, create an action group with your email, and save. Trigger a test alert if the portal offers a way to do so, and confirm the email arrives.
- Operate the app for 3 to 5 days: each day, open Application Insights, note request counts and any failures, and run one KQL query in Logs (for example: requests | where success == false | take 20). Write down what you observe.
- Run one controlled experiment: restart the web app from the portal, then watch the availability test and the metrics recover. Note how long the gap in telemetry lasts.
- Write the README: architecture summary with a simple text diagram, the exact steps you followed, how you verified monitoring and alerts, the security approach (managed identity, no secrets in code), and lessons learned or what you would improve.
- Clean up: delete the resource group (Portal - Resource groups - select it - Delete resource group, type the name to confirm). Then open Cost Management - Cost analysis and confirm the project resources show no further spend.
Evaluation rubric (100 points)
| Criterion | Points | What good looks like |
|---|---|---|
| Working web app deployed | 20 | App Service web app on the Free tier is reachable over HTTPS and serves the deployed sample app. Deployment method is documented. |
| Monitoring and alerting | 20 | Application Insights collects request telemetry; one custom event or availability test exists; one metric alert rule with an email action group is configured and was tested. |
| Secure secret handling | 20 | Secret lives in Key Vault and is read through the system-assigned managed identity. No secret values appear in code, app settings, or the README. |
| Cost control and cleanup | 15 | A budget with alert thresholds is configured and understood (alerts, not caps). The resource group was deleted at the end and Cost Management confirms no ongoing spend. |
| README quality | 15 | README explains the architecture, lists the build steps, shows how monitoring and alerts were verified, documents the security approach, and includes lessons learned. |
| Operations evidence | 10 | Notes or screenshots from the 3 to 5 day operating period: daily metric observations, one KQL query with results, and the restart experiment outcome. |
Project README checklist
Reference Directory
Getting Started and AZ-900 Prep
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Create your Azure free account | Reference | https://azure.microsoft.com/free/ Verified | Start here: $200 credit for 30 days plus free services; a card is used for verification only. | — |
| Microsoft Learn Azure training hub | Reference | https://learn.microsoft.com/en-us/training/azure/ Verified | Free hands-on learning paths, including the AZ-900 fundamentals track. | — |
| AZ-900 cloud concepts learning path | Reference | https://learn.microsoft.com/en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/ Verified | Three short modules covering cloud models, CapEx vs OpEx, and consumption-based pricing. | — |
Compute
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Describe Azure virtual machines (training) | Reference | https://learn.microsoft.com/en-us/training/modules/describe-azure-compute-networking-services/2-virtual-machines Verified | VM use cases, sizing families, scale sets, and availability options. | — |
| Overview of Azure App Service | Reference | https://learn.microsoft.com/en-us/azure/app-service/overview Verified | Official overview of the PaaS web hosting service, plans, and runtimes. | — |
| Azure Functions overview | Reference | https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview Verified | Serverless scenarios, hosting plans, and the development lifecycle. | — |
| Triggers and bindings in Azure Functions | Reference | https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings Verified | How triggers start functions and how bindings connect to data services. | — |
| Azure Container Instances overview | Reference | https://learn.microsoft.com/bs-latn-ba/azure/container-instances/container-instances-overview Needs verification | Fastest way to run a container without managing servers; check the English page version. | — |
Networking
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Describe Azure virtual networking (training) | Reference | https://learn.microsoft.com/en-us/training/modules/describe-azure-networking-services/2-virtual-network Verified | VNets, subnets, peering, routing, and traffic filtering fundamentals. | — |
| Azure DNS FAQ | Reference | https://docs.microsoft.com/en-us/azure/dns/dns-faq Verified | Zones, record types, delegation, and common Azure DNS questions. | — |
| Azure network security groups overview | Reference | https://learn.microsoft.com/is-is/azure/virtual-network/network-security-groups-overview Needs verification | NSG rule properties, priorities, and default security rules. | — |
Storage
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Introduction to Azure Storage | Reference | https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction?tabs=data-lake-storage Verified | The full storage platform: Blobs, Files, Queues, Tables, Disks. | — |
| Describe Azure storage services (training) | Reference | https://learn.microsoft.com/en-us/training/modules/describe-azure-storage-services/4-describe-azure-storage-services/?ns-enrollment-type=learningpath&ns-enrollment-id=learn.wwl.azure-fundamentals-describe-azure-architecture-services Verified | Beginner tour of each storage service and when to use it. | — |
| Blob access tiers: Hot, Cool, Cold, Archive | Reference | https://learn.microsoft.com/en-us/azure/storage/blobs/access-tiers-overview Verified | Cost vs retrieval trade-offs and minimum retention per tier. | — |
| Storage redundancy: LRS, ZRS, GRS, GZRS | Reference | https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy-gzrs Needs verification | How copies are distributed for durability and availability. | — |
Identity and Security
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| What is Microsoft Entra ID (training) | Reference | https://learn.microsoft.com/en-us/training/modules/manage-security-controls-identity-access/3-microsoft-entra-id-overview Verified | Identity and access management concepts, licenses, and terminology. | — |
| Azure Key Vault overview | Reference | https://learn.microsoft.com/en-us/azure/key-vault/general/overview Verified | Storing and managing secrets, keys, and certificates. | — |
| Assign Azure roles using the portal (RBAC) | Reference | https://learn.microsoft.com/ro-ro/azure/role-based-access-control/role-assignments-portal Needs verification | Step-by-step RBAC role assignment, scopes, and prerequisites. | — |
Monitoring and Observability
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Explore Azure Monitor and Log Analytics (training) | Reference | https://learn.microsoft.com/en-us/training/modules/implement-tools-track-usage-flow/4-explore-azure-monitor-log-analytics Verified | Telemetry sources, the Log Analytics data store, alerts, and KQL analysis. | — |
| Azure Monitor overview | Reference | https://learn.microsoft.com/lv-lv/azure/azure-monitor/fundamentals/overview Needs verification | The unified observability service: metrics, logs, traces, and alerts. | — |
| Log queries in Azure Monitor (KQL) | Reference | https://learn.microsoft.com/th-th/azure/azure-monitor/logs/log-query-overview Needs verification | Writing Kusto queries for Log Analytics, alerts, and workbooks. | — |
Automation, IaC, and DevOps
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Install the Azure CLI | Reference | https://learn.microsoft.com/en-us/cli/azure/install-azure-cli Verified | Get the az command-line tool on Windows, macOS, or Linux. | — |
| What is Azure Cloud Shell | Reference | https://learn.microsoft.com/en-us/azure/cloud-shell/overview Verified | Browser-based shell with Azure CLI and PowerShell preinstalled. | — |
| Bicep documentation | Reference | https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/ Verified | Microsoft's concise language for infrastructure as code on ARM. | — |
| Deploy to App Service with GitHub Actions | Reference | https://learn.microsoft.com/mt-mt/azure/app-service/deploy-github-actions?tabs=userlevel Needs verification | CI/CD workflow that builds and deploys a web app from GitHub. | — |
Cost Management and Governance
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure pricing calculator | Reference | https://azure.microsoft.com/pricing/calculator/ Verified | Estimate monthly cost before you deploy anything. | — |
| Describe the Cost Management tool (training) | Reference | https://learn.microsoft.com/en-us/training/modules/describe-cost-management-azure/6-describe-azure-tool Verified | Cost analysis, budget alerts, and the alerts-are-not-caps concept. | — |
| Overview of Azure Policy | Reference | https://learn.microsoft.com/fil-ph/azure/governance/policy/overview Needs verification | Enforcing organizational rules and checking compliance at scale. | — |
Databases and Backup
| Resource | Type | Direct URL | Purpose | Estimated Time |
|---|---|---|---|---|
| Azure SQL Database overview | Reference | https://azure.microsoft.com/en-us/products/azure-sql/database Verified | Fully managed PaaS relational database: tiers, scaling, and free tier option. | — |
| What is the Azure SQL Database service (docs) | Reference | https://learn.microsoft.com/ga-ie/azure/azure-sql/database/sql-database-paas-overview?view=azuresql-db Needs verification | Deep dive: engine, availability, security, and deployment options. | — |
| What is Azure Backup | Reference | https://learn.microsoft.com/en-us/azure/backup/backup-overview Verified | Protecting VMs, databases, files, and blobs with Recovery Services vaults. | — |
Glossary of Azure Terminology
| Term | Definition |
|---|---|
| ARM (Azure Resource Manager) | The deployment and management layer of Azure; every resource you create is processed through it. |
| Availability Zone | A physically separate datacenter within a region, with independent power, cooling, and networking. |
| Azure App Service | PaaS for hosting web apps, APIs, and mobile backends without managing servers. |
| Azure Arc | Extends Azure management (policy, monitoring) to on-premises servers and other clouds. |
| Azure Backup | Managed backup service for VMs, databases, and file shares, stored in a Recovery Services vault. |
| Azure CLI | Command-line tool (az commands) for creating and managing Azure resources from a terminal. |
| Azure Functions | Serverless compute that runs small pieces of code in response to events called triggers. |
| Azure Key Vault | Managed store for secrets, encryption keys, and certificates, with full audit logging. |
| Azure Monitor | The platform monitoring service that collects metrics and logs from Azure resources. |
| Azure Policy | Enforces organizational rules (allowed regions, required tags) and reports compliance at scale. |
| Bicep | Microsoft's concise declarative language for infrastructure as code; compiles to ARM templates. |
| Blob Storage | Object storage for unstructured data such as images, videos, and backups. |
| Budget | A Cost Management spending threshold that sends alerts when crossed; it does not stop spending. |
| CapEx (Capital Expenditure) | Upfront spending on physical assets, such as buying servers; the traditional on-premises model. |
| CIDR (Classless Inter-Domain Routing) | Notation like 10.0.0.0/16 that defines a range of IP addresses. |
| Cold Start | The delay when a serverless function runs for the first time after being idle. |
| Contributor | RBAC role that can create and manage resources but cannot grant access to others. |
| DNS (Domain Name System) | Translates domain names (example.com) into IP addresses. |
| Entra ID (Microsoft Entra ID) | Microsoft's cloud identity service for sign-in, MFA, and access management (formerly Azure AD). |
| GRS (Geo-Redundant Storage) | Storage replication to a paired secondary region, for protection against regional outages. |
| Hybrid Cloud | Combining on-premises or private cloud infrastructure with public cloud services. |
| IaaS (Infrastructure as a Service) | Rented virtual hardware (VMs, networks, disks); you manage the OS and applications. |
| IaC (Infrastructure as Code) | Defining infrastructure in version-controlled files (Bicep, ARM, Terraform) instead of clicking. |
| KQL (Kusto Query Language) | Read-only query language for analyzing logs in Log Analytics and Application Insights. |
| LRS (Locally Redundant Storage) | Three copies of data within a single datacenter; the cheapest redundancy option. |
| Load Balancer | Distributes incoming network traffic across multiple backend resources. |
| Log Analytics | The Azure Monitor workspace where logs are stored and queried with KQL. |
| Managed Identity | An Entra ID identity attached to an Azure resource, so apps authenticate without stored credentials. |
| Management Group | A container for subscriptions; used to apply policy and RBAC across many subscriptions at once. |
| Metric | A numeric measurement over time (CPU percent, request count) used in dashboards and alerts. |
| MFA (Multi-Factor Authentication) | Sign-in that requires two or more verification factors, such as password plus phone approval. |
| NSG (Network Security Group) | A set of allow/deny firewall rules for traffic to and from subnets or network interfaces. |
| OpEx (Operational Expenditure) | Pay-as-you-go spending on services as you consume them; the cloud pricing model. |
| PaaS (Platform as a Service) | A managed platform (App Service, SQL Database) where you bring code and data, not servers. |
| Private Endpoint | A private IP inside your VNet for a PaaS service, keeping traffic off the public internet. |
| RBAC (Role-Based Access Control) | Assigns roles (Owner, Contributor, Reader) to identities at a scope to control who can do what. |
| Reader | RBAC role that can view resources but cannot create, change, or delete them. |
| Region | A geographic area containing one or more Azure datacenters. |
| Resource | Any manageable item in Azure: a VM, storage account, web app, database, and so on. |
| Resource Group | A logical container for related resources that share a lifecycle and are managed together. |
| SaaS (Software as a Service) | Complete software delivered over the internet, such as Microsoft 365; you just use it. |
| Scale (horizontal / vertical) | Horizontal (scale out): add more instances. Vertical (scale up): use a bigger instance. |
| Secret | A sensitive value such as a password or API key, stored in Key Vault rather than in code. |
| SLA (Service Level Agreement) | Microsoft's published uptime commitment for a service, such as 99.95 percent. |
| SSH (Secure Shell) | Encrypted protocol for remote command-line administration of Linux machines. |
| Storage Account | The container that provides the namespace for Blob, Files, Queue, and Table storage. |
| Subnet | A range of IP addresses carved out of a virtual network to group resources. |
| Subscription | The billing and access boundary in Azure; resource groups live inside it. |
| Tag | A name/value label on resources (for example, env=prod) used for organization and cost tracking. |
| Tenant | A dedicated instance of Microsoft Entra ID representing one organization. |
| VNet (Virtual Network) | Your isolated private network in Azure, where resources communicate securely. |
| VNet Peering | Connects two virtual networks so their resources communicate privately over the Microsoft backbone. |
| VM (Virtual Machine) | An emulated computer running in the cloud; you manage its operating system. |
| ZRS (Zone-Redundant Storage) | Storage copies spread across availability zones within a single region. |
Troubleshooting Guide — Common Beginner Errors
| Error / Symptom | Likely Cause | Fix |
|---|---|---|
| Portal: subscription is missing or shows 'You do not have access' | You are signed in to the wrong Microsoft Entra directory (tenant), or your access was never granted in this directory. | In the portal, click the gear icon (Settings) - Directories + subscriptions, and switch to the directory that holds your subscription. If it is still missing, ask the subscription owner to grant you access. |
| Free trial subscription shows as Disabled | The 30-day period ended or the $200 credit was fully used. | Upgrade to a pay-as-you-go subscription in the portal (Subscriptions - select it - Upgrade). Set a budget alert immediately so spending stays visible. Delete anything you do not need first. |
| az login opens nothing, hangs, or fails in the terminal | The browser-based sign-in flow cannot complete in your environment. | Run: az login --use-device-code. Open the shown URL on any device, enter the code, and complete sign-in there. Then confirm with: az account list --output table. |
| Deployment fails with 'Resource provider not registered' (for example, Microsoft.Compute) | The subscription has never used that resource type, so its provider is not registered. | Register it once per subscription: az provider register --namespace Microsoft.Compute. Or in the portal: Subscriptions - your subscription - Resource providers - find it - Register. Wait a few minutes and retry. |
| VM deployment fails: quota or 'Operation could not be completed as it results in exceeding quota' | Your subscription has a limit on vCPUs for that VM family in that region (new accounts start low). | Try a smaller VM size or a different region first. For a lasting fix, request a quota increase: Portal - search 'Quotas' - request more vCPUs for the VM family and region. |
| AuthorizationFailed / 403 error when creating or changing a resource | Your identity lacks the RBAC permission for that action at that scope. | Check your role: open the resource group - Access control (IAM) - View my access. Ask an Owner to grant you Contributor (or a narrower role) at the right scope. Never work around this by sharing someone else's account. |
| Storage account creation fails: name is already in use | Storage account names must be globally unique across all of Azure, 3 to 24 characters, lowercase letters and numbers only. | Pick a more unique name, for example adding your initials and a number: mystoreabc123. Validate: az storage account check-name --name mystoreabc123. |
| Cannot SSH into a Linux VM (or RDP into Windows) - connection times out | The network security group does not allow your inbound traffic on port 22 (SSH) or 3389 (RDP). | Open the VM - Networking - add an inbound rule allowing TCP 22 (or 3389) from your public IP only, not from Any. Confirm the VM has a public IP and is running, then retry. |
| Web app on the Free tier returns 403/503 or 'quota exceeded' | The Free (F1) plan has strict daily limits (CPU minutes, bandwidth). Hitting them pauses the app until the quota resets. | Check the Quotas page on the web app to confirm. Reduce load or wait for the daily reset. For real workloads, scale the App Service plan to Basic or higher. |
| Key Vault: 'Access denied' when the app or you try to read a secret | The identity (you or the app's managed identity) has no permission on the vault. | Grant the Key Vault Secrets User role to that identity on the vault: Key Vault - Access control (IAM) - Add role assignment. If the vault uses the older access-policy model, add an access policy instead. Then retry. |
| Budget alert never arrived even though spending passed the threshold | Budgets are evaluated on cost data that can lag 8 to 24 hours, and alert emails can take another hour. Also, alerts do not stop spending. | Wait a day and check Cost Management - Budgets - your budget for the evaluated spend. Confirm the alert recipients list has the right email. Treat budgets as delayed notifications, not real-time guards. |
| Cannot delete a resource group: deletion fails or hangs | A resource lock (CanNotDelete) is protecting something inside, or a resource has dependencies that block deletion. | Check for locks: Resource groups - your group - Locks. Delete the lock, then delete the group again. If it still fails, delete the blocking resources individually first. |
| VM's public DNS name does not resolve (for example, myvm.eastus.cloudapp.azure.com) | The public IP has no DNS label configured, so the name does not exist. | Open the public IP resource - Configuration - set a DNS name label (must be unique in the region), save, and wait a few minutes for DNS to propagate. |
| 'The location is not available for this subscription' when creating a resource | Some regions or resource types are restricted for new or trial subscriptions. | Choose a major region such as East US or West Europe and retry. If you must use that region, request access through a support request. |
| az: command not found, or a command fails on an old CLI version | The Azure CLI is not installed, is outdated, or the needed extension is missing. | Check the version: az version. Upgrade following the official install guide. For missing commands, install the extension: az extension add --name <extension-name>. |
| CLI commands act on the wrong subscription | The CLI is logged in with several subscriptions and the default is not the one you want. | List them: az account list --output table. Then set the right one: az account set --subscription <subscription-id-or-name>. Re-run the command. |
| Unexpected charges on the bill | A resource was left running (VMs and disks bill even when the VM is only stopped, not deallocated) or an experiment was never deleted. | Open Cost Management - Cost analysis, group by Resource, and find the expensive one. Stop (deallocate) or delete what you do not need. Set a budget alert so this cannot surprise you again. |
| Azure Function is slow on first run or times out on the Consumption plan | Cold start: after idle time the function host must start before running your code. The Consumption plan also has execution time limits. | This is expected on Consumption. For latency-sensitive or long-running functions, move to the Flex Consumption or Premium plan, which keeps instances warm. |
Final Self-Assessment
Final check before you call yourself Azure-ready. Fifteen questions covering all three weeks: cloud models, resource management, identity, networking, storage, security, monitoring, and cost. Answer honestly, then use the scoring guide to plan your next step.
- Q1. With an Azure Virtual Machine, who is responsible for patching the operating system?
- A) Microsoft, always
- B) You, the customer
- C) Nobody - VMs are never patched
- D) The internet service provider
- Q2. What happens when you delete a resource group?
- A) Nothing - resource groups cannot be deleted
- B) Only the group metadata is removed
- C) All resources inside the group are deleted
- D) The subscription is cancelled
- Q3. A developer needs to deploy apps in a resource group but must NOT change access. Which role do you assign?
- A) Owner
- B) Reader
- C) Contributor
- D) Global Administrator
- Q4. What is the recommended way for a web app to read a database password?
- A) Hardcode it in the application code
- B) Put it in a public configuration file
- C) Store it in Key Vault and read it using a managed identity
- D) Email it to the team whenever it changes
- Q5. By default, can two subnets in the SAME virtual network communicate with each other?
- A) No, never
- B) Yes, traffic between subnets is allowed by default; NSGs can restrict it
- C) Only if they have the same name
- D) Only after buying a VPN gateway
- Q6. What does GRS give you that LRS does not?
- A) Faster disk performance
- B) A copy of your data in a secondary region
- C) Free storage
- D) Larger file sizes
- Q7. Availability Zones are mainly used to protect against:
- A) Accidental file deletion
- B) Datacenter-level failures within a region
- C) Stolen passwords
- D) High prices
- Q8. An App Service plan primarily defines:
- A) Your custom domain name
- B) The pricing tier and compute resources shared by apps on the plan
- C) The language your app is written in
- D) Your backup retention
- Q9. In Azure Functions, a trigger is:
- A) A security alert
- B) The event that starts the function (HTTP request, timer, new blob, queue message)
- C) A billing threshold
- D) A type of storage account
- Q10. In the KQL query 'requests | where success == false | take 10', what does 'take 10' do?
- A) Deletes 10 rows
- B) Returns the first 10 rows of the result
- C) Waits 10 seconds
- D) Counts 10 servers
- Q11. How do metrics and logs differ in Azure Monitor?
- A) They are the same thing
- B) Metrics are numeric time-series values; logs are detailed event records you query with KQL
- C) Logs are numbers; metrics are text
- D) Metrics can only be viewed in the CLI
- Q12. What is the difference between Azure Policy and RBAC?
- A) They are identical
- B) RBAC controls who can perform actions; Policy controls what configurations resources are allowed to have
- C) Policy is only for billing
- D) RBAC is only for on-premises servers
- Q13. Which Cost Management statement is TRUE?
- A) A budget stops resources when spending reaches the limit
- B) A budget sends alerts when thresholds are crossed, but does not cap spending
- C) Tags cannot be used in cost reports
- D) Cost data appears in real time, second by second
- Q14. Which pair of parameters is REQUIRED for 'az group create'?
- A) --name and --location
- B) --subscription and --tag
- C) --owner and --budget
- D) --vm-size and --image
- Q15. You see an unexpected charge. What is the best FIRST step?
- A) Delete your subscription immediately
- B) Open Cost Management - Cost analysis, group by Resource, identify what is spending, then shut down or delete what you do not need
- C) Ignore it - small charges always reverse themselves
- D) Create a new account
Answer key & explanations (open after you finish)
- Q1 — Answer: B. VMs are IaaS: Microsoft manages the physical host; you own the guest OS, patching, and configuration. PaaS services like App Service shift patching to Microsoft.
- Q2 — Answer: C. Deleting a resource group deletes everything inside it. That is why one group per project is such a powerful cleanup pattern.
- Q3 — Answer: C. Contributor deploys and manages resources but cannot assign roles. Owner would over-grant; Reader cannot change anything.
- Q4 — Answer: C. Managed identity plus Key Vault means no secret exists in code or settings, access is audited, and there is nothing to leak or rotate manually.
- Q5 — Answer: B. Azure routes traffic between subnets in a VNet automatically. You add NSG rules when you want to restrict that traffic.
- Q6 — Answer: B. GRS (geo-redundant storage) asynchronously replicates to a paired region. LRS keeps all copies inside one datacenter.
- Q7 — Answer: B. Zones are separate datacenters in a region. Spreading an app across zones keeps it running if one datacenter fails.
- Q8 — Answer: B. You pay for the plan, not the apps. Tier, size, and instance count on the plan determine cost and performance.
- Q9 — Answer: B. Every function has exactly one trigger. Bindings then connect the running function to input/output data sources.
- Q10 — Answer: B. take limits the number of rows returned - useful when exploring large tables before writing a bigger query.
- Q11 — Answer: B. Use metrics for dashboards and fast threshold alerts. Use logs for investigation, correlation, and detailed analysis.
- Q12 — Answer: B. RBAC = identity permissions. Policy = resource rules (allowed regions, SKUs, required tags) plus compliance reporting.
- Q13 — Answer: B. Budgets notify; they do not enforce a hard stop. Cost data typically lags hours, which is another reason alerts are early warnings, not guards.
- Q14 — Answer: A. az group create --name myRg --location eastus is the minimal form. Every resource group needs a name and a location for its metadata.
- Q15 — Answer: B. Investigate first: find the resource driving the cost, then deallocate or delete it. Deleting the subscription destroys your work and proof of what happened.
Scoring guide
13 to 15 correct: Strong foundation. You are ready for the AZ-900 exam and for intermediate topics: deeper networking, Bicep and Terraform, and containers. 9 to 12: Solid base. Review the weekly review for each question you missed, redo one or two labs from those days, then attempt the capstone. 5 to 8: The concepts are forming but the hands-on muscle is missing. Repeat the labs (not just the reading) for your weakest week and retake this assessment in a week. 0 to 4: Restart the workshop at a slower pace, one day at a time, and do every lab step in the portal or CLI - Azure is learned by building, not by reading.
Learner Progress Tracker
Completed: 0 / 0. Tick a day when you have finished its lab, assignment, and assessment. Progress is saved automatically in this browser (local storage).
| Day | Topic | Done |
|---|---|---|
| Day 1 | Introduction to Cloud Computing and Microsoft Azure | |
| Day 2 | IaaS, PaaS, SaaS, Shared Responsibility, and Cloud Deployment Models | |
| Day 3 | Azure Regions, Availability Zones, Subscriptions, and Resource Groups | |
| Day 4 | Azure Portal, Cloud Shell, Azure CLI, and PowerShell Introduction | |
| Day 5 | Microsoft Entra ID, Users, Groups, Authentication, and Identity Basics | |
| Day 6 | Azure RBAC, Least Privilege, and Access Management | |
| Day 7 | Week 1 Review: Consolidate Cloud and Azure Fundamentals | |
| Day 8 | Azure Virtual Machines and Operating System Basics | |
| Day 9 | Azure Virtual Network, Subnets, IP Addresses, and Network Security Groups | |
| Day 10 | DNS, Connectivity, and Basic Network Troubleshooting | |
| Day 11 | Azure Storage Accounts, Blobs, Containers, and File Shares | |
| Day 12 | Azure App Service and Basic Web Application Deployment | |
| Day 13 | Azure Functions and Serverless Computing Fundamentals | |
| Day 14 | Week 2 Practical Lab and Assessment | |
| Day 15 | Azure Key Vault and Secrets Management | |
| Day 16 | Azure Monitor, Metrics, Logs, and Alerts | |
| Day 17 | Log Analytics Workspace and Introductory KQL | |
| Day 18 | Azure Backup, Recovery, and Resilience Fundamentals | |
| Day 19 | Azure Cost Management, Pricing, Budgets, and Cleanup | |
| Day 20 | Azure Policy, Governance, and Resource Tagging | |
| Day 21 | Azure CLI and PowerShell Hands-On Automation | |
| Day 22 | Infrastructure as Code Concepts and Introduction to Bicep | |
| Day 23 | Deploy Azure Resources Using a Bicep Template | |
| Day 24 | Git and GitHub Fundamentals for Azure Learners | |
| Day 25 | Deployment Workflows and Your First Look at Azure DevOps | |
| Day 26 | Troubleshooting with Logs and Metrics | |
| Day 27 | Best Practices Review: Identity, Networking, Security, Operations | |
| Day 28 | Final Project: Plan and Design | |
| Day 29 | Final Project: Build, Test, Document | |
| Day 30 | Demo Day, Final Review, and Your Learning Roadmap |
All External Resources
Every link used in this workshop, with its verification status. Links marked Needs verification could not be confirmed at authoring time — check before relying on them. Azure portal screens, service names, and prices change over time; if something looks different, the official documentation wins.