Delete a VMware vCenter-managed VM in Azure through Azure Arc-enabled VMware vSphere

In this article, you learn how to delete a VMware vCenter-managed virtual machine and its Azure resource through Azure Arc-enabled VMware vSphere.

Prerequisites

Before you delete a virtual machine or remove its Azure resource, make sure you meet the following prerequisites:

  • The VMware vCenter that manages the VM, which is to be deleted from the host or which’s Azure resource is to be removed, is in a Connected state and its associated Azure Arc resource bridge is in a Running state.
  • The VM, which you want to delete from the host or remove its Azure resource, is onboarded for management in Azure.
  • If the VM, which you want to delete from the host or remove its Azure resource, has the Arc agent installed, uninstall the agent and remove any VM extensions to prevent billing beyond the lifetime of the VM.
  • Azure Arc VMware VM Contributor role or a custom Azure role with permissions to delete the VMware vSphere VMs you want to delete.

Delete a virtual machine

Important

  • This operation also deletes the VM on your VMware vCenter managed on-premises host. To remove the machine from Azure only and keep the on-premises resources intact, perform the Offboard operation instead.
  • Before you delete a VM, ensure you back up all critical data, inform the VM owner, and consider all dependencies and services regarding the VM.

To delete a VM, follow these steps:

  1. Sign in to the Azure portal, go to Azure Arc > VMware vCenters and then select the VMware vCenter, which manages the VM, which you're planning to delete from Azure.

  2. Navigate to the dedicated Virtual machines inventory view under the vCenter inventory. Alternatively, you can navigate to the inventory view for VMs enabled for management in Azure from Azure Arc > Machines blade.

  3. Select the machine, which you want to delete and then select Delete.

    Screenshot showing delete VM option.

    When prompted, confirm that you want to delete it.

Offboard a virtual machine from Azure only

To remove a VM from Azure only, follow these steps:

  1. Sign in to the Azure portal, go to Azure Arc > VMware vCenters, and then select the VMware vCenter that manages the VM. You're planning to operate from Azure.

  2. Go to the Virtual machines inventory view under the vCenter inventory. Select the machine for which you want to remove the Azure representation and then select Offboard.

    Screenshot showing Virtual machines screen.

    When prompted, confirm that you want to remove the Azure representation of the VM.

You can track the progress of the Azure operations from the Azure activity log.

Next step