Azure Connected Machine Agent Uninstall after VM Migration to Azure with MASR

Gregory Griffin 20 Reputation points
2024-07-17T06:14:54.5633333+00:00

Hi,

Last week I migrated 2 Virtual Machines from an OnPrem VMware Infrastructure to Azure with MASR.

I encountered no issues but I do have a question concerning the Azure Connected Machine Agent and VMware Tools.

As the both OnPrem VMs are now Azure VMs and managed as Azure VMs, is the Azure Connected Machine Agent still required or can it be uninstalled?

I also noticed the VMware Tools Uninstall fails over MSI or Control Panel. Any suggestion hoe to remove properly without using the "dirty way" by stopping and removing services/folders?

TY in advance for the feedback.

I wish you all a great day.

BR,

Gregory

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
718 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Gregory Griffin 20 Reputation points
    2024-07-17T12:03:59.3933333+00:00

    Hi,

    I managed to find the necessary information for the Azure Connected Machine Agent. It can be uninstalled.

    For the VMware Tools I have not found anything that could help me further.

    BR,

    Greg

    0 comments No comments

  2. SadiqhAhmed-MSFT 46,116 Reputation points Microsoft Employee
    2024-07-17T12:45:46.6033333+00:00

    Hello @Gregory Griffin Thank you for contacting us on Microsoft Q&A platform. Happy to help!Regarding your question about the Azure Connected Machine Agent and VMware Tools, the Azure Connected Machine Agent is not required for Azure VMs and I see you found information about un-installation of the agent.

    As for the VMware Tools uninstallation issue, you can try the following steps to remove it properly:

    1. Stop all VMware services running on the VM.

    Open the Control Panel and go to "Programs and Features."

    Find the VMware Tools entry in the list of installed programs and select it.

    Click on "Uninstall" and follow the prompts to uninstall VMware Tools.

    If the uninstallation fails, you can try the following steps:

    1. Stop all VMware services running on the VM.
    2. Open the Command Prompt as an administrator.
    3. Navigate to the VMware Tools installation directory (usually "C:\Program Files\VMware\VMware Tools").
    4. Run the command "setup.exe /c /v"EULA_VMWARE_INSTALL_DIR="C:\Program Files\VMware\VMware Tools"" to uninstall VMware Tools.

    If these steps don't help, you may use VMware Clean Up Utility for this purpose.

    1. Download the VMware Cleanup Utility from the VMware website.
    2. Run the Cleanup Utility:
      • Launch the utility with administrative privileges.
      • Follow the prompts to uninstall VMware Tools.
      • The utility will clean up registry entries, files, and services associated with VMware Tools.
    3. Reboot: After running the cleanup utility, reboot the Azure VM to complete the uninstallation.

    Hope this helps you with your question. Let us know if you need any further assistance.


    If the response helped, do "Accept Answer" and up-vote it


  3. Gregory Griffin 20 Reputation points
    2024-07-24T08:15:22.9966667+00:00

    Hi Sadiqh,

    The VMware Uninstall with 1st proposed solution did not work.

    A similar solution is proposed here:

    https://armann-systems.com/wiki/uninstall-vmware-tools-unter-windows-nach-migration-zu-windows-nicht-moeglich/

    What concerns the VMware Unistall Utility, I did not find it in the Broadcom/VMware Portal. If someone has a direct link that would be great, unless it was removed.

    There are PowerShell Scripts around on GitHub that do the job but I somehow find the solution "a little dirty".

    Maybe Microsoft should incorporate a VMware Tools Uninstall script in Azure Site Recovery Migration Process just before the OnPrem VM gets migrated to Azure.

    TY in advance for the feedback.

    BR,

    Gregory


  4. Gregory Griffin 20 Reputation points
    2024-08-13T06:19:54.1633333+00:00

    Hi to all of you,

    Finally found the way to uninstall properly VMware Tools.

    Please check here: https://gist.github.com/broestls/f872872a00acee2fca02017160840624

    Tested and working.

    I hope this helps you all.

    BR,

    Greg


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.