Which NSG rules are supported for Azure Bastion Standard with RDP to a single Windows subnet?

Vishnu Shaji 0 Reputation points
2026-11-24T16:30:16.6166667+00:00

For Azure Bastion Standard using native RDP on default port 3389 to one private Windows VM subnet, with custom ports disabled, is a Bastion outbound rule limited to TCP 3389 and that subnet supported? Can SSH port 22 be omitted? For internal Bastion traffic on ports 8080 and 5701 in both directions, and internet-bound traffic on port 80, is TCP sufficient as shown in the PowerShell example?

Azure Bastion
Azure Bastion

An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.

0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-24T16:30:33.7466667+00:00

    Yes.

    For Azure Bastion Standard using native RDP to a Windows VM on the default port, an outbound NSG rule from AzureBastionSubnet limited to port 3389 to the target VM subnet is supported for that scenario. The guidance states that outbound traffic to target VM subnets on ports 3389 and 22 must be enabled, and if custom port is used with Standard SKU, outbound traffic should instead be allowed to the VirtualNetwork service tag. Since custom ports are disabled and the scenario is RDP-only to Windows, limiting the outbound rule to 3389 for that subnet matches the documented requirement for the actual connection path.

    SSH port 22 is part of the required Azure Bastion rule set in the general documentation, but for a single Windows-only RDP scenario on the default port, the target VM connectivity requirement is specifically RDP on 3389. The VM subnet must allow inbound 3389 from the AzureBastionSubnet range. If Linux/SSH access is not needed, port 22 is not required for the Windows VM connection path.

    For Bastion internal communication on ports 8080 and 5701, the documented rule tables specify protocol *, not TCP-only. The portal guidance also describes these rules as VirtualNetwork to VirtualNetwork on ports 8080 and 5701 for internal component communication. So TCP-only is not the documented supported form; use the documented any-protocol setting.

    For outbound internet traffic on port 80, the documented rule tables also specify protocol *, not TCP-only. This rule is required for session validation, Bastion Shareable Link, and certificate validation.

    Supported rule summary for the scenario:

    1. AzureBastionSubnet inbound:
      • Internet to * on 443 TCP
      • GatewayManager to * on 443 TCP
      • AzureLoadBalancer to * on 443 TCP
      • VirtualNetwork to VirtualNetwork on 8080, 5701 protocol *
    2. AzureBastionSubnet outbound:
      • to target Windows VM subnet on 3389 for this RDP-only default-port scenario
      • VirtualNetwork to VirtualNetwork on 8080, 5701 protocol *
      • * to AzureCloud on 443 TCP
      • * to Internet on 80 protocol *
    3. Target VM subnet inbound:
      • allow 3389 from the AzureBastionSubnet IP range

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. VIVEK DWIVEDI 270 Reputation points Microsoft Employee
    2026-11-25T08:05:40.13+00:00

    Hi @Vishnu Shaji ,

    1. Yes, if it is only windows VM you can omit port 22.
    2. You can use TCP as protocol as suggested in powershell sample.

    Please upvote if it helps

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.