> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Move an Azure Arc-enabled Server to a different resource group
- URL: https://www.techielass.com/move-an-azure-arc-enabled-server-to-a-different-resource-group/
- Published: 2023-11-09T08:01:26.000Z
- Updated: 2023-11-09T08:01:25.000Z
- Description: Move your Azure Arc enabled servers from one resource group to another using a simple PowerShell command.
- Author: Sarah Lean
- Tags: Azure Arc, Azure

[Azure Arc](https://www.techielass.com/what-is-azure-arc/), is a powerful extension of the Azure platform, it enables organisations to manage and govern their resources across across multi-cloud and on-premises environments.

One of the fundamental challenges that cloud administrators often face is optimising resource management within their Azure environments. There may come a time when you need to reorganise or restructure your resources, such as relocating an [Azure](https://www.techielass.com/tag/azure/) Arc-enabled server to a different resource group or subscription.

In this blog, we'll embark on a journey through the process of moving an Azure Arc-enabled server to a different resource group or subscription

## Move an Azure Arc-enabled server to a different resource group or subscription

To move an Azure Arc-enabled server to a different resource group you can use the Azure PowerShell module and the [Move-AzResource](https://learn.microsoft.com/powershell/module/az.resources/move-azresource?view=azps-10.4.1&ref=techielass.com) cmdlet. 

The Move-AzResource cmdlet allows you to move resources to another resource group. The destination resource group can be in another subscription. 

Let’s look at the [PowerShell](https://www.techielass.com/tag/powershell/) commands you need to use to move an Arc-enabled server to a different resource group. 

The first command gets the information relating to the resource you want to move and the second command moves the resource. 

```powershell
# Get Azure Arc-enabled Server you want to move 
$Resource = Get-AzResource -ResourceType "microsoft.hybridcompute/machines" -ResourceName "resource-name" 

# Move the Azure Arc-enabled server to a new resource group 
Move-AzResource -ResourceId $Resource.ResourceId -DestinationResourceGroupName "resource-group-name"

```

![PowerShell moving Arc server to another resource group](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2023/10/arc-move-resource.jpg)

PowerShell moving Arc server to another resource group

The resource groups need to be within the same Azure region, if you need to move your Azure Arc-enabled servers to another region, you should follow the instructions [here](https://learn.microsoft.com/azure/azure-arc/servers/manage-howto-migrate?ref=techielass.com). 

## Conclusion

As cloud administrators grapple with the ever-present challenge of optimizing resource management in Azure, the need for flexibility and adaptability becomes increasingly clear. The Move-AzResource cmdlet can be used to help adapt to your needs.