متقدم
البحث فيالملخصات
طريقة البحث
  • الكلمات تجد عناوين الدروس والنص والكود. صفِّ حسب النوع (أدلة، دورات، برامج، كتب) أو ابقَ في هذا الكتاب.
  • book:rhcsa و ch:8 يضيّقان البحث؛ ‎#code يجد الكلمة داخل أوامر الدروس فقط.
  • "كلمتان" تجد العبارة بالضبط.
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث
جرّب:

الدورة 4الاسم في الدورة: AZ 104 - 3 - Azure Virtual Networking

Azure Virtual Networking

Course 4 of 7 in the AZ-104 path on Manara. Create and plan virtual networks.

ملاحظة

My result — Tasks in this course: all done (30/30); Module review quizzes: 100% (each module); Path progress: all 197 tasks of the 7 courses done; Mock exams: both passed — 92% and 98% (80% to pass).

Course page: Manara

  • 7 الدروس
  • 2 الأوامر
  • 1 المعامل

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

$ مستخدم عادي# بصلاحية root (أو مع sudo)

4.1

Creating Virtual Networks

A Virtual Network (VNet) is your own private network in Azure.

  • You split a VNet into smaller subnets.
  • Each subnet gets its own IP range.
  • CIDR is a short way to write an IP range, like 10.0.0.0/16.
  • A public subnet can reach the internet.
  • A private subnet has no direct internet access.
  • A private endpoint gives an Azure service a private IP in your subnet.
  • A service endpoint keeps traffic on the Azure network, but the service still uses a public IP.
  • Custom DNS servers let you control name lookup inside a VNet.
  • Private DNS zones give correct names to private endpoints.

In more detail

  • Plan the VNet range first, for example 10.0.0.0/16. Do not reuse an IP range, because overlaps break peering and hybrid links.
  • Use small ranges like /27 or /28 for small workloads. This saves IP space.
  • Split by job. In the course example, web is 10.0.0.0/24, app is 10.0.1.0/24, and database is 10.0.2.0/24.
  • To use a private endpoint, turn it on in the portal. Link it to a subnet. Update the private DNS zone. Then protect traffic with NSGs and Azure Firewall.
  • To use a service endpoint, open the VNet settings. Choose the Azure service. Then add a virtual network rule on the service side.
  • Private endpoints need DNS changes. Service endpoints do not. Service endpoints are good for fast, high-volume data. Private endpoints are good for sensitive data.
  • For custom DNS, set the DNS server IPs on the VNet. Link the private DNS zone to the VNet. Then test with nslookup or dig from a VM. Note: one task in this module is a video with no text.

4.2

Network Security Groups (NSGs) & Firewalls

A Network Security Group (NSG) filters traffic at the subnet or network card level.

  • NSG rules look at source, destination, port, and protocol.
  • NSGs work at Layer 4 and they are stateful.
  • Lower rule numbers are checked first.
  • NSGs have default rules. One denies inbound traffic from the internet.
  • Azure Firewall is a managed firewall for the whole network.
  • Azure Firewall works at Layer 7. It can filter by domain name.
  • Azure Firewall has threat intelligence from Microsoft.
  • NSGs are good for local control. A firewall is good for central control.
  • The course puts the firewall in a hub VNet.

In more detail

  • To create an NSG, open the portal and make a new NSG. Attach it to a subnet or a network interface.
  • Then add inbound and outbound rules. For example, allow port 443 only, and deny other ports.
  • Do not use "Allow Any" rules. Use small IP ranges and check the rules often.
  • Azure Network Watcher shows the effective rules on a VM. Flow logs show allowed and denied traffic.
  • Azure Firewall has three rule types. A network rule uses IP, port, and protocol. An application rule uses a full domain name or URL. A NAT rule changes a private IP to a public IP.
  • Use both. NSGs stop traffic near the subnet. The firewall checks traffic between VNets and the internet.
  • Example in the course: the web subnet allows 80 and 443. The app subnet takes traffic only from the web tier. The database subnet has no internet access.
  • Firewall logs can go to Log Analytics, Microsoft Sentinel, or a storage account.

4.3

Hybrid Connectivity in Azure

Hybrid connectivity joins your office network to Azure.

  • A Site-to-Site VPN links a whole network to a VNet.
  • A Site-to-Site VPN uses an encrypted tunnel over the internet.
  • A Point-to-Site VPN links one device to a VNet.
  • A Point-to-Site VPN uses a small VPN client on the device.
  • ExpressRoute is a private line. It does not use the public internet.
  • Every VPN needs a subnet named GatewaySubnet.
  • A VPN Gateway takes time to deploy.
  • ExpressRoute is faster and costs more than a VPN.
  • The course compares all three options.

In more detail

  • For a Site-to-Site VPN, make GatewaySubnet first. The course example is 10.0.255.0/27. Then create the VPN Gateway and pick a SKU that fits your speed needs.
  • Set up the office VPN device with the public IP of the Azure gateway. Add a Local Network Gateway for the office range, then connect the two gateways.
  • For a Point-to-Site VPN, allow users to log in with certificates or with Microsoft Entra ID. Clients get a private IP when they connect.
  • Download the client package from the portal, then install it on the device.
  • For ExpressRoute, work with a telecom provider to get a circuit. Then create a Virtual Network Gateway and link it to the circuit.
  • Choose private peering for VNet traffic. Choose Microsoft peering for Azure services.
  • ExpressRoute bandwidth goes from 50 Mbps to 100 Gbps. One circuit can reach many regions. Note: one task in this module is a video with no text.

