Storage Mover は最上位のリソースであり、Azure リソース グループにデプロイされます。 Storage Mover エージェントは、ストレージ ムーバーに登録されています。 また、ストレージ ムーバーには、移行プロジェクトと、Azure のターゲットへの個々のソースの移行を定義および監視するために必要なすべてのものも保持されます。
この記事では、ストレージ ムーバーをリソース グループにデプロイする方法について説明します。
前提条件
最初のデプロイを続行する前に、ストレージ ムーバー デプロイの計画 に関する記事を読む必要があります。 この記事では、ストレージ ムーバーの Azure リージョンを選択するためのベスト プラクティス、作成を検討する必要があるストレージ ムーバー リソースの数、およびより有用な分析情報について説明します。
ストレージ ムーバー リソースをデプロイする前に、選択したサブスクリプションとリソース グループに適切なアクセス許可があることを確認してください。
このサブスクリプションにデプロイされたストレージ ムーバーが以前から存在せず、サブスクリプション所有者でない場合は、前に説明した計画ガイドの「サブスクリプションを準備する」セクションを確認してください。
ストレージ ムーバーをリソース グループにデプロイするには、選択したリソース グループの "共同作成者" または "所有者" RBAC (ロールベースの Access Control) ロールのメンバーである必要があります。 計画ガイドの「アクセス許可」セクションには、さまざまな移行シナリオに必要なアクセス許可の概要を示す表があります。
ストレージ ムーバーを作成するには、サブスクリプション、リソース グループ、リージョン、および名前を決定する必要があります。 「Azure Storage Mover デプロイの計画」に関する記事では、ベスト プラクティスを共有しています。 リソースの名前付け規則を参照して、サポートされている名前を選びます。
ストレージ ムーバー リソースのデプロイ
Azure portal で [リソース リンクを作成する] ページに移動します。
Azure Storage Mover を検索します。 正しい検索結果を特定したら、[作成] ボタンを選択します。 ストレージ ムーバー リソースを作成するウィザードが開きます。
Azure CLI 環境を準備する
ストレージ ムーバー リソースを作成するには、az storage-mover create コマンドを使用します。 必要な --name、--resource-group、--location パラメーターの値を指定する必要があります。 -description および tags パラメーターは省略可能です。
## Log into your Azure CLI account, a browser window will appear so that you can confirm your login.
az login
## The Azure Storage Mover extension for CLI is not installed by default and needs to be installed manually. Install the Azure Storage Mover extension without a prompt.
az config set extension.use_dynamic_install=yes_without_prompt
## Set variables
$storageMoverName = "The name of the Storage Mover resource."
$resourceGroupName = "Name of resource group"
$description = "A description for the storage mover."
$location = "The geo-location where the resource lives. When not specified, the location fo the resource group will be used."
$tags = "Resource tags. Support shorthand-syntax, json-file and yaml-file. Try '??' to show more."
## Create a Storage Mover resource.
az storage-mover create --Name $storageMoverName \
--ResourceGroupName $resourceGroupName \
--Location $location \
Azure PowerShell 環境を準備する
- Azure PowerShell をローカルで使用する場合は、次のようにします。
- Azure Cloud Shell を使用する場合は、次のようにします。
この New-AzStorageMover コマンドレットは、リソース グループに新しいストレージ ムーバー リソースを作成するために使用されます。 Az.StorageMover モジュールをまだインストールしていない場合:
## Ensure you are running the latest version of PowerShell 7
$PSVersionTable.PSVersion
## Your local execution policy must be set to at least remote signed or less restrictive
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
## If you don't have the general Az PowerShell module, install it first
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
## Lastly, the Az.StorageMover module is not installed by default and must be manually requested.
Install-Module -Name Az.StorageMover -Scope CurrentUser -Repository PSGallery -Force
Azure PowerShell のインストールに関する記事に、詳しい情報があります。
ストレージ ムーバー リソースをデプロイするには、必要な -Name、-ResourceGroupName、および -Region パラメーターの値を指定する必要があります。 -Description パラメーターは省略可能です。
## Set variables
$subscriptionID = "Your subscription ID"
$resourceGroupName = "Your resource group name"
$storageMoverName = "Your storage mover name"
$description = "Optional, up to 1024 characters"
## Log into Azure with your Azure credentials
Connect-AzAccount -SubscriptionId $subscriptionID
## If this is the first storage mover resource deployed in this subscription:
## You need to manually register the resource provider namespaces Microsoft.StorageMover and Microsoft.HybridCompute with your subscription.
## This only needs to be done once per subscription. You must have at least Contributor permissions (RBAC role) on the subscription.
Register-AzResourceProvider -ProviderNamespace Microsoft.StorageMover
Register-AzResourceProvider -ProviderNamespace Microsoft.HybridCompute
## The value for the Azure region of your resource stems from an enum.
## To find the correct Location value for your selected Azure region, run:
## Get-AzLocation | select displayname,location
## Create a storage mover resource
New-AzStorageMover `
-Name $storageMoverName `
-ResourceGroupName $resourceGroupName `
-Location "Your Location value"
次のステップ
次のいずれかの記事に進み、Storage Mover エージェントをデプロイする方法または移行プロジェクトを作成する方法について説明します。