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/azure-to-azure-migration.md
+76-8Lines changed: 76 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ az storage-mover project create \
473
473
474
474
---
475
475
476
-
###Create a job definition and run the job
476
+
## Create a job definition
477
477
478
478
### [Azure portal](#tab/portal)
479
479
@@ -509,16 +509,89 @@ az storage-mover project create \
509
509
510
510
### [Azure PowerShell](#tab/powershell)
511
511
512
-
Not applicable
512
+
Use the `New-AzStorageMoverJobDefinition` command to create a job definition:
513
+
514
+
```powershell
515
+
New-AzStorageMoverJobDefinition `
516
+
-Name <String> `
517
+
-ResourceGroupName <String> `
518
+
-StorageMoverName <String> `
519
+
-ProjectName <String> `
520
+
-SourceEndpointName <String> `
521
+
-TargetEndpointName <String> `
522
+
-JobType CloudToCloud
523
+
```
524
+
525
+
**Parameters:**
526
+
527
+
-**Name**: The name of the job definition.
528
+
-**ResourceGroupName**: The name of the resource group containing the Storage Mover resource.
529
+
-**StorageMoverName**: The name of the Storage Mover resource.
530
+
-**ProjectName**: The name of the project to which the job definition belongs.
531
+
-**SourceEndpointName**: The name of the Azure Blob Storage source endpoint.
532
+
-**TargetEndpointName**: The name of the Azure Blob Storage target endpoint.
533
+
-**JobType**: Set to **CloudToCloud** for Azure-to-Azure migrations.
534
+
535
+
**Example:**
536
+
537
+
```powershell
538
+
New-AzStorageMoverJobDefinition `
539
+
-Name "my-job-definition" `
540
+
-ResourceGroupName "c2c-pvt-ecy-rg" `
541
+
-StorageMoverName "myStorageMover" `
542
+
-ProjectName "my-migration-project" `
543
+
-SourceEndpointName "my-src-blob-endpoint" `
544
+
-TargetEndpointName "my-dst-blob-endpoint" `
545
+
-JobType CloudToCloud
546
+
```
513
547
514
548
### [Azure CLI](#tab/CLI)
515
549
516
-
Not applicable
550
+
Use the `az storage-mover job-definition create` command to create a job definition:
551
+
552
+
```bash
553
+
az storage-mover job-definition create \
554
+
--copy-mode {Additive|Mirror} \
555
+
--job-definition-name <String> \
556
+
--job-type CloudToCloud \
557
+
--project-name <String> \
558
+
--resource-group <String> \
559
+
--source-name <String> \
560
+
--storage-mover-name <String> \
561
+
--target-name <String>
562
+
```
563
+
564
+
**Parameters:**
565
+
566
+
-**--copy-mode**: The copy mode for the job. Use **Additive** to copy only new files, or **Mirror** to synchronize the source and target.
567
+
-**--job-definition-name**: The name of the job definition.
568
+
-**--job-type**: The type of job. Set to **CloudToCloud** for Azure-to-Azure migrations.
569
+
-**--project-name**: The name of the project to which the job definition belongs.
570
+
-**--resource-group**: The name of the resource group containing the Storage Mover resource.
571
+
-**--source-name**: The name of the Azure Blob Storage source endpoint.
572
+
-**--storage-mover-name**: The name of the Storage Mover resource.
573
+
-**--target-name**: The name of the Azure Blob Storage target endpoint.
574
+
575
+
**Example:**
576
+
577
+
```bash
578
+
az storage-mover job-definition create \
579
+
--copy-mode Mirror \
580
+
--job-definition-name "my-job-definition" \
581
+
--job-type CloudToCloud \
582
+
--project-name "my-migration-project" \
583
+
--resource-group "c2c-pvt-ecy-rg" \
584
+
--source-name "my-src-blob-endpoint" \
585
+
--storage-mover-name "myStorageMover" \
586
+
--target-name "my-dst-blob-endpoint"
587
+
```
517
588
518
589
---
519
590
520
591
### Run a migration job
521
592
593
+
### [Azure portal](#tab/portal)
594
+
522
595
1. Go to the **Migration Jobs** tab. The **Migration Jobs** tab shows all migration jobs you created in your Storage Mover resource, including the one you just created. It might take a moment for the new migration job to show up in the list. Refresh the page if needed.
523
596
524
597
:::image type="content" source="./media/azure-to-azure/migration-jobs.png" alt-text="Screenshot of the Migration Jobs page with the Migration Jobs tab selected and all Migration Jobs displayed." lightbox="./media/azure-to-azure/migration-jobs.png":::
@@ -530,11 +603,6 @@ Not applicable
530
603
:::image type="content" source="./media/azure-to-azure/migration-job-start.png" alt-text="Screenshot of the Migration Job page's Start Job pane." lightbox="./media/azure-to-azure/migration-job-start.png":::
0 commit comments