This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Azure DevTest Labs virtual machines (VMs) can share a public IP address, to minimize the number of public IPs you need to access lab VMs. This article describes how shared IPs work, and how to configure shared IP addresses.
You create a DevTest Labs lab in a virtual network, which can have one or more subnets. The default subnet hasEnable shared public IP set toYes. This configuration creates one public IP address for the entire subnet. Any VMs in this subnet default to using the shared IP.
For more information about configuring virtual networks and subnets, seeConfigure a virtual network in Azure DevTest Labs.

For existing labs, you can check or set this option by selectingConfiguration and policies in the lab's left navigation, and then selectingVirtual networks underExternal resources. Select a virtual network from the list to see the shared IP settings for its subnets.
To change the setting, select a subnet from the list, and then changeEnable shared public IP toYes orNo.
When creating a VM, you can access this setting on theAdvanced settings page next toIP address.

When you add a VM with shared IP to a subnet, DevTest Labs automatically adds the VM to a load balancer and assigns the VM a TCP port number on the public IP address. The port number forwards to the secure shell (SSH) port on the VM.
Windows users: Select theConnect button on the VMOverview page to download a pre-configured RDP file and access the VM.
Linux users: Secure shell (SSH) connects to the VM by using the IP address or fully qualified domain name, followed by a colon, followed by the port number. For example, the following screenshot shows an SSH connection address ofcontoso.westus3.cloudapp.azure.com:65013.

Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?