Core infrastructure security in Azure

SC-900 Security, Compliance and IdentityMicrosoft security solutionsAbout 20 minutesBy Cloud Hands On

DDoS Protection, Azure Firewall, Web Application Firewall, network segmentation, NSGs, Azure Bastion and Key Vault: what each protects against.

In this lesson you'll learn

1. Perimeter protection

New to network security? Start here

A distributed denial of service (DDoS) attack floods a service with traffic, so real users can't reach it. A firewall decides which traffic is allowed in and out. A web application firewall (WAF) looks inside web requests for attacks such as SQL injection.

ServiceWhat it does
Azure DDoS ProtectionDetects and absorbs volumetric, protocol and resource-layer attacks on public endpoints. Network Protection covers a virtual network, and IP Protection is priced per public IP.
Azure FirewallA managed, stateful firewall for whole networks: filters traffic by IP, port and domain name (FQDN), uses threat intelligence, and logs everything. Premium adds TLS inspection and intrusion detection (IDPS).
Web Application Firewall (WAF)Protects web apps from common exploits such as SQL injection and cross-site scripting. Runs on Application Gateway or Azure Front Door.

2. Network segmentation and NSGs

Virtual networks isolate resources from each other and from the internet. Subnets split them further, for example web, app and database tiers. Segmentation limits how far an attacker can move.

A network security group (NSG) filters traffic to subnets or network interfaces with rules based on source, destination, port and protocol. Rules have priorities (lower numbers first), and default rules allow traffic inside the virtual network and deny inbound traffic from the internet.

3. Azure Bastion and Key Vault

  • Azure Bastion provides secure RDP and SSH access to VMs from the Azure portal (or native clients) over TLS. VMs don't need public IP addresses, and management ports aren't exposed to the internet.
  • Azure Key Vault stores secrets (passwords, connection strings), cryptographic keys and certificates centrally, with access control, logging and optional hardware security module (HSM) protection.

Example

An online shop puts its website behind Front Door with WAF to stop SQL injection and enables DDoS Protection. It splits its network into web and database subnets with NSGs, and removes public IPs from VMs, using Bastion for admin access instead. Database passwords move into Key Vault.

Exam traps to remember

  • A WAF protects web applications from exploits, while Azure Firewall protects whole networks.
  • NSGs filter by IP, port and protocol. They can't filter by domain name. Azure Firewall can.
  • Bastion removes the need for public IPs on VMs.

Test yourself: 3 check questions and exam-style practice questions on this topic are in the SC-900 Security, Compliance and Identity app.

Practise in the app

Keep going