Skip to content
AVD-07 Draft

Session hosts or servers exposed by public IP and any-any NSG rule

AVD session hosts don't need public IPs or inbound rules. If an audit finds them, close them carefully.

Draft. The fix is known and correct, but we're still writing up the full step-by-step.

Finding it

From the AVD audit collector (AVD-01):

  • public_ips.csv: public IPs attached to session host or server NICs
  • nsg_open_inbound.csv: inbound rules allowing Any source (especially to 3389)

AVD uses reverse connect: session hosts make outbound connections to the AVD service. They need no inbound ports and no public IPs.

Closing it safely

  1. Find out why it was opened (vendor support access is common) and agree on a replacement. Azure Bastion or a just-in-time rule works well.
  2. Remove the any-any inbound rule first and confirm AVD connections still work.
  3. Disassociate the public IP from the NIC, then delete it once nothing depends on it.
  4. Check outbound connectivity still works (NAT gateway or Azure’s default outbound).

Verify

Re-run the collector. Both CSVs should come back empty for these resources.

This guide is being expanded with full steps.

Seeing this in your environment?

We can check for this, and everything around it, as part of an audit.

Ask us about AVD-07

Find out what's really going on in your tenant.

Tell us what you run and what's worrying you. We'll recommend the right audit, and tell you honestly if you don't need one.