1
1
---
2
- title : How to define and start a migration job
3
- description : To migrate a share, create a job definition in a project and start it .
2
+ title : How to define a migration job
3
+ description : To migrate a share, create a job definition in a project.
4
4
author : stevenmatthew
5
5
ms.author : shaas
6
6
ms.service : storage-mover
7
7
ms.topic : how-to
8
- ms.date : 09/20 /2022
8
+ ms.date : 09/26 /2022
9
9
---
10
10
11
11
<!--
@@ -120,23 +120,24 @@ Use the `New-AzStorageMoverJobDefinition` cmdlet to create new job definition re
120
120
121
121
``` powershell
122
122
123
- ## Set variables
123
+ ## Set variables
124
124
$subscriptionID = "Your subscription ID"
125
125
$resourceGroupName = "Your resource group name"
126
126
$storageMoverName = "Your storage mover name"
127
127
128
- ## Log into Azure with your Azure credentials
128
+ ## Log into Azure with your Azure credentials
129
129
Connect-AzAccount -SubscriptionId $subscriptionID
130
130
131
- ## Define the source endpoint: an NFS share in this example
132
- ## There is a separate cmdlet for creating each type of endpoint.
133
- ## (Each storage location type has different properties.)
134
- ## Run "Get-Command -Module Az.StorageMover" to see a full list.
131
+ ## Define the source endpoint: an NFS share in this example
132
+ ## There is a separate cmdlet for creating each type of endpoint.
133
+ ## (Each storage location type has different properties.)
134
+ ## Run "Get-Command -Module Az.StorageMover" to see a full list.
135
135
$sourceEpName = "Your source endpoint name could be the name of the share"
136
136
$sourceEpDescription = "Optional, up to 1024 characters"
137
- $sourceEpHost = "The IP address or DNS name of the device ( NAS / SERVER) that hosts your source share "
137
+ $sourceEpHost = "The IP address or DNS name of the source share NAS or server "
138
138
$sourceEpExport = "The name of your source share"
139
- ## Note that Host and Export will be concatenated to Host:/Export to form the full path to the source NFS share
139
+ ## Note that Host and Export will be concatenated to Host:/Export to form the full path
140
+ ## to the source NFS share
140
141
141
142
New-AzStorageMoverNfsEndpoint `
142
143
-ResourceGroupName $resourceGroupName `
@@ -146,13 +147,16 @@ New-AzStorageMoverNfsEndpoint `
146
147
-Export $sourceEpExport `
147
148
-Description $sourceEpDescription # Description optional
148
149
149
- ## Define the target endpoint: an Azure blob container in this example
150
- $targetEpName = "Your target endpoint name could be the name of the target blob container"
150
+ ## Define the target endpoint: an Azure blob container in this example
151
+ $targetEpName = "Target endpoint or blob container name "
151
152
$targetEpDescription = "Optional, up to 1024 characters"
152
153
$targetEpContainer = "The name of the target container in Azure"
153
- $targetEpSaResourceId = /subscriptions/<GUID>/resourceGroups/<name>/providers/Microsoft.Storage/storageAccounts/<storageAccountName>
154
- ## Note: the target storage account can be in a different subscription and region than the storage mover resource.
155
- ## Only the storage account resource ID contains a fully qualified reference.
154
+ $targetEpSaResourceId = /subscriptions/<GUID>/resourceGroups/<name>/providers/`
155
+ Microsoft.Storage/storageAccounts/<storageAccountName>
156
+ ## Note: the target storage account can be in a different subscription and region than
157
+ ## the storage mover resource.
158
+ ##
159
+ ## Only the storage account resource ID contains a fully qualified reference.
156
160
157
161
New-AzStorageMoverAzStorageContainerEndpoint `
158
162
-ResourceGroupName $resourceGroupName `
@@ -163,11 +167,11 @@ New-AzStorageMoverAzStorageContainerEndpoint `
163
167
-Description $targetEpDescription # Description optional
164
168
165
169
## Create a job definition resource
166
- $projectName = "Your project name"
167
- $jobDefName = "Your job definition name"
170
+ $projectName = "Your project name"
171
+ $jobDefName = "Your job definition name"
168
172
$JobDefDescription = "Optional, up to 1024 characters"
169
- $jobDefCopyMode = "Additive"
170
- $agentName = "The name of one of your agents previously registered to the same storage mover resource"
173
+ $jobDefCopyMode = "Additive"
174
+ $agentName = "The name of an agent previously registered to the same storage mover resource"
171
175
172
176
173
177
New-AzStorageMoverJobDefinition `
@@ -181,13 +185,6 @@ New-AzStorageMoverJobDefinition `
181
185
-AgentName $agentName `
182
186
-Description $sourceEpDescription # Description optional
183
187
184
- ## When you are ready to start migrating, you can run the job definition
185
- Start-AzStorageMoverJobDefinition `
186
- -JobDefinitionName $jobDefName `
187
- -ProjectName $projectName `
188
- -ResourceGroupName $resourceGroupName `
189
- -StorageMoverName $storageMoverName
190
-
191
188
```
192
189
193
190
---
0 commit comments