You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage-mover/job-definition-create.md
+22-13Lines changed: 22 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Initial doc score: 100 (1532 words and 0 issues)
25
25
26
26
# How to define and start a migration job
27
27
28
-
When you migrate a share to Azure, you'll need to describe the source share, the Azure target, and any migration settings you want to apply. These attributes are defined in a job definition within your storage mover resource. This article describes how to create and run such a job definition.
28
+
When you migrate a share to Azure, you need to describe the source share, the Azure target, and any migration settings you want to apply. These attributes are defined in a job definition within your storage mover resource. This article describes how to create and run such a job definition.
29
29
30
30
## Prerequisites
31
31
@@ -37,8 +37,8 @@ There are three prerequisites to the definition the migration of your source sha
37
37
Follow the steps in the *[Create a storage mover resource](storage-mover-create.md)* article to deploy a storage mover resource to the desired region within your Azure subscription.
38
38
1. You need to deploy and register an Azure Storage Mover agent virtual machine (VM).
39
39
Follow the steps in the [Azure Storage Mover agent VM deployment](agent-deploy.md) and [agent registration](agent-register.md) articles to deploy at least one agent.
40
-
1. Finally, to define a migration, you'll need to create a job definition.
41
-
Job definitions are organized in a migration project. You'll need at least one migration project in your storage mover resource. If you haven't already, follow the deployment steps in the [manage projects](project-manage.md) article to create a migration project.
40
+
1. Finally, to define a migration, you need to create a job definition.
41
+
Job definitions are organized in a migration project. You need at least one migration project in your storage mover resource. If you haven't already, follow the deployment steps in the [manage projects](project-manage.md) article to create a migration project.
42
42
43
43
## Create and start a job definition
44
44
@@ -74,9 +74,10 @@ Refer to the [resource naming convention](../azure-resource-manager/management/r
74
74
75
75
:::image type="content" source="media/job-definition-create/endpoint-source-new-sml.png" alt-text="Screen capture of the Source tab illustrating the location of the New Source Endpoint fields." lightbox="media/job-definition-create/endpoint-source-new-lrg.png":::
76
76
77
-
By default, migration jobs will start from the root of your share. However, if your use case involves copying data from a specific path within your source share, you can provide the path in the **Sub-path** field. Supplying this value will start the data migration from the location you've specified. If the sub path you've specified isn't found, no data will be copied.
77
+
<aname="sub-path"></a>
78
+
By default, migration jobs start from the root of your share. However, if your use case involves copying data from a specific path within your source share, you can provide the path in the **Sub-path** field. Supplying this value will start the data migration from the location you've specified. If the sub path you've specified isn't found, no data will be copied.
78
79
79
-
Prior to creating an endpoint and a job resource, it's important to verify that the path you've provided is correct and that the data is accessible. You're unable to modify endpoints or job resources after they're created. If the specified path is wrong, you'll need to delete the resources and re-create them.
80
+
Prior to creating an endpoint and a job resource, it's important to verify that the path you've provided is correct and that the data is accessible. You're unable to modify endpoints or job resources after they're created. If the specified path is wrong, your only option is to delete the resources and re-create them.
80
81
81
82
Values for host, share name, and subpath are concatenated to form the full migration source path. The path is displayed in the **Full path** field within the **Verify full path** section. Copy the path provided and verify that you're able to access it before committing your changes.
82
83
@@ -92,19 +93,26 @@ Refer to the [resource naming convention](../azure-resource-manager/management/r
92
93
93
94
:::image type="content" source="media/job-definition-create/endpoint-target-new-sml.png" alt-text="Screen capture of the Target tab illustrating the location of the New Target Endpoint fields." lightbox="media/job-definition-create/endpoint-target-new-lrg.png":::
94
95
95
-
A target subpath value can be used to specify a location within the target container where your migrated data will be copied. The subpath value is relative to the container's root. Omitting the subpath value will result in the data being copied to the root, while providing a unique value will generate a new subfolder.
96
+
A target subpath value can be used to specify a location within the target container where your migrated data will be copied. The subpath value is relative to the container's root. Omitting the subpath value results in the data being copied to the root, while providing a unique value will generate a new subfolder.
96
97
97
98
After ensuring the accuracy of your settings, select **Next** to continue.
98
99
99
-
1. Within the **Settings** tab, take note of the settings associated with the **Copy mode** and **Migration outcomes**. The service's **copy mode**will affect the behavior of the migration engine when files or folders change between copy iterations.
100
+
1. Within the **Settings** tab, take note of the settings associated with the **Copy mode** and **Migration outcomes**. The service's **copy mode**affects the behavior of the migration engine when files or folders change between copy iterations.
100
101
101
-
The current release of Azure Storage Mover only supports **merge** mode.
102
+
<aname="copy-modes"></a>
103
+
**Merge source into target:**
102
104
103
105
- Files will be kept in the target, even if they don’t exist in the source.
104
106
- Files with matching names and paths will be updated to match the source.
105
-
- Folder renames between copies may lead to duplicate content in the target.
107
+
- File or folder renames between copies lead to duplicate content in the target.
108
+
109
+
**Mirror source to target:**
106
110
107
-
**Migration outcomes** are based upon the specific storage types of the source and target endpoints. For example, because blob storage only supports "virtual" folders, source files in folders will have their paths prepended to their names and placed in a flat list within a blob container. Empty folders will be represented as an empty blob in the target. Source folder metadata will be persisted in the custom metadata field of a blob, as they are with files.
111
+
- Files in the target will be deleted if they don’t exist in the source.
112
+
- Files and folders in the target will be updated to match the source.
113
+
- File or folder renames between copies won't lead to duplicate content. A renamed item on the source side leads to the deletion of the item with the original name in the target. Additionally, the renamed item is also uploaded to the target. If the renamed item is a folder, the described behavior of delete and reupload applies to all files and folders contained in it. Avoid renaming folders during a migration, especially near the root level of your source data.
114
+
115
+
**Migration outcomes** are based upon the specific storage types of the source and target endpoints. For example, because blob storage only supports "virtual" folders, source files in folders will have their paths prepended to their names and placed in a flat list within a blob container. Empty folders will be represented as an empty blob in the target. Source folder metadata is persisted in the custom metadata field of a blob, as they are with files.
108
116
109
117
After viewing the effects of the copy mode and migration outcomes, select **Next** to review the values from the previous tabs.
110
118
@@ -114,7 +122,7 @@ Refer to the [resource naming convention](../azure-resource-manager/management/r
114
122
115
123
### [PowerShell](#tab/powershell)
116
124
117
-
You'll need to use several cmdlets to create a new job definition.
125
+
You need to use several cmdlets to create a new job definition.
118
126
119
127
Use the `New-AzStorageMoverJobDefinition` cmdlet to create new job definition resource in a project. The following example assumes that you aren't reusing *storage endpoints* you've previously created.
Now that you've created a job definition with source and target endpoints, learn how to estimate the time required to perform your migration job. Learn about Azure Storage Mover performance targets by visiting the article suggested below.
203
+
Now that you've created a job definition with source and target endpoints, learn how to estimate the time required to perform your migration job.
195
204
> [!div class="nextstepaction"]
196
205
> [Azure Storage Mover scale and performance targets](performance-targets.md)
0 commit comments