Page History
Add_workflow_for_techpubs | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Info | ||||||||
---|---|---|---|---|---|---|---|---|
This procedure applies to deploying an
|
...
- Connect to the Azure portal. Refer to portal.azure.com.
- From the menu, select Virtual Machines
- From the list of VMs, click the check box next to the desired
VM.Spacevars 0 series3 From the main menu select Stop and wait for the VM status to be Stopped (Deallocated). Alternatively, right-click on the desired VM and select Stop.
Access PowerShell. Refer to the PowerShell documentation.
Info Follow Powershell instructions for all commands.
Run one of the following commands (per Azure CLI PowerShell module or Azure RM PowerShell module):
Code Block $ResourceGroup = "SWeLite-RG" ### Azure CLI ### # List existing NICs on the VM and find which one is primary az vm nic list -g $ResourceGroup --vm-name "SWeLite" az vm nic set -g $ResourceGroup --vm-name "SWeLite" --nics swelite856, SWeLite-2 --primary-nic SWeLite-2 ### Azure RM ### # List existing NICs on the VM and find which one is primary $vm = Get-AzureRmVm -Name "SWeLite" -ResourceGroupName $ResourceGroup $vm.NetworkProfile.NetworkInterfaces # Set NIC 1 to be primary $vm.NetworkProfile.NetworkInterfaces[0].Primary = $false $vm.NetworkProfile.NetworkInterfaces[1].Primary = $true # Update the VM state in Azure Update-AzureRmVM -VM $vm -ResourceGroupName $ResourceGroup
- From the list of VMs, click the check box next to the
VM.Spacevars 0 series3 - From the main menu select Start (alternatively, right-click on the desired VM and select Start).
...
Overview
Content Tools