0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Azure-Arc Enabled Serverを別のサブスクリプション/リソースグループに移行する方法

Posted at

はじめに

後からリソースグループを変更したい時ってありますよね。今回はAzure PowerShell ModuleでAzure-Arc Enabled Serverのリソースプールを移行する方法を紹介します。

私の記事ではお馴染みThomas Maurer氏の記事を参考にさせていただいています。

手順

使うコマンドは以下です。

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

できました。やったね。処理完了まで5分程度かかったのですがプログレスバーが0%から動かなくて怖いですが完了すると一気に動きます。
MoveRG.png

ちなみにもちろんPortalからも簡単に移動できます。
MoveRG_Portal.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?