⚡ Azure Simulator › What happens if…?
What happens if a hacker tries to RDP into my VM?
Press the red button in the simulation below and watch it happen. No Azure account, no bill.
🖱️ Drag to rotate · scroll or pinch to zoom
Network security group
An NSG is a list of allow and deny rules on a subnet or network card. Here: allow HTTPS 443 from the internet, deny RDP 3389. Send both and watch.
🤔 What happens if…
Read this tour as text
- A virtual network. The blue glass box is a virtual network (VNet): your private network in Azure with its own address range, 10.0.0.0/16. Nothing gets in unless you allow it.
- Subnets. The VNet is split into subnets: web (10.0.1.0/24) for web servers and data (10.0.2.0/24) for the database. Each VM gets a private IP from its subnet.
- Network security group. An NSG is a list of allow and deny rules on a subnet or network card. Here: allow HTTPS 443 from the internet, deny RDP 3389. Send both and watch.
- VNet peering. A second VNet joins with peering. Traffic between them uses private IPs over Microsoft’s backbone, never the public internet.
- VPN gateway. The office on the left connects with a site-to-site VPN. Traffic travels encrypted (IPsec) over the public internet to the VPN gateway.
- ExpressRoute. ExpressRoute is a private connection from your office through a connectivity provider to Microsoft. It does not go over the internet, so it is more reliable and predictable.
- Private endpoint. A storage account normally has a public endpoint on the internet. A private endpoint gives it a private IP (10.0.2.5) inside your VNet, so traffic never leaves your network.
- Azure DNS. People type names, networks use numbers. DNS turns www.contoso.com into an IP address like 20.50.1.4, and then the browser connects.
The short answer
If an NSG rule denies port 3389, the packet is dropped before it reaches the VM. If you left RDP open to the internet, attackers will find it within minutes: use Azure Bastion or just-in-time access instead.
Learn more
More “What happens if…?”
- 🌪️ What happens if an Azure region goes down?
- 🔌 What happens if a datacenter loses power (pull the plug)?
- 📈 What happens if traffic spikes on Black Friday?
- 😱 What happens if I forget to stop my Azure VM?
- 🌍 How much latency do I get from my city to each Azure region?
- 🔥 What happens to my data if the datacenter catches fire?
- ⚡ What happens in an Azure datacenter during a power cut?
- 🚶 What happens if someone tries to walk into an Azure datacenter?