Skip to content

Commit deb13d6

Browse files
committedNov 8, 2021
changes
1 parent b129361 commit deb13d6

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed
 

‎articles/devtest-labs/devtest-lab-shared-ip.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,37 @@ ms.date: 11/08/2021
77

88
# Understand shared IP addresses in Azure DevTest Labs
99

10-
Azure DevTest Labs virtual machines (VMs) can share the same 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 options.
10+
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.
1111

1212
## Shared IP settings
1313

14-
Azure DevTest Labs creates labs in virtual networks that can have one or more subnets. The default subnet has **Enable shared public IP** set to **Yes**. This configuration creates one public IP address for the entire subnet. For more information about configuring virtual networks and subnets, see [Configure a virtual network in Azure DevTest Labs](devtest-lab-configure-vnet.md).
14+
Azure DevTest Labs creates labs in virtual networks, which can have one or more subnets. The default subnet has **Enable shared public IP** set to **Yes**. This configuration creates one public IP address for the entire subnet. Any VMs in this subnet default to using a shared IP.
1515

16-
![New lab subnet](media/devtest-lab-shared-ip/lab-subnet.png)
16+
For more information about configuring virtual networks and subnets, see [Configure a virtual network in Azure DevTest Labs](devtest-lab-configure-vnet.md).
17+
18+
![Screenshot that shows the Shared I P setting on the Lab Subnet page.](media/devtest-lab-shared-ip/lab-subnet.png)
1719

1820
For existing labs, you can check or set this option by selecting **Configuration and policies** in the lab's left navigation, and then selecting **Virtual networks** under **External resources**. Select a virtual network from the list to see the shared IP settings for its subnets.
1921

2022
To change the setting, select a subnet from the list, and then change **Enable shared public IP** to **Yes** or **No**.
2123

22-
Any VMs you create in this subnet default to using a shared IP. When creating the VM, you can access this setting on the **Advanced settings** page next to **IP address**.
24+
When creating a VM, you can access this setting on the **Advanced settings** page next to **IP address**.
2325

24-
![New VM](media/devtest-lab-shared-ip/new-vm.png)
26+
![Screenshot that shows the Shared I P setting in Advanced Settings when creating a new V M.](media/devtest-lab-shared-ip/new-vm.png)
2527

2628
- **Shared:** All VMs you create as **Shared** go into the same resource group. The resource group has one assigned IP address that all VMs in the resource group use.
2729
- **Public:** Every public VM has its own IP address and resource group.
2830
- **Private:** Every private VM uses a private IP address. You can't connect to these VMs from the internet by using Remote Desktop protocol (RDP).
2931

30-
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 RDP port on the VM.
32+
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.
3133

3234
## Use a shared IP
3335

34-
- **Linux users:** Secure shell (SSH) connect 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 RDP connection address of `mydevtestlab597975021002.eastus.cloudapp.azure.com:50661`.
36+
- **Windows users:** Select the **Connect** button on the VM **Overview** page to download a pre-configured RDP file and access the VM.
3537

36-
![VM example](media/devtest-lab-shared-ip/vm-info.png)
38+
- **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 of `contosolab21000000000000.westus3.cloudapp.azure.com:65013`.
3739

38-
- **Windows users:** Select the **Connect** button on the Azure portal to download a pre-configured RDP file and access the VM.
40+
![Screenshot that shows the R D P and S S H connection options on a VM Overview page.](media/devtest-lab-shared-ip/vm-info.png)
3941

4042
## Next steps
4143

‎articles/devtest-labs/import-virtual-machines-from-another-lab.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,25 @@ Here are some scenarios where you might need to import VMs from one lab into ano
2020

2121
The import process imports the VMs from the source lab into the destination lab. You can optionally rename the VM in the process. The import process includes all dependencies like disks, schedules, and network settings.
2222

23-
The process is a copy operation, not a move operation, and can take a long time. The import time depends on the following factors:
23+
The process is a copy operation, not a move operation, and can take a long time. The import time partly depends on the following factors:
2424

2525
- Number and size of the disks attached to the source machine
2626
- Distance between the source and destination regions
2727

28-
When the process finishes, the source VM is shut down, and the new VM is running in the destination lab.
28+
When the import finishes, the process shuts down the source VM and starts the new VM running in the destination lab.
2929

30-
There are several requirements and constraints for importing VMs from one lab to another lab:
30+
There are several requirements and constraints for importing VMs from one lab to another:
3131

3232
- You can import VMs across subscriptions and across regions, but both subscriptions must be associated with the same Azure Active Directory tenant.
3333
- VMs can't be in a claimable state in the source lab.
3434
- You must be the owner of the VM in the source lab, and the owner of the destination lab.
35-
- Currently, this feature is supported only through Powershell and REST API.
35+
- Currently, this feature is supported only through PowerShell and REST API.
3636

37-
## Use PowerShell
37+
## Use PowerShell to import one or all lab VMs
3838

3939
Download and run [ImportVirtualMachines.ps1](https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/Scripts/ImportVirtualMachines). You can use the script to import a single VM or all VMs from the source lab into the destination lab.
4040

41-
### Use PowerShell to import a single VM or all lab VMs
42-
43-
Executing this PowerShell script requires identifying the source VM and the destination lab, and optionally supplying a new name to use for the destination VM.
41+
To run this PowerShell script, identify the source and destination subscriptions and labs, and the source VM. Optionally, supply a new name for the destination VM.
4442

4543
```powershell
4644
./ImportVirtualMachines.ps1 -SourceSubscriptionId "<ID of the subscription that contains the source lab>"`
@@ -50,13 +48,13 @@ Executing this PowerShell script requires identifying the source VM and the dest
5048
-DestinationDevTestLabName "<Name of the destination lab>"`
5149
-DestinationVirtualMachineName "<Optional: specify a new name for the imported VM in the destination lab>"
5250
```
53-
If you don't specify a the source VM, the script automatically imports all VMs in the source lab.
51+
If you don't specify a source VM, the script automatically imports all VMs in the source lab.
5452

5553
## Use HTTP REST to import a VM
5654

5755
The REST call is simple. You provide the information to identify the source and destination resources. The operation takes place on the destination lab resource.
5856

59-
```REST
57+
```rest-api
6058
POST https://management.azure.com/subscriptions/<DestinationSubscriptionID>/resourceGroups/<DestinationResourceGroup>/providers/Microsoft.DevTestLab/labs/<DestinationLab>/ImportVirtualMachine?api-version=2017-04-26-preview
6159
{
6260
sourceVirtualMachineResourceId: "/subscriptions/<SourceSubscriptionID>/resourcegroups/<SourceResourceGroup>/providers/microsoft.devtestlab/labs/<SourceLab>/virtualmachines/<NameofVMTobeImported>",
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.