Create firewall rule in Azure

  1. Log in to Azure portal
  2. Go to All Resources > Click your network security group > Inbound Security Rules
  3. Click Add
  4. Create a rule to allow port 5900
  5. In your Network Security Group go to Subnets
  6. Click Associate
     
  7. Choose the Virtual Network the VM is attached to and click OK