{"id":2708,"date":"2026-10-08T15:11:12","date_gmt":"2026-10-08T15:11:12","guid":{"rendered":"https:\/\/www.exam-topics.info\/blog\/microsoft-az-104-nsgs-bastion-private-endpoints\/"},"modified":"2026-10-20T15:09:52","modified_gmt":"2026-10-20T15:09:52","slug":"microsoft-az-104-nsgs-bastion-private-endpoints","status":"publish","type":"post","link":"https:\/\/www.exam-topics.info\/blog\/microsoft-az-104-nsgs-bastion-private-endpoints\/","title":{"rendered":"Microsoft AZ-104: NSGs, Bastion and Private Endpoints"},"content":{"rendered":"<div class=\"et-b01-editorial-v2\">\n<p>A private endpoint gives a supported platform service a private address, but it does not grant the caller permission to read the service&#8217;s data. Likewise, <a href=\"https:\/\/www.exam-topics.info\/blog\/azure-bastion-vs-jit-vm-access\/\">Azure Bastion<\/a> provides an administrative path to a VM without turning a network security group into an identity system. In <a href=\"https:\/\/www.exam-topics.info\/az-104\">Microsoft AZ-104<\/a> administration, those are three distinct controls: NSGs filter flows, Bastion changes how operators establish management sessions, and private endpoints move selected PaaS connectivity onto a private route. If a client has a 403, check authorization; if it cannot establish a connection, check DNS, routes, endpoint approval and applicable security rules. Removing the firewall is not an evidence-based first step.<\/p>\n<p>Confusing the layers leads to bad designs. An NSG can filter traffic, but it does not create an administrative access service. Bastion provides an access path to VMs, but it is not a general-purpose firewall. A private endpoint gives a PaaS resource a private address in a VNet, but DNS and authorization still have to be correct. Understanding those boundaries is more useful than memorizing feature lists.<\/p>\n<h2>NSGs filter traffic at subnet and NIC boundaries<\/h2>\n<p>A network security group contains prioritized inbound and outbound rules. Rules match properties such as source, destination, port and protocol, then allow or deny the flow. Lower priority numbers are evaluated first, so a specific rule can take precedence over a later, broader rule.<\/p>\n<p>An NSG can be associated with a subnet, a network interface or both. When both scopes apply, traffic must satisfy the effective rules. This allows broad subnet controls and more specific NIC controls, but it can also make troubleshooting confusing if administrators inspect only one assignment.<\/p>\n<p>NSGs perform stateful filtering close to workloads, but they are not an application-aware firewall or a replacement for authentication. Their effective behavior depends on subnet and network-interface assignments, rule priorities and the direction of the request. Confirm the actual source, destination and port in a connection test before introducing a new broad allow rule.<\/p>\n<h2>Service tags and application security groups make rules easier to maintain<\/h2>\n<p>Hard-coding large IP ranges into every NSG rule creates operational burden. Service tags let Azure-managed address groups represent certain services or platform categories. Application security groups let administrators group VM network interfaces by application role and write rules using those logical groups rather than individual IP addresses.<\/p>\n<p>This makes intent clearer. A rule that allows traffic from a web-tier application security group to an app-tier group on a specific port communicates more than a collection of individual addresses. It also survives many address changes without requiring the rule to be rewritten.<\/p>\n<p>The exam may describe a need to simplify security administration across several VMs. Look for logical grouping and service abstractions before reaching for a long list of host-specific rules.<\/p>\n<h2>Effective security rules matter more than one NSG object<\/h2>\n<p>A VM can be affected by rules assigned to both its subnet and its network interface. Network Watcher can display effective security rules and simulate traffic. This is valuable because an administrator looking only at the NIC NSG might miss a subnet-level deny, or vice versa.<\/p>\n<p>IP flow verify and NSG diagnostics can show whether a proposed packet is allowed or denied and identify the rule responsible. That turns troubleshooting from guesswork into evidence. If the security result allows the packet, move on to routing, guest firewall and application behavior instead of continuing to edit NSGs.<\/p>\n<p>This disciplined sequence prevents the dangerous habit of adding broad allow rules until connectivity starts working. Connectivity should be restored by identifying the actual control that blocks the intended flow.<\/p>\n<h2>Bastion removes the need for public IPs on many admin paths<\/h2>\n<p>Azure Bastion provides managed RDP and SSH connectivity to virtual machines using their private IP addresses. Administrators can connect through the Azure portal or supported native-client methods without exposing each target VM directly to the internet with its own public IP.<\/p>\n<p>This reduces the attack surface associated with open management ports. The VM can remain private while the Bastion service provides the access path. The target&#8217;s own authentication and authorization still matter; Bastion transports the session but does not eliminate operating-system identity controls.<\/p>\n<p>Bastion also has SKU and feature differences. Native client support and private-only deployment have additional requirements. AZ-104 candidates should focus on the architectural purpose: secure administrative reach to private VMs without making every VM an internet-facing endpoint.<\/p>\n<h2>Private-only Bastion changes the exposure model further<\/h2>\n<p>A private-only Bastion deployment can remove the public IP from the Bastion resource itself and allow access through private connectivity. That is useful in environments where administrative access must remain on private network paths end to end.<\/p>\n<p>The design requires appropriate upstream connectivity such as VPN or ExpressRoute for administrators outside Azure, and the Bastion subnet still needs the traffic required by the service. Private-only does not mean \u201cno networking requirements.\u201d It means the access architecture is intentionally private rather than internet-facing.<\/p>\n<p>For exam scenarios, distinguish between removing a public IP from the target VM and requiring the Bastion host itself to be private-only. The first is a common benefit of ordinary Bastion. The second is a more specific deployment choice.<\/p>\n<h2>Private endpoints bring PaaS access into the VNet<\/h2>\n<p>An Azure private endpoint is a network interface with a private IP address from the customer&#8217;s virtual network. It connects that address to a supported service through <a href=\"https:\/\/www.exam-topics.info\/blog\/azure-private-link-vs-service-endpoints\/\">Azure Private Link<\/a>. Applications can then reach the service through a private endpoint instead of relying on the public service endpoint.<\/p>\n<p>This is valuable for storage, databases and other PaaS services where the workload should use private addressing. The service itself remains managed by Azure; the private endpoint is the network representation that brings access into the VNet.<\/p>\n<p>Private endpoints are often preferred in sensitive production designs because they provide a private IP and can support tighter data-exfiltration controls than older service-endpoint patterns. They also create additional DNS design requirements.<\/p>\n<h2>DNS is part of private-endpoint design<\/h2>\n<p>Applications normally connect to a service by name. After a private endpoint is introduced, that name must resolve to the private endpoint address for clients that should use the private path. Azure private DNS zones are commonly used to provide that resolution.<\/p>\n<p>Private endpoint configuration is easy to overstate: deploying an endpoint does not automatically give every client a private resolution path, nor does it make a user authorized to read the service data. For <a href=\"https:\/\/www.exam-topics.info\/blog\/microsoft-az-104-azure-dns-load-balancing\/\">Azure DNS and load balancing<\/a>, the decisive checks are zone links, the client resolver and the IP address returned for the normal service hostname. If an on-premises application still reaches a public address, troubleshoot DNS forwarding and the actual network rather than permitting public access by default.<\/p>\n<p>A private endpoint can be configured perfectly while the application still connects to the public endpoint because DNS returns the public address. Conversely, a bad private DNS configuration can make the service unreachable even though routing and NSGs look correct. Always include name resolution in private-endpoint troubleshooting.<\/p>\n<p>This is a classic AZ-104 cross-domain issue: networking is not only IP routes and security rules. DNS determines which address the client attempts to reach in the first place.<\/p>\n<h2>Private endpoints do not replace authorization<\/h2>\n<p>Private network reach does not automatically grant access to the data or service. A storage account reached through a private endpoint still evaluates the caller&#8217;s storage authorization. A database still requires database authentication. Network isolation and identity remain separate controls.<\/p>\n<p>This layered design is desirable. If credentials are compromised, network restrictions can still reduce where they can be used. If a workload is on the correct network, identity controls still limit what it can do. Strong security depends on both boundaries.<\/p>\n<p>A private endpoint also has a configuration detail that changes network-rule troubleshooting: NSG and user-defined-route processing for private-endpoint traffic depends on the network-policy setting of the endpoint subnet. Those policies are disabled by default for private endpoints and must be enabled for the particular enforcement design. Before claiming that a subnet NSG blocks or permits an endpoint flow, verify that setting as well as DNS resolution and service authorization.<\/p>\n<h2>Use the right diagnostic tool for the failing layer<\/h2>\n<p>If a VM cannot communicate, start with the intended path. Network Watcher connection troubleshoot can help identify routing, NSG and connectivity problems. IP flow verify can test a particular flow against NSG rules. Effective security rules reveal the combined rule set. DNS tools confirm whether a private service name resolves to the expected address.<\/p>\n<p>Identity remains independent of the route. A managed identity may connect through a private IP and still need a suitable <a href=\"https:\/\/www.exam-topics.info\/blog\/microsoft-az-104-azure-rbac-role-scopes\/\">Azure RBAC or data-plane role<\/a> to perform the requested operation. Use <a href=\"https:\/\/www.exam-topics.info\/blog\/microsoft-az-104-azure-monitor-network-watcher\/\">Network Watcher diagnostics<\/a> to confirm the connection path and effective rules where relevant, then test the service authorization as a separate step. This approach avoids two common mistakes: giving excessive privileges to solve an NSG or DNS problem, and opening an internet endpoint to work around a missing private zone link.<\/p>\n<p>If Bastion cannot reach a VM, check the Bastion deployment, peering where applicable, NSGs and the target VM. If a private endpoint is unreachable, check its approval state, private DNS, routing, NSG behavior where applicable and service authorization. Do not solve a DNS problem by widening an NSG.<\/p>\n<p>When a client resolves the right private address and completes its TCP connection but receives an application authorization failure, stop changing routes and NSGs. Confirm the caller identity and the service\u2019s data-plane permissions. When the hostname resolves publicly, investigate private DNS zone links and forwarding before modifying service access rules. This separation turns ambiguous connectivity reports into reproducible checks.<\/p>\n<h2>Think of these services as complementary controls<\/h2>\n<p>NSGs answer \u201cmay this network flow pass?\u201d Bastion answers \u201chow can an administrator reach a private VM safely?\u201d Private endpoints answer \u201chow can this VNet reach a managed service through a private address?\u201d A secure design can legitimately use all three because they protect different parts of the path.<\/p>\n<p>On AZ-104, choose the feature whose purpose matches the requirement, then consider the dependencies around it. That is more reliable than selecting the most security-sounding technology in the list of answers.<\/p>\n<h2>NSGs are stateful, and default rules still matter<\/h2>\n<p>Azure NSGs are stateful. When a connection is allowed in one direction, return traffic for that established flow does not require a separate mirror rule simply because the packet direction reverses. This reduces the need for duplicate rule pairs and is an important distinction from purely stateless packet filters.<\/p>\n<p>Every NSG also contains default rules. Custom rules with higher priority can override the effective outcome for specific traffic, but administrators should understand what the defaults allow or deny before adding broad exceptions. A common troubleshooting mistake is to assume that because no custom allow rule exists, all traffic must be blocked, or to add an overly permissive rule without checking whether the actual problem is routing or DNS.<\/p>\n<p>Service tags and application security groups help keep custom rules maintainable, but priority and scope still control the result. When both subnet and NIC NSGs apply, the flow must survive both evaluations. Thinking about state, priority and combined scope produces a far more accurate security model than reading one rule in isolation.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A private endpoint gives a supported platform service a private address, but it does not grant the caller permission to read the service&#8217;s data. Likewise, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-2708","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/posts\/2708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/comments?post=2708"}],"version-history":[{"count":6,"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/posts\/2708\/revisions"}],"predecessor-version":[{"id":1001890,"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/posts\/2708\/revisions\/1001890"}],"wp:attachment":[{"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/media?parent=2708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/categories?post=2708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.exam-topics.info\/blog\/wp-json\/wp\/v2\/tags?post=2708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}