Core infrastructure security in Azure
DDoS Protection, Azure Firewall, Web Application Firewall, network segmentation, NSGs, Azure Bastion and Azure Key Vault.
- 15 min
- 7 concepts
- Try it yourself
- 4-question check
Learn
These services protect the network layers of defence in depth, and keep secrets out of code. Know what each protects against and where it sits.
- 1
Describe Azure DDoS Protection
A distributed denial of service (DDoS) attack floods a service with traffic to make it unavailable. Every Azure resource gets basic infrastructure protection. DDoS Network Protection and DDoS IP Protection add tuning to your traffic, attack telemetry and alerts, and rapid response support.
Remember: DDoS = flood of traffic to knock you offline.
- 2
Describe Azure Firewall
Azure Firewall is a managed, cloud-based network firewall with built-in high availability and scaling. It filters traffic by IP, port, protocol and fully qualified domain name, uses Microsoft threat intelligence, and is often placed in a hub VNet to inspect traffic between spokes and the internet. Premium adds TLS inspection and IDPS.
Remember: Central, stateful firewall for whole networks.
- 3
Describe Azure Web Application Firewall (WAF)
WAF protects web apps from common exploits such as SQL injection and cross-site scripting, based on the OWASP rule sets. It runs on Azure Application Gateway, Azure Front Door and Azure CDN.
Remember: WAF protects web apps at layer 7.
- 4
Describe network segmentation with Azure virtual networks
Segmentation splits networks into smaller parts so an attacker who gets into one can't easily reach the rest. VNets are isolated from each other by default, and subnets plus NSGs and firewalls control traffic between segments.
Remember: Segment to limit the blast radius.
- 5
Describe network security groups (NSGs)
An NSG filters traffic to and from resources in a VNet with inbound and outbound rules (source, destination, port, protocol, allow or deny) processed in priority order. NSGs attach to subnets or network interfaces. They're simpler and cheaper than Azure Firewall but work within a VNet.
Remember: NSGs filter; Azure Firewall inspects centrally.
- 6
Describe Azure Bastion
Azure Bastion gives secure RDP and SSH to VMs over TLS from the Azure portal or a native client, so VMs don't need public IP addresses and management ports aren't exposed to the internet.
Remember: No public IPs on VMs: use Bastion.
- 7
Describe Azure Key Vault
Key Vault stores and controls access to secrets (passwords, connection strings), keys (encryption keys, optionally in hardware security modules) and certificates. Access is controlled with Azure RBAC and logged, so apps don't keep secrets in code.
Remember: Never put secrets in code: Key Vault.
What each service protects
| Service | Protects against |
|---|---|
| DDoS Protection | Traffic floods |
| Azure Firewall | Unwanted traffic across networks |
| Web Application Firewall | Web exploits such as SQL injection |
| NSG | Unwanted traffic to subnets or NICs |
| Azure Bastion | Exposed RDP and SSH ports |
| Key Vault | Secrets leaked from code |
Try it
Test traffic against an NSG and see which rule decides.
This interactive part needs JavaScript.
In the portal
- Create a firewallAzure portal: Firewalls > Create
- Create a key vaultAzure portal: Key vaults > Create
Key terms
Click a card to see the definition.
Check your understanding
4 questions. Score 80% or more and these skills are marked as confident in your SC-900 study plan.
Which protects a web app from SQL injection?
WAF uses OWASP rules for web exploits.
How do you RDP to VMs without public IPs?
Bastion connects over TLS from the portal.
Where should an app's database password be stored?
Key Vault stores secrets securely.
Which can filter by fully qualified domain name across a hub network?
Azure Firewall supports FQDN filtering.
Sources
- Microsoft Learn: Describe core infrastructure security services in Azure
- Microsoft Learn: What is Azure Firewall?
- Microsoft Learn: What is Azure Web Application Firewall?
- Microsoft Learn: Azure DDoS Protection overview
- Microsoft Learn: About Azure Key Vault
Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.