4.4

Azure Load Balancing & Traffic Management

Load balancing spreads traffic over many servers.

  • Azure Load Balancer works at Layer 4 with TCP and UDP.
  • Load Balancer can be public (internet) or internal (private VNet).
  • Traffic Manager balances traffic with DNS.
  • Traffic Manager has priority, performance, geographic, and weighted routing.
  • Application Gateway works at Layer 7 with HTTP and HTTPS.
  • Application Gateway can stop SSL and can run a WAF.
  • Front Door is a global Layer 7 balancer with a CDN.
  • Azure CDN keeps copies of files at edge sites.
  • Pick the tool that matches the layer and the region scope.

In more detail

  • Load Balancer needs a backend pool and a health probe. The probe checks if a VM is healthy. Outbound rules use SNAT so VMs can reach the internet.
  • Traffic Manager sends users to the best endpoint. If a site is down, it moves traffic to a backup.
  • Application Gateway can route by URL path or by host name. This helps when one gateway serves many apps.
  • SSL termination on the gateway saves CPU on the backend servers.
  • The WAF on Application Gateway protects against the OWASP Top 10, like SQL injection and XSS.
  • Front Door sends users to the nearest healthy backend. It adds WAF and DDoS protection.
  • CDN caches images, video, and scripts. This lowers latency and takes load off the origin.
  • Pick the tool by layer and scope. Use Load Balancer for VMs in one region. Use Application Gateway for a regional web app. Use Front Door or Traffic Manager for many regions. Use CDN for static files. Note: two tasks in this module are videos with no text.

4.5

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
A recordA DNS record that maps a name to an IPv4 address.
Application GatewayA Layer 7 load balancer for web apps.
Azure FirewallA managed network firewall with Layer 7 filtering.
Azure Load BalancerA Layer 4 service that spreads TCP and UDP traffic over VMs.
CDNA network of edge sites that cache content.
CIDRA short way to write an IP range.
DNS zoneA part of the DNS namespace with its own records.
ExpressRouteA private, dedicated link to Azure.
ExpressRoute circuitThe private line you get from a provider.
FQDNA full domain name, like www.example.com.
Front DoorA global Layer 7 balancer and CDN.
GatewaySubnetThe special subnet that hosts the VPN gateway.
Global ReachA feature that links several office sites through ExpressRoute.
Health probeA test that checks if a backend is alive.
Hub VNetThe central VNet where shared services like the firewall sit.
IPsec/IKEThe protocol pair that encrypts VPN traffic.
Load BalancerA Layer 4 service that spreads traffic over VMs.
Local Network GatewayThe Azure object that describes your office network.
Module 01VNet, subnet, CIDR, private endpoint, service endpoint, private DNS zone.
Module 02NSG, Azure Firewall, hub VNet, WAF.
Module 03Site-to-Site VPN, Point-to-Site VPN, ExpressRoute, GatewaySubnet.
Module 04Load Balancer, Traffic Manager, Application Gateway, Front Door, CDN, health probe.
NAT ruleA rule that changes a private IP into a public IP.
Network Security Group (NSG)Allow and deny rules for a subnet or network card.
NSGA set of allow and deny rules for a subnet or network card.
OriginThe server where the real content lives.
PeeringThe link type that connects the circuit to Azure.
Point-to-Site VPNA tunnel from one device to a VNet.
Private DNS zoneA DNS zone that resolves private names.
Private endpointA private IP for an Azure service inside your subnet.
Service endpointA route from a subnet to a service over the Azure network.
Site-to-Site VPNA tunnel between a whole network and a VNet.
SNATA translation that lets private VMs use a public IP.
Spoke VNetA VNet that connects to the hub.
SSL terminationDecrypting HTTPS at the gateway, not the server.
StatefulThe service remembers the session, so reply traffic is allowed.
SubnetA smaller IP range inside a VNet.
Threat intelligenceA feed of known bad IPs and domains.
Traffic ManagerA DNS-based global traffic router.
Virtual Network (VNet)Your own private network in Azure.
VNetYour private network in Azure.
WAFA firewall that blocks common web attacks.
Web Application Firewall (WAF)A firewall that blocks common web attacks.

4.6

Check yourself

Answer each question first, then open it to check the answer.

1Why should two VNets not use the same IP range?

Because peering and hybrid links break when ranges overlap.

2What is the main difference between a private endpoint and a service endpoint?

A private endpoint uses a private IP in your subnet. A service endpoint keeps the public IP but routes traffic on the Azure network.

3Which DNS record type maps a name to an IPv4 address?

An A record.

4Which rule wins in an NSG if two rules match?

The rule with the lower priority number.

5Why does the course put Azure Firewall in a hub VNet?

So it can check traffic for all spoke VNets in one place.

6Does an NSG have threat intelligence?

No. Only Azure Firewall has it.

7Which VPN type is best for one worker at home?

A Point-to-Site VPN.

8What must you create before a VPN Gateway?

A subnet named GatewaySubnet.

9Why does ExpressRoute cost more than a VPN?

It is a private, dedicated line with high bandwidth.

10Which service balances traffic using DNS?

Azure Traffic Manager.

11Which service can decrypt HTTPS and run a WAF in one region?

Azure Application Gateway.

12When is a CDN a good choice?

When the app serves many static files and users are spread around the world.

تدرّب

كل الأوامر في هذا الفصل