Configure secure access to virtual networks
Unlock the complete study guide + 25 practice exams totaling 1,497 questions.
Bundled into the existing Microsoft Azure Administrator premium course — no separate purchase.
14-day refund guarantee on one-time purchases and your first subscription charge.
Included in this chapter:
- Network security groups and where they attach
- How NSG rules are evaluated
- Default rules and platform traffic
- Naming traffic in rules: service tags, ASGs and address lists
- Evaluation order: security admin rules, subnet NSG, NIC NSG
- Creating NSG rules with Azure PowerShell and the Azure CLI
- Finding the security rule that decides a flow
- Azure Bastion: deployment and the connection path
- Permissions for a Bastion connection
- Choosing and changing a Bastion SKU
- Keeping Bastion working: subnet NSG, routes and DNS
- Service endpoints: enabling the subnet and authorizing it
- Service endpoint policies for Azure Storage
- Creating a private endpoint: placement, subresource and approval
- Private endpoint DNS
- Network policies for private endpoints
Service endpoint vs private endpoint for an Azure PaaS service
| Question | Service endpoint | Private endpoint |
|---|---|---|
| What you create | A setting on the client subnet, for example Microsoft.Storage | A read-only NIC with a private IP in a subnet you choose |
| Address the client connects to | The service's public endpoint | The private endpoint's private IP address |
| DNS change | None; the hostname still resolves to a public IP | A privatelink private DNS zone resolves the hostname to the private IP |
| What becomes reachable | The service as a whole; a service endpoint policy can narrow Azure Storage to listed accounts | Only the target subresource, such as the blob service of one account |
| On-premises clients over VPN or ExpressRoute | Not covered; allow their public NAT addresses in the service firewall | Supported over the private connection |
| Step on the service side | Add a virtual network rule for the subnet | Approve the connection; disable public access separately if required |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-104
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview
- https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways
- https://learn.microsoft.com/en-us/azure/dns/private-dns-overview
- https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview
- https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security
- https://learn.microsoft.com/en-us/azure/network-watcher/network-watcher-overview
- https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-vnet-plan-design-arm
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-subnet
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
- https://learn.microsoft.com/en-us/azure/virtual-network/network-security-group-how-it-works
- https://learn.microsoft.com/en-us/azure/virtual-network/service-tags-overview
- https://learn.microsoft.com/en-us/azure/virtual-network/application-security-groups
- https://learn.microsoft.com/en-us/powershell/module/az.network/new-aznetworksecuritygroup
- https://learn.microsoft.com/en-us/azure/virtual-network/diagnose-network-traffic-filter-problem
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoint-policies-overview
- https://learn.microsoft.com/en-us/entra/fundamentals/concept-learn-about-groups
- https://learn.microsoft.com/en-us/azure/virtual-network/manage-network-security-group
- https://learn.microsoft.com/en-us/powershell/module/az.network/new-aznetworksecurityruleconfig
- https://learn.microsoft.com/en-us/cli/azure/network/nsg/rule
- https://learn.microsoft.com/en-us/azure/network-watcher/ip-flow-verify-overview
- https://learn.microsoft.com/en-us/azure/network-watcher/nsg-diagnostics-overview
- https://learn.microsoft.com/en-us/azure/network-watcher/diagnose-network-security-rules
- https://learn.microsoft.com/en-us/azure/bastion/bastion-overview
- https://learn.microsoft.com/en-us/azure/bastion/bastion-faq
- https://learn.microsoft.com/en-us/azure/bastion/bastion-nsg
- https://learn.microsoft.com/en-us/azure/bastion/configuration-settings
- https://learn.microsoft.com/en-us/azure/bastion/bastion-sku-comparison
- https://learn.microsoft.com/en-us/entra/identity/devices/howto-vm-sign-in-azure-ad-windows
- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview
- https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security-virtual-networks
- https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns
- https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns-integration
- https://learn.microsoft.com/en-us/azure/dns/private-dns-autoregistration
- https://learn.microsoft.com/en-us/azure/dns/dns-private-resolver-overview
- https://learn.microsoft.com/en-us/azure/private-link/disable-private-endpoint-network-policy
- https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections