Module Introduction
Hello, cloud explorer! ๐ In Module Three, we built the brain (compute). Now, we need to connect everything. Networking is the superhighway that lets your resources talk to each other and to the world. In this module, we will learn about Virtual Networks (VNets), subnets, security groups, load balancers, and how to connect to on-premises networks. You will become the traffic controller of your cloud! ๐ฆ
Imagine a city called Cloudville. It has many buildings (VMs), schools (App Services), and warehouses (Storage). The city has roads (Networks) that connect everything. Some roads are small alleys (subnets), some are big highways (VNets). The city has traffic lights (NSGs) to control who goes where. There are also bridges (VNet peering) to connect to other cities. And the city has a gate (VPN Gateway) for visitors from outside. This is exactly how Azure Networking works! ๐
Definition: Azure Networking is the service that connects your Azure resources to each other and to the internet. It's the communication system of the cloud.
Why important: Without networking, your VM, storage, and apps would be isolated โ they couldn't talk to each other or to users.
Simple explanation: It's like the roads and highways that let cars travel between homes, schools, and shops.
Real-life example: When you visit a website, networking takes your request to the server and brings back the page.
School example: The school's Wi-Fi network connects all computers to the internet.
Home example: Your home Wi-Fi connects your phone, laptop, and TV.
Nigerian example: A Lagos company uses Azure Networking to connect its offices to the cloud.
+------------------+ | AZURE NETWORK | | (connects all) | +------------------+
Mini summary: Networking is the cloud's communication system.
Definition: A Virtual Network (VNet) is the main private network in Azure. It's like a huge highway system within the cloud.
Why important: VNets provide a secure, private space for your resources to communicate.
Simple explanation: It's like a private road system that only your resources can use.
Real-life example: A company creates a VNet for all its Azure resources.
School example: The school has a private network for all its computers.
Home example: Your home Wi-Fi network is a VNet for your devices.
Nigerian example: A fintech uses a VNet to isolate its payment systems.
+------------------+ | VIRTUAL NETWORK | | (private cloud | | highway) | +------------------+
Mini summary: A VNet is your private network in Azure.
Definition: Subnets divide a VNet into smaller, more manageable sections. It's like breaking a big city into neighbourhoods.
Why important: Subnets help organise resources and improve security.
Simple explanation: It's like having a street for houses, another for shops, and another for schools.
Real-life example: A company puts its web servers in one subnet and databases in another.
School example: The school has a subnet for teachers and another for students.
Home example: Your home network has a subnet for computers and another for smart TVs.
Nigerian example: A bank puts its customer-facing apps in a public subnet and internal services in a private subnet.
+------------------+ | VNet | | +-------+ | | |subnet1| | | +-------+ | | +-------+ | | |subnet2| | | +-------+ | +------------------+
Mini summary: Subnets divide a VNet into smaller parts.
Definition: An IP address is a unique number given to every resource in a VNet. It's like a house number on a street.
Why important: IP addresses allow resources to find and talk to each other.
Simple explanation: It's like your home address โ without it, mail can't reach you.
Real-life example: Your computer has an IP address when connected to Wi-Fi.
School example: Each school computer has a unique IP address.
Home example: Your phone and laptop have different IP addresses.
Nigerian example: Each server in a company's data centre has an IP address.
+------------------+ | IP ADDRESS | | (like a house | | number) | | Example: | | 10.0.1.4 | +------------------+
Mini summary: IP addresses identify resources in a network.
Definition: An NSG is a set of rules that allow or deny traffic to a resource. It's like a traffic cop directing cars.
Why important: NSGs are the first line of defence for your resources.
Simple explanation: It's a security guard that decides who can enter your network.
Real-life example: A company's firewall is like an NSG.
School example: The school's security guard checks who comes in.
Home example: Your parents decide who can visit your home.
Nigerian example: A bank uses NSGs to block unauthorised access to its servers.
+------------------+ | NSG RULES | | Allow SSH | | Allow HTTP | | Deny all others | +------------------+
Mini summary: NSGs control traffic to your resources.
Definition: ASGs let you group VMs logically (e.g., "Web servers") and apply NSG rules to those groups.
Why important: It's easier than using individual IP addresses.
Simple explanation: Like having team cards โ all team members have the same permissions.
Real-life example: All web servers in a group can receive HTTP traffic.
School example: All teachers in the "Staff" group have access to the staff room.
Home example: All family members in the "Family" group share a Netflix account.
Nigerian example: A company groups all frontend VMs in one ASG.
+------------------+ | ASG: "Web" | | +-------+ | | | VM1 | | | | VM2 | | | +-------+ | +------------------+
Mini summary: ASGs help you group VMs for security rules.
Definition: A Load Balancer distributes incoming traffic across multiple VMs to ensure no single VM gets overloaded.
Why important: It improves availability and performance.
Simple explanation: Like a school principal dividing students evenly among classrooms.
Real-life example: A popular website uses a load balancer to handle millions of visitors.
School example: The school uses a load balancer for its exam registration system.
Home example: You share chores equally among family members.
Nigerian example: A Lagos e-commerce site uses a load balancer during sales.
+------------------+ | LOAD BALANCER | | (distributes | | traffic) | | +-------+ | | | VM1 | | | | VM2 | | | +-------+ | +------------------+
Mini summary: Load Balancers distribute traffic across VMs.
Definition: Application Gateway is a layer 7 load balancer that can route traffic based on URL, cookies, and more. It also provides SSL termination.
Why important: It's smarter than a basic load balancer โ it can route to different services based on the request.
Simple explanation: Like a traffic cop who not only directs cars but also sends trucks to the truck route and cars to the car route.
Real-life example: A shopping site routes "/products" to product VMs and "/cart" to cart VMs.
School example: The school website routes "/students" to student pages and "/teachers" to teacher pages.
Home example: You use different apps for different tasks.
Nigerian example: A news website routes "/sport" and "/business" to different backend services.
+------------------+ | APP GATEWAY | | (smart routing) | | /api -> VM1 | | /image -> VM2 | +------------------+
Mini summary: Application Gateway routes traffic based on rules.
Definition: VNet peering connects two VNets so they can communicate. It's like building a bridge between two cities.
Why important: It allows resources in different VNets to talk to each other.
Simple explanation: Like a tunnel between two buildings.
Real-life example: A company connects its production VNet and development VNet via peering.
School example: The school connects its main building to the new wing via a covered walkway.
Home example: You connect your house network to the garage network.
Nigerian example: A bank connects its main office VNet to its disaster recovery VNet.
+--------+ +--------+ | VNet1 |-----| VNet2 | | (City1)| | (City2)| +--------+ +--------+
Mini summary: VNet peering connects two VNets.
Definition: A VPN Gateway is a service that connects your on-premises network (like your office) to Azure over the internet securely.
Why important: It's like a secure tunnel for data between your office and the cloud.
Simple explanation: Like a secret underground tunnel that only you can use.
Real-life example: A company connects its office network to Azure via a VPN Gateway.
School example: Teachers at home can connect to the school's network securely.
Home example: You use a VPN to securely access your home network from a cafรฉ.
Nigerian example: A company in Abuja connects its branch office in Lagos to Azure via VPN.
+--------+ +--------+ | Office |=====| Azure | | (your) | VPN | (cloud)| +--------+ +--------+
Mini summary: VPN Gateway connects your office to Azure securely.
Definition: ExpressRoute is a private, dedicated connection from your office to Azure. It's like having your own private highway.
Why important: It's faster and more secure than VPN over the internet.
Simple explanation: Like having a private road that only you can use.
Real-life example: A large company uses ExpressRoute for critical applications.
School example: A university uses ExpressRoute to connect to research data.
Home example: Not for homes โ it's expensive and for big businesses.
Nigerian example: A large bank uses ExpressRoute for high-volume transactions.
+--------+ +--------+ | Office |=====| Azure | | (your) |PRIVATE| (cloud)| +--------+ +--------+
Mini summary: ExpressRoute is a private dedicated connection.
Definition: Azure DNS is a service that translates domain names (like google.com) to IP addresses. It's like a phonebook for the internet.
Why important: Humans remember names, but computers use numbers. DNS bridges the gap.
Simple explanation: Like a phonebook that tells you the phone number of a person's name.
Real-life example: When you type "azure.com", DNS translates it to an IP address.
School example: The school's website is remembered as "myschool.edu", not an IP.
Home example: You use google.com instead of a long number.
Nigerian example: A Nigerian company registers its domain on Azure DNS.
+------------------+ | DNS | | Name: azure.com | | IP: 13.107.4.52| +------------------+
Mini summary: DNS translates names to IP addresses.
Definition: Azure Firewall is a managed, cloud-based network security service that protects your VNet. It's like a castle wall.
Why important: It provides centralised, high-level security.
Simple explanation: Like a security guard at the main gate of your city.
Real-life example: A company uses Azure Firewall to inspect all incoming traffic.
School example: The school has a main security gate for visitors.
Home example: Your home has a front door with a lock.
Nigerian example: A bank uses Azure Firewall to protect its cloud network.
+------------------+ | AZURE FIREWALL | | (gatekeeper) | | +----------+ | | |rules | | | +----------+ | +------------------+
Mini summary: Azure Firewall protects your network.
Definition: Network Watcher is a tool that helps you monitor, diagnose, and troubleshoot network issues. It's like a doctor for your network.
Why important: It helps you find and fix problems quickly.
Simple explanation: Like a mechanic who checks your car when it's not working.
Real-life example: An admin uses Network Watcher to test if a VM can connect to storage.
School example: The IT teacher uses Network Watcher to diagnose Wi-Fi issues.
Home example: You use Network Watcher to check your internet connection.
Nigerian example: A company uses Network Watcher to troubleshoot VPN issues.
+------------------+ | NETWORK WATCHER | | (diagnostic | | tool) | +------------------+
Mini summary: Network Watcher helps diagnose network problems.
Definition: Virtual Network NAT (Network Address Translation) allows resources in a private subnet to connect to the internet, but not be directly accessible from the internet.
Why important: It provides outbound internet access for VMs without public IPs.
Simple explanation: Like a post office โ you can send mail out, but people can't send mail directly to you.
Real-life example: A server needs to download updates from the internet.
School example: School computers can browse the internet, but are not directly accessible from outside.
Home example: Your devices can access the internet, but outsiders can't see them.
Nigerian example: A bank's internal servers use NAT to access cloud services.
+------------------+ | NAT GATEWAY | | (outbound only) | | VM -> Internet | | Internet -> VM | (blocked) +------------------+
Mini summary: NAT provides outbound internet access.
| Word | Simple meaning |
|---|---|
| VNet | Private network in Azure |
| Subnet | Smaller section of a VNet |
| IP Address | Unique number for a resource |
| NSG | Security rules for traffic |
| ASG | Logical group of VMs |
| Load Balancer | Distributes traffic |
| Application Gateway | Smart traffic router |
| VNet Peering | Connects two VNets |
| VPN Gateway | Secure tunnel to on-premises |
| DNS | Translates names to IPs |
| Service | What it does | Everyday item |
|---|---|---|
| VNet | Private network | City |
| Subnet | Divides VNet | Neighbourhood |
| NSG | Security rules | Security guard |
| Load Balancer | Distributes traffic | Traffic police |
| VPN Gateway | Secure tunnel | Secret tunnel |
Each lesson includes a mini summary, as shown above.
In this module, we explored the world of Azure Networking. We learned that VNets are private networks that hold your resources. Subnets divide VNets for better organisation. IP addresses identify each resource. NSGs and ASGs control traffic flow. We discovered Load Balancers and Application Gateways that distribute traffic. VNet peering connects networks, while VPN Gateway and ExpressRoute connect to on-premises. We also learned about Azure DNS, Firewall, Network Watcher, and NAT. You now know how to build and manage a cloud network! ๐
| Term | Match |
|---|---|
| VNet | City |
| Subnet | Neighbourhood |
| NSG | Security guard |
| Load Balancer | Traffic police |
| VPN Gateway | Secret tunnel |
In groups, design a network architecture for a small company. Include VNet, subnets, NSGs, and a Load Balancer. Present your diagram and explain your choices.
Draw a detailed network diagram for a three-tier application (web, app, database). Show the VNet, subnets, and NSG rules for each tier.
Build a poster that shows a VNet with two subnets: one for web servers and one for database servers. Add an NSG that allows web servers to talk to databases, but not the other way.
With a free Azure account, create a VNet with two subnets. Then, create two VMs in different subnets and test connectivity. Document your steps.
Without looking at the portal, write the steps to create a VNet and add an NSG rule to allow HTTP traffic. Then, check your steps against the portal.
All answers are provided within each question section above.
In Module Five, we will explore Monitoring and Backup in Azure. We'll learn how to keep an eye on your resources, set up alerts, and protect your data with backups. Get ready to become a cloud guardian! ๐ก๏ธ
End of Module Four โ You are now a network expert! ๐ฃ๏ธ