7

Move Azure Arc-enabled Server to a different resource group or subscription

 1 year ago
source link: https://www.thomasmaurer.ch/2023/01/move-azure-arc-enabled-server-to-a-different-resource-group-or-subscription/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Written by Thomas Maurer• January 31, 2023• 2:38 pm• Microsoft Azure

Move Azure Arc-enabled Server to a different resource group or subscription

HomeMicrosoft AzureMove Azure Arc-enabled Server to a different resource group or subscription
Move Azure Arc-enabled Server to a different resource group or subscription with Azure PowerShell

This is just a quick post on how you can change and move your Azure Arc-enabled server to a different resource group or subscription. To do this, you can use the Azure PowerShell module and the Move-AzResource cmdlet. You can find more about the Move-AzResource cmdlet on Microsoft Learn.

# Get Azure Arc-enabled Server you want to move
$Resource = Get-AzResource -ResourceType "microsoft.hybridcompute/machines" -ResourceName "App02"
# Move Azure Arc-enabled server to new resource group and subscription 
Move-AzResource -ResourceId $Resource.ResourceId -DestinationResourceGroupName "tt-arcserver-rg"

The Move-AzResource cmdlet moves existing resources to a different resource group. That resource group can be in a different subscription.

Move Azure Arc-enabled Server to a different resource group or subscription with Azure PowerShell
Move Azure Arc-enabled Server to a different resource group or subscription with Azure PowerShell

The first command gets a Azure Arc-enabled Server named App02 by using the Get-AzResource cmdlet, and then stores that resource in the $Resource variable. The second command moves that resource into the resource group named tt-arcserver-rg. The command identifies the resource to move by using the ResourceId property of $Resource.

If you want to connect and migrate your Azure Arc-enabled server to a different Azure region, you can follow that Microsoft Doc.

Email address:

Leave this field empty if you're human:

Tags: Azure, Azure Arc, Azure Arc-enabled Server, change, Hybrid Cloud, Microsoft, Microsoft Azure, PowerShell, Resource Group, Server, Subscription, Windows Server

About the Author / Thomas Maurer

Thomas works as a Senior Cloud Advocate at Microsoft. He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure cloud platform. Prior joining the Azure engineering team, Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.   If you want to know more about Thomas, check out his blog: www.thomasmaurer.ch and Twitter: www.twitter.com/thomasmaurer

Related Posts

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Sign me up for the weekly update!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Thomas Maurer
Thomas Maurer

My name is Thomas Maurer. I am a Senior Program Manager & Chief Evangelist for Azure Hybrid at Microsoft. I am part of the Azure engineering team (Cloud + AI) and engage with the community and customers around the world. Opinions are my own.

Subscribe

Email address:

Leave this field empty if you're human:
Sponsors

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK