/
How to remove a server from Azure Arc

How to remove a server from Azure Arc

Azure Arc allows an on-prem server to managed through Azure. If you want to remove this server from Azure Arc you need to follow a few simple steps as outlined below.

 Instructions

First, Remove any VM Extensions

  1. Log into Azure at portal.azure.com

  2. Click on Resource Groups

image-20250318-004126.png
Open up Resource Groups or go to Ar-Servers if you have it under Recent
  1. Find Arc-Servers resource group and click on it

    image-20250318-004905.png
    Note: Arc-Servers is the name we assigned to this resource group. It is not a default group.
  2. The Resource group includes Servers and other resources associated with those servers like Databases.

    image-20250318-005213.png
    Some of the resources include Machine - Azure Arc, SQL Server - Azure Arc and SQL Database - Azure Arc
  3. Type in the word camera into the search box. Then click on SH-CAMERASTN01.

    image-20250318-010056.png
  4. Click on Extensions. It may not be visible initially. In that case, click on the dropdown menu arrow next to Settings.

    image-20250318-010250.png
  5. image-20250318-010338.png
    The extensions are displayed
  6. Select the first one and click on Uninstall.

    image-20250318-010506.png
  7. Confirm that you want to uninstall the extension by clicking Yes.

    image-20250318-010600.png
  8. Eventually, the selected extension will be uninstalled successfully and will drop off the display listing.

    image-20250318-010730.png
  9. Repeat the process for all remaining extensions.

image-20250318-011431.png

Second, disconnect the agent from Azure Arc.

  1. Log into the server in question with an account that is both a local admin on the server and an admin in Azure.

  2. Open a Powershell admin window and run this command, azcmagent disconnect.

    image-20250318-013516.png
  3. image-20250318-013535.png
    Pick your admin account.
  4. Eventually you will see this message.

    image-20250318-013638.png
  5. Returning to the Powershell window, you should see that you have successfully deleted the resource from Azure.

    image-20250318-013730.png

 

Third, uninstall the agent

  1. Type in add in the search bar and then click on Add or remove programs

    image-20250318-014056.png
  2. Find Azure Connected Machine Agent from the list and click on the Uninstall button.

    image-20250318-014316.png

     

  3. Click on Uninstall again.

    image-20250318-014409.png

     

  4. It will uninstall quickly and drop off the list. You are done.

 Related articles

Related content

OSZAR »