Domain 4 of 5 · Chapter 2 of 3

Network Security

Unlock the complete study guide + 1,040 practice questions across 16 full exams.

Bundled into the existing Microsoft Azure Administrator premium course — no separate purchase.

Included in this chapter:

  • NSG and ASG: the filtering model
  • Association and effective rules
  • Azure Bastion for secure RDP and SSH
  • Service endpoints vs private endpoints, and exam patterns

Service endpoints vs private endpoints for Azure PaaS

DimensionService endpointPrivate endpoint (Private Link)
What it doesExtends the VNet identity to the PaaS service; traffic stays on the Azure backbone but goes to the service's public endpointProjects the PaaS resource into your subnet as a private IP (NIC), reachable over Private Link
Service IP seen by clientsThe service keeps its public IP; you allow the subnet in the service firewallA private IP from your subnet's address range
On-premises access (VPN/ExpressRoute)No. only traffic originating in the Azure VNet is recognizedYes. the private IP is routable from peered VNets and on-premises
GranularityPer subnet, for an entire service type (e.g. all of Microsoft.Storage)Per specific resource instance (one storage account, one SQL server)
CostNo additional chargeBilled per endpoint-hour plus data processed
DNS change neededNo. public DNS name is unchangedYes. a Private DNS zone must map the name to the private IP

Decision tree

RDP/SSH to a VM withno public IP?Azure BastionTLS 443, no open 3389/22YesReach an Azure PaaSservice privately?No (PaaS access)On-premises access, orper-resource private IPneeded?YesPrivate endpointprivate IP via Private Link;needs Private DNS zoneYesService endpointsubnet allowed in servicefirewall; no cost, no DNS changeNo (in-VNet only)

Cheat sheet

  • NSG rules match on a 5-tuple and fire in priority order, lowest number first
  • NSGs are stateful, so you only write a rule for the initiating direction
  • An NSG attaches to a subnet, a NIC, or both, and can be reused
  • When a subnet NSG and a NIC NSG both apply, traffic must pass both
  • Default NSG rules allow VNet and load-balancer traffic and deny inbound internet
  • Service tags name Microsoft-managed IP sets so you don't track changing prefixes
  • Group VM NICs into an ASG and reference the group instead of IPs in NSG rules
  • All NICs in an ASG, and an ASG used as both ends of a rule, must be in the same VNet
  • Effective security rules merge the subnet and NIC NSGs into the list Azure applies
  • Network Watcher IP flow verify tells you which rule allowed or blocked a 5-tuple
  • Azure Bastion gives portal RDP/SSH over TLS with no public IP on the VM
  • Bastion needs a subnet named exactly AzureBastionSubnet
  • Bastion SKUs gate features, and the dedicated host bills per hour while provisioned
  • A service endpoint extends the subnet identity to a PaaS service over the backbone
  • Service endpoints don't extend to on-premises traffic
  • A private endpoint projects one PaaS resource into your VNet as a private IP
  • A private endpoint needs DNS to resolve the service name to its private IP
  • Choose private endpoint for on-prem or per-resource isolation; service endpoint for in-VNet, no-cost
  • An NSG filters the 5-tuple only: it cannot inspect application-layer content
  • A service endpoint swaps the source IP from public to the VM's private IP
  • A service endpoint policy limits a subnet to specific Azure Storage accounts
  • Azure Firewall processes DNAT, then Network, then Application rules
  • FQDN tags let an application rule reach Microsoft services with no maintenance
  • Azure Firewall threat intelligence defaults to Alert-only, not block

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. Azure network security groups overview
  2. How network security groups filter network traffic in Azure
  3. Diagnose a virtual machine network traffic filter problem
  4. What is Azure Bastion?
  5. About Azure Bastion configuration settings
  6. Configure NSG rules for Azure Bastion
  7. Azure virtual network service endpoints
  8. What is a private endpoint? - Azure Private Link