Virtual machine with an RDP port

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

This sample template demonstrates how to create a NAT rule in loadbalancer to allow RDP to a vm.

You can connect to the vm using:

  • mstsc.exe /v:<publicDnsName>.<location><rdpPort>

This template deploys the following resources:

  • storage account
  • vnet
  • public ip
  • load balancer with a NAT rule for RDP
  • a virtual machine

Tags: Microsoft.Network/publicIPAddresses, Microsoft.Storage/storageAccounts, Microsoft.Network/networkSecurityGroups, Microsoft.Network/virtualNetworks, Microsoft.Network/loadBalancers, Microsoft.Network/networkInterfaces, Microsoft.Compute/virtualMachines