1. VNet and NSG #
The private network and its filtering.
Basics #
A VNet is a private network in a region, split into subnets. NSGs filter traffic with prioritized rules (allow or deny, stateful) and are attached to a subnet or a network interface. Application security groups let you write rules per role (web, database) rather than per address.
az network vnet create -g rg-reseau -n vnet-app --address-prefixes 10.1.0.0/16 --subnet-name web --subnet-prefixes 10.1.1.0/24
az network nsg create -g rg-reseau -n nsg-web
az network nsg rule create -g rg-reseau --nsg-name nsg-web -n https --priority 100 --access Allow --protocol Tcp --destination-port-ranges 443
az network vnet subnet update -g rg-reseau --vnet-name vnet-app -n web --network-security-group nsg-web2. Connecting and protecting #
Peering, hub and spoke, Private Endpoint.
Architecture #
| Need | Service |
|---|---|
| Connecting two VNets | Peering (low latency, non-transitive) |
| Private access to a PaaS service | Private Endpoint (private address in the VNet) |
| Centralized filtering | Azure Firewall |
| Administrator access without a public IP | Azure Bastion |
| Connecting the company site | VPN Gateway (encrypted Internet) or ExpressRoute (private link) |
3. Exposing an application #
Load balancing and delivery.
Choosing #
| Service | Level | Usage |
|---|---|---|
| Load Balancer | Layer 4 (TCP/UDP), regional | Balancing VMs |
| Application Gateway | Layer 7, regional, WAF | Web applications, path-based routing |
| Front Door | Layer 7, global, WAF, CDN | Global applications, failover between regions |
| Traffic Manager | DNS, global | Routing by priority, performance or geography |
Advice #
Good practice: Combine Front Door (global) with Application Gateway or regional PaaS services behind Private Link so that nothing is exposed directly on the Internet.
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Azure best practices: landing zone, security, reliability and costs
Best practices for running Azure in production: landing zone and management groups, identities an...
Monitoring and protecting Azure: Monitor, Log Analytics, Defender, Key Vault and Backup
Operate Azure: Azure Monitor (metrics, activity logs, alerts), Log Analytics and KQL, Application...
Microsoft Entra ID, RBAC and Azure Policy: identities, permissions and governance
Manage identities and access on Azure: Microsoft Entra ID (users, groups, MFA, conditional access...
Preparing for the Microsoft Azure Fundamentals certification (AZ-900)
Preparation guide for the AZ-900: format, the three domains and their weightings, notions to mast...
Compute on Azure: virtual machines, App Service, Functions and containers
Choose and use Azure compute: virtual machines and scale sets (VMSS), App Service, Azure Function...
Databases on Azure: Azure SQL, Cosmos DB, PostgreSQL and cache
Choose a managed database on Azure: Azure SQL Database and Managed Instance, Azure Database for P...
Infrastructure as Code on Azure: Bicep, Terraform, Cost Management and Well-Architected
Describe and deploy Azure as code with Bicep (modules, parameters, what-if, pipeline deployments)...
Preparing for the Azure Administrator Associate certification (AZ-104)
Preparation guide for the AZ-104: format, the five domains (identities and governance, storage, c...
Understanding Azure: regions, resource hierarchy, tools and pricing
Microsoft Azure basics: geographies, regions, region pairs and availability zones, the hierarchy ...