Redeploy Windows virtual machine to new Azure node
If you have been facing difficulties troubleshooting Remote Desktop (RDP) connection or application access to Windows-based Azure virtual machine (VM), redeploying the VM may help. When you redeploy a VM, Azure will shut down the VM, move the VM to a new node within the Azure infrastructure, and then power it back on, retaining all your configuration options and associated resources. This article shows you how to redeploy a VM using Azure PowerShell or the Azure portal.
If the VM is stuck in a failed state, try reapplying your VM's state before redeploying.
After you redeploy a VM, all the data that you saved on the temporary disk and Ephemeral disk is lost. The dynamic IP addresses associated with virtual network interface are updated.
Use the Azure CLI
Redeploy your VM with az vm redeploy. The following example redeploys the VM named myVM in the resource group named myResourceGroup:
az vm redeploy --resource-group myResourceGroup --name myVM
Using Azure PowerShell
Make sure you have the latest Azure PowerShell 1.x installed on your machine. For more information, see How to install and configure Azure PowerShell.
The following example deploys the VM named
myVM in the resource group named
Set-AzVM -Redeploy -ResourceGroupName "myResourceGroup" -Name "myVM"
Use the Azure portal
Select the VM you wish to redeploy, then select the Redeploy button in the Settings blade. You may need to scroll down to see the Support and Troubleshooting section that contains the 'Redeploy' button as in the following example:
To confirm the operation, select the Redeploy button:
The Status of the VM changes to Updating as the VM prepares to redeploy, as shown in the following example:
The Status then changes to Starting as the VM boots up on a new Azure host, as shown in the following example:
After the VM finishes the boot process, the Status then returns to Running, indicating the VM has been successfully redeployed:
If you are having issues connecting to your VM, you can find specific help on troubleshooting RDP connections or detailed RDP troubleshooting steps. If you cannot access an application running on your VM, you can also read application troubleshooting issues.
Contact us for help
Submit and view feedback for