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.


After you redeploy a VM, the temporary disk is lost and dynamic IP addresses associated with virtual network interface are updated.

Use the Azure CLI

Install the latest Azure CLI and log in to your Azure account using az login.

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 myResourceGroup:

Set-AzVM -Redeploy -ResourceGroupName "myResourceGroup" -Name "myVM"

Use the Azure portal

  1. 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:

    Azure VM blade

  2. To confirm the operation, select the Redeploy button:

    Redeploy a VM blade

  3. The Status of the VM changes to Updating as the VM prepares to redeploy, as shown in the following example:

    VM updating

  4. The Status then changes to Starting as the VM boots up on a new Azure host, as shown in the following example:

    VM starting

  5. After the VM finishes the boot process, the Status then returns to Running, indicating the VM has been successfully redeployed:

    VM running

Next steps

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.