Proposed Pull Request Change

title description ms.topic ms.service ms.date ms.custom
Remove Arc-enabled Azure VMware Solution vSphere resources from Azure Learn how to remove Arc-enabled Azure VMware Solution vSphere resources from Azure. how-to azure-vmware 11/16/2026 references_regions, engagement-fy23
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
⚠ Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Remove Arc-enabled Azure VMware Solution vSphere resources from Azure description: Learn how to remove Arc-enabled Azure VMware Solution vSphere resources from Azure. ms.topic: how-to ms.service: azure-vmware ms.date: 11/16/2026 ms.custom: references_regions, engagement-fy23 # Customer intent: As a system administrator, I want to remove Arc-enabled Azure VMware Solution vSphere resources from Azure, so that I can discontinue management and eliminate unnecessary costs associated with Azure services. --- # Remove Arc-enabled Azure VMware Solution vSphere resources from Azure In this article, learn how to cleanly remove your VMware vCenter environment from Azure Arc-enabled VMware vSphere. For VMware vSphere environments that you no longer want to manage with Azure Arc-enabled VMware vSphere, use the information in this article to perform the following actions: - Uninstall VM extensions and the Azure Arc agent from the VMware virtual machines (VMs). - Offboard VMware vSphere resources from Azure Arc. - Remove Arc resource bridge related items in your vCenter. ## Uninstall VM extensions and the Azure Arc agent from the VMware VMs To prevent continued billing of Azure management services, before you remove the vSphere environment from Azure Arc, you must first remove the extensions and the Arc agents from all Arc-enabled Azure VMware Solution VMs they were installed. When you onboard Arc-enabled Azure VMware Solution VMs to Azure Arc with the Arc agent, the Arc connected machine agent is installed on them. When the Arc agent is installed, you can install VM extensions on them and use Azure management services like the Azure Update Manager on them. To completely offboard a VM from Azure, use the following steps to remove any VM extensions from the virtual machine, disconnect the agent, and uninstall the agent from your virtual machine. It's important to complete each of the three steps to fully remove all related software components from your virtual machines. ### Remove VM extensions Use the following steps to uninstall extensions from the portal. > [!NOTE] > **Steps 2-5** must be performed for all the VMs that have VM extensions installed. 1. Sign in to your Azure VMware Solution private cloud. 1. Select **Virtual machines** in **Private cloud** from the left navigation under the 'vCenter Server Inventory' page. 1. Search and select the virtual machine where you have **Arc agent status** column value as **Enabled**. 1. Select **Extensions**. 1. Select the extensions and select **Uninstall**. ### Offboard VMs from Azure Arc To cleanly remove all Azure Arc components on your VMs, follow these steps. > [!NOTE] > Perform **steps 2 and 3** for **all VMs** that have the Arc agent installed. 1. Sign in to the virtual machine by using administrator or root credentials. Run the following command in the shell to disconnect the Arc agent: 1. `azcmagent disconnect --force-local-only`. 1. Uninstall the `ConnectedMachine agent` from the machine. 1. Set the **identity** on the VM resource to **none**. ## Uninstall Arc agents from Virtual Machines (VMs) ### Windows VM uninstall To uninstall the Windows agent from the machine, use the following steps: 1. Sign in to the computer with an account that has administrator permissions. 2. In **Control Panel**, select **Programs and Features**. 3. In **Programs and Features**, select **Azure Connected machine Agent**, select **Uninstall**, then select **Yes**. 4. Delete the `C:\Program Files\AzureConnectedMachineAgent` folder. ### Linux VM uninstall To uninstall the Linux agent, the command to use depends on the Linux operating system. You must have `root` access permissions or your account must have elevated rights using sudo. - For Ubuntu, run the following command: ```bash sudo apt purge azcmagent ``` - For RHEL and Oracle Linux run the following command: ```bash sudo yum remove azcmagent ``` - For SLES, run the following command: ```bash sudo zypper remove azcmagent ``` ## Remove VMware vSphere resources from Azure When you onboard Arc-enabled Azure VMware Solution resources in Azure, you create a representation for them in Azure. To cleanly remove your VMware resources from Azure, remove all of the Azure resource representations you created for your vSphere resources. To remove the Azure resource representations you created, follow these steps: 1. Go to the Azure portal. 1. Choose **Virtual machines** from Arc-enabled VMware vSphere resources in the private cloud. 1. Select all the VMs that have **Virtual hardware management** column value as **Enabled**. 1. Select **Offboard**. This step starts deployment and removes these resources from Azure. The resources remain in your vCenter Server. 1. Repeat steps 2, 3, and 4 for **Resource pools/clusters/hosts**, **Templates**, **Networks**, and **Datastores**. 1. When the deletion completes, select **Overview**. 1. Note the Custom location and the Azure Arc Resource bridge resources in the Essentials section. 1. Go to the Custom location resource and select **Delete**. 1. Go to the Azure Arc Resource bridge resources and select **Delete**. At this point, all of your Arc-enabled VMware vSphere resources are removed from Azure. ## Remove Arc resource bridge related items in your vCenter During onboarding, to create a connection between your VMware vCenter and Azure, an Azure Arc resource bridge is deployed into your VMware vSphere environment. As the last step, you must delete the resource bridge VM as well the VM template created during the onboarding. As the last step, run the following Azure CLI command: ``` az rest --method delete --"https://management.azure.com/subscriptions/%3Csubscrption-id%3E/resourcegroups/%3Cresource-group-name%3E/providers/Microsoft.AVS/privateClouds/%3Cprivate-cloud-name%3E/addons/arc?api-version=2022-05-01%22" ``` After you run this command, Arc stops working on the Azure VMware Solution private cloud. Deleting Arc resources from vCenter Server doesn't affect the Azure VMware Solution private cloud.
Success! Branch created successfully. Create Pull Request on GitHub
Error: