Skip to content

Commit dcf67ea

Browse files
Enhance job definition creation instructions
Updated the job definition section to include Azure PowerShell and CLI commands for creating a job definition. Removed the 'Start a job definition' section as it was not applicable.
1 parent 26df329 commit dcf67ea

1 file changed

Lines changed: 76 additions & 8 deletions

File tree

articles/storage-mover/azure-to-azure-migration.md

Lines changed: 76 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ az storage-mover project create \
473473

474474
---
475475

476-
### Create a job definition and run the job
476+
## Create a job definition
477477

478478
### [Azure portal](#tab/portal)
479479

@@ -509,16 +509,89 @@ az storage-mover project create \
509509

510510
### [Azure PowerShell](#tab/powershell)
511511

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+
```
513547

514548
### [Azure CLI](#tab/CLI)
515549

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+
```
517588

518589
---
519590

520591
### Run a migration job
521592

593+
### [Azure portal](#tab/portal)
594+
522595
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.
523596

524597
:::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
530603
:::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":::
531604

532605

533-
### Start a job definition
534-
535-
### [Azure portal](#tab/portal)
536-
537-
Not applicable
538606

539607
### [Azure PowerShell](#tab/powershell)
540608

0 commit comments

Comments
 (0)