Skip to content

Commit 1e2519a

Browse files
authored
Merge pull request #212613 from stevenmatthew/housekeeping
Housekeeping edits
2 parents 6cea5c4 + e214df6 commit 1e2519a

File tree

2 files changed

+26
-29
lines changed

2 files changed

+26
-29
lines changed

articles/storage-mover/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ items:
2626
href: storage-mover-create.md
2727
- name: Deploy a storage mover agent
2828
href: agent-deploy.md
29+
- name: Define a migration job
30+
href: job-definition-create.md
2931
- name: Manage
3032
items:
3133
- name: Register or unregister an agent
3234
href: agent-register.md
3335
- name: Manage projects
3436
href: project-manage.md
35-
- name: Create job definitions
36-
href: job-definition-create.md
3737
- name: Decommission
3838
items:
3939
- name: Unregister an agent

articles/storage-mover/job-definition-create.md

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
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.
44
author: stevenmatthew
55
ms.author: shaas
66
ms.service: storage-mover
77
ms.topic: how-to
8-
ms.date: 09/20/2022
8+
ms.date: 09/26/2022
99
---
1010

1111
<!--
@@ -120,23 +120,24 @@ Use the `New-AzStorageMoverJobDefinition` cmdlet to create new job definition re
120120

121121
```powershell
122122
123-
## Set variables
123+
## Set variables
124124
$subscriptionID = "Your subscription ID"
125125
$resourceGroupName = "Your resource group name"
126126
$storageMoverName = "Your storage mover name"
127127
128-
## Log into Azure with your Azure credentials
128+
## Log into Azure with your Azure credentials
129129
Connect-AzAccount -SubscriptionId $subscriptionID
130130
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.
135135
$sourceEpName = "Your source endpoint name could be the name of the share"
136136
$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"
138138
$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
140141
141142
New-AzStorageMoverNfsEndpoint `
142143
-ResourceGroupName $resourceGroupName `
@@ -146,13 +147,16 @@ New-AzStorageMoverNfsEndpoint `
146147
-Export $sourceEpExport `
147148
-Description $sourceEpDescription # Description optional
148149
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"
151152
$targetEpDescription = "Optional, up to 1024 characters"
152153
$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.
156160
157161
New-AzStorageMoverAzStorageContainerEndpoint `
158162
-ResourceGroupName $resourceGroupName `
@@ -163,11 +167,11 @@ New-AzStorageMoverAzStorageContainerEndpoint `
163167
-Description $targetEpDescription # Description optional
164168
165169
## 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"
168172
$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"
171175
172176
173177
New-AzStorageMoverJobDefinition `
@@ -181,13 +185,6 @@ New-AzStorageMoverJobDefinition `
181185
-AgentName $agentName `
182186
-Description $sourceEpDescription # Description optional
183187
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-
191188
```
192189

193190
---

0 commit comments

Comments
 (0)