|
71 | 71 | text: | |
72 | 72 | az migrate local get-discovered-server \\ |
73 | 73 | --project-name myMigrateProject \\ |
74 | | - --resource-group-name myRG |
| 74 | + --resource-group myRG |
75 | 75 | - name: Get a specific discovered server by name |
76 | 76 | text: | |
77 | 77 | az migrate local get-discovered-server \\ |
78 | 78 | --project-name myMigrateProject \\ |
79 | | - --resource-group-name myRG \\ |
| 79 | + --resource-group myRG \\ |
80 | 80 | --name machine-12345 |
81 | 81 | - name: Filter discovered servers by display name |
82 | 82 | text: | |
83 | 83 | az migrate local get-discovered-server \\ |
84 | 84 | --project-name myMigrateProject \\ |
85 | | - --resource-group-name myRG \\ |
| 85 | + --resource-group myRG \\ |
86 | 86 | --display-name "web-server" |
87 | 87 | - name: List VMware servers discovered by a specific appliance |
88 | 88 | text: | |
89 | 89 | az migrate local get-discovered-server \\ |
90 | 90 | --project-name myMigrateProject \\ |
91 | | - --resource-group-name myRG \\ |
| 91 | + --resource-group myRG \\ |
92 | 92 | --appliance-name myVMwareAppliance \\ |
93 | 93 | --source-machine-type VMware |
94 | 94 | - name: Get a specific server from a specific appliance |
95 | 95 | text: | |
96 | 96 | az migrate local get-discovered-server \\ |
97 | 97 | --project-name myMigrateProject \\ |
98 | | - --resource-group-name myRG \\ |
| 98 | + --resource-group myRG \\ |
99 | 99 | --appliance-name myAppliance \\ |
100 | 100 | --name machine-12345 \\ |
101 | 101 | --source-machine-type HyperV |
|
152 | 152 | - name: Initialize replication infrastructure |
153 | 153 | text: | |
154 | 154 | az migrate local replication init \\ |
155 | | - --resource-group-name myRG \\ |
| 155 | + --resource-group myRG \\ |
156 | 156 | --project-name myMigrateProject \\ |
157 | 157 | --source-appliance-name myVMwareAppliance \\ |
158 | 158 | --target-appliance-name myAzStackHCIAppliance |
159 | 159 | - name: Initialize and return success status |
160 | 160 | text: | |
161 | 161 | az migrate local replication init \\ |
162 | | - --resource-group-name myRG \\ |
| 162 | + --resource-group myRG \\ |
163 | 163 | --project-name myMigrateProject \\ |
164 | 164 | --source-appliance-name mySourceAppliance \\ |
165 | 165 | --target-appliance-name myTargetAppliance \\ |
|
268 | 268 | az migrate local replication new \\ |
269 | 269 | --machine-index 1 \\ |
270 | 270 | --project-name myMigrateProject \\ |
271 | | - --resource-group-name myRG \\ |
| 271 | + --resource-group myRG \\ |
272 | 272 | --target-storage-path-id "XZXZ" \\ |
273 | 273 | --target-resource-group-id "YZYZ" \\ |
274 | 274 | --target-vm-name migratedVM01 \\ |
|
303 | 303 | --target-test-virtual-switch-id "XYXY" \\ |
304 | 304 | --os-disk-id "disk-0" |
305 | 305 | """ |
| 306 | + |
| 307 | +helps['migrate local replication remove'] = """ |
| 308 | + type: command |
| 309 | + short-summary: Stop replication for a migrated server. |
| 310 | + long-summary: | |
| 311 | + Stops the replication for a migrated server and removes |
| 312 | + the replication configuration. |
| 313 | + This command disables protection for the specified server. |
| 314 | +
|
| 315 | + Note: This command uses a preview API version |
| 316 | + and may experience breaking changes in future releases. |
| 317 | + parameters: |
| 318 | + - name: --target-object-id --id |
| 319 | + short-summary: Replicating server ARM ID to disable replication. |
| 320 | + long-summary: > |
| 321 | + Specifies the ARM resource ID of the replicating server |
| 322 | + for which replication needs to be disabled. |
| 323 | + The ID should be retrieved using a get or list command |
| 324 | + for replication items. |
| 325 | + - name: --force-remove --force |
| 326 | + short-summary: Force remove the replication. |
| 327 | + long-summary: > |
| 328 | + Specifies whether the replication needs to be |
| 329 | + force removed. Default is false. |
| 330 | + Use this option to remove replication even if |
| 331 | + the cleanup process encounters errors. |
| 332 | + - name: --subscription-id |
| 333 | + short-summary: Azure subscription ID. |
| 334 | + long-summary: > |
| 335 | + The subscription containing the replication resources. |
| 336 | + Uses the current subscription if not specified. |
| 337 | + examples: |
| 338 | + - name: Stop replication for a migrated server |
| 339 | + text: | |
| 340 | + az migrate local replication remove \\ |
| 341 | + --target-object-id "XXXX" |
| 342 | + - name: Force remove replication for a server |
| 343 | + text: | |
| 344 | + az migrate local replication remove \\ |
| 345 | + --target-object-id "XXXX" \\ |
| 346 | + --force-remove true |
| 347 | + - name: Stop replication using short parameter names |
| 348 | + text: | |
| 349 | + az migrate local replication remove \\ |
| 350 | + --id "XXXX" \\ |
| 351 | + --force |
| 352 | +""" |
| 353 | + |
| 354 | +helps['migrate local replication get-job'] = """ |
| 355 | + type: command |
| 356 | + short-summary: Retrieve the status of an Azure Migrate job. |
| 357 | + long-summary: | |
| 358 | + Get the status and details of an Azure Migrate replication job. |
| 359 | + You can retrieve a specific job by its ARM ID or name, |
| 360 | + or list all jobs in a migrate project. |
| 361 | +
|
| 362 | + Note: This command uses a preview API version |
| 363 | + and may experience breaking changes in future releases. |
| 364 | + parameters: |
| 365 | + - name: --job-id --id |
| 366 | + short-summary: Job ARM ID for which details need to be retrieved. |
| 367 | + long-summary: > |
| 368 | + Specifies the full ARM resource ID of the job. |
| 369 | + When provided, retrieves the specific job details. |
| 370 | + - name: --resource-group -g |
| 371 | + short-summary: Resource group name where the vault is present. |
| 372 | + long-summary: > |
| 373 | + The name of the resource group containing |
| 374 | + the recovery services vault. |
| 375 | + Required when using --project-name. |
| 376 | + - name: --project-name |
| 377 | + short-summary: Name of the migrate project. |
| 378 | + long-summary: > |
| 379 | + The name of the Azure Migrate project. |
| 380 | + Required when using --resource-group. |
| 381 | + - name: --job-name --name |
| 382 | + short-summary: Job identifier/name. |
| 383 | + long-summary: > |
| 384 | + The name of the specific job to retrieve. |
| 385 | + If not provided, lists all jobs in the project. |
| 386 | + - name: --subscription-id |
| 387 | + short-summary: Azure subscription ID. |
| 388 | + long-summary: > |
| 389 | + The subscription containing the migrate project. |
| 390 | + Uses the current subscription if not specified. |
| 391 | + examples: |
| 392 | + - name: Get a specific job by ARM ID |
| 393 | + text: | |
| 394 | + az migrate local replication get-job \\ |
| 395 | + --job-id "/subscriptions/{sub-id}/resourceGroups/{rg}/providers/Microsoft.DataReplication/replicationVaults/{vault}/jobs/{job-name}" |
| 396 | + - name: Get a specific job by name |
| 397 | + text: | |
| 398 | + az migrate local replication get-job \\ |
| 399 | + --resource-group myRG \\ |
| 400 | + --project-name myMigrateProject \\ |
| 401 | + --job-name myJobName |
| 402 | + - name: List all jobs in a project |
| 403 | + text: | |
| 404 | + az migrate local replication get-job \\ |
| 405 | + --resource-group myRG \\ |
| 406 | + --project-name myMigrateProject |
| 407 | + - name: Get job using short parameter names |
| 408 | + text: | |
| 409 | + az migrate local replication get-job \\ |
| 410 | + --id "/subscriptions/{sub-id}/resourceGroups/{rg}/providers/Microsoft.DataReplication/replicationVaults/{vault}/jobs/{job-name}" |
| 411 | + - name: Get job with specific subscription |
| 412 | + text: | |
| 413 | + az migrate local replication get-job \\ |
| 414 | + -g myRG \\ |
| 415 | + --project-name myMigrateProject \\ |
| 416 | + --name myJobName \\ |
| 417 | + --subscription-id "12345678-1234-1234-1234-123456789012" |
| 418 | +""" |
0 commit comments