Skip to content

Commit 354a185

Browse files
Kanchan JoshiCopilot
andcommitted
Add examples for redisenterprise migration commands
Add command examples to migration start, validate, and undo so the generated CLI extension carries reproducible :example: docstrings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: e73a11f1-4d3e-4200-8c68-4fed583a2c42
1 parent 35e50b7 commit 354a185

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎Commands/redisenterprise/migration/_start.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ Create a new migration
1111
### [2026-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jYWNoZS9yZWRpc2VudGVycHJpc2Uve30vbWlncmF0aW9ucy9kZWZhdWx0/2026-06-01-preview.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cache/redisenterprise/{}/migrations/default 2026-06-01-preview -->
14+
15+
#### examples
16+
17+
- Start a migration from an Azure Cache for Redis source
18+
```bash
19+
redisenterprise migration start --cluster-name cache1 --resource-group rg1 --source-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/Redis/source-cache --skip-data-migration true --switch-dns true
20+
```

‎Commands/redisenterprise/migration/_undo.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ Cancel or rollback the migration operation in a Redis Enterprise cluster.
1111
### [2026-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jYWNoZS9yZWRpc2VudGVycHJpc2Uve30vbWlncmF0aW9ucy9kZWZhdWx0L2NhbmNlbA==/2026-06-01-preview.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cache/redisenterprise/{}/migrations/default/cancel 2026-06-01-preview -->
14+
15+
#### examples
16+
17+
- Undo the migration on a Redis Enterprise cluster
18+
```bash
19+
redisenterprise migration undo --cluster-name cache1 --resource-group rg1
20+
```

‎Commands/redisenterprise/migration/_validate.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ Validates if a source Azure Cache for Redis resource can be migrated to a target
1111
### [2026-06-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jYWNoZS9yZWRpc2VudGVycHJpc2Uve30vbWlncmF0aW9ucy9kZWZhdWx0L3ZhbGlkYXRl/2026-06-01-preview.xml) **Stable**
1212

1313
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.cache/redisenterprise/{}/migrations/default/validate 2026-06-01-preview -->
14+
15+
#### examples
16+
17+
- Validate a migration from an Azure Cache for Redis source
18+
```bash
19+
redisenterprise migration validate --cluster-name cache1 --resource-group rg1 --source-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Cache/Redis/source-cache
20+
```

0 commit comments

Comments
 (0)