|
304 | 304 | --os-disk-id "disk-0" |
305 | 305 | """ |
306 | 306 |
|
| 307 | +helps['migrate local replication list'] = """ |
| 308 | + type: command |
| 309 | + short-summary: List all protected items (replicating servers) in a project. |
| 310 | + long-summary: | |
| 311 | + Lists all servers that have replication enabled |
| 312 | + in an Azure Migrate project. |
| 313 | + This command shows the replication status, health, |
| 314 | + and configuration details for each protected server. |
| 315 | +
|
| 316 | + The command returns information including: |
| 317 | + - Protection state (e.g., Protected, ProtectedReplicating, EnablingFailed) |
| 318 | + - Replication health (Normal, Warning, Critical) |
| 319 | + - Source machine name and target VM name |
| 320 | + - Replication policy name |
| 321 | + - Resource IDs (used for remove command) |
| 322 | + - Health errors if any |
| 323 | +
|
| 324 | + Note: This command uses a preview API version |
| 325 | + and may experience breaking changes in future releases. |
| 326 | + parameters: |
| 327 | + - name: --resource-group -g |
| 328 | + short-summary: Resource group containing the Azure Migrate project. |
| 329 | + long-summary: > |
| 330 | + The name of the resource group where |
| 331 | + the Azure Migrate project is located. |
| 332 | + - name: --project-name |
| 333 | + short-summary: Name of the Azure Migrate project. |
| 334 | + long-summary: > |
| 335 | + The Azure Migrate project that contains |
| 336 | + the replicating servers. |
| 337 | + - name: --subscription-id |
| 338 | + short-summary: Azure subscription ID. |
| 339 | + long-summary: > |
| 340 | + The subscription containing the Azure Migrate project. |
| 341 | + Uses the default subscription if not specified. |
| 342 | + examples: |
| 343 | + - name: List all replicating servers in a project |
| 344 | + text: | |
| 345 | + az migrate local replication list \\ |
| 346 | + --resource-group myRG \\ |
| 347 | + --project-name myMigrateProject |
| 348 | + - name: List replicating servers with a specific subscription |
| 349 | + text: | |
| 350 | + az migrate local replication list \\ |
| 351 | + --resource-group myRG \\ |
| 352 | + --project-name myMigrateProject \\ |
| 353 | + --subscription-id 00000000-0000-0000-0000-000000000000 |
| 354 | +""" |
| 355 | + |
| 356 | +helps['migrate local replication get'] = """ |
| 357 | + type: command |
| 358 | + short-summary: Get detailed information about a specific replicating server. |
| 359 | + long-summary: | |
| 360 | + Retrieves comprehensive details about a specific protected item (replicating server) |
| 361 | + including its protection state, replication health, configuration settings, |
| 362 | + and historical information about failover operations. |
| 363 | +
|
| 364 | + You can retrieve the protected item either by: |
| 365 | + - Full ARM resource ID (--protected-item-id or --id) |
| 366 | + - Name with project context (--protected-item-name with --resource-group and --project-name) |
| 367 | +
|
| 368 | + The command returns detailed information including: |
| 369 | + - Basic information (name, resource ID, correlation ID) |
| 370 | + - Protection status (state, health, resync requirements) |
| 371 | + - Configuration (policy, replication extension) |
| 372 | + - Failover history (test, planned, unplanned) |
| 373 | + - Allowed operations |
| 374 | + - Machine details (source and target information) |
| 375 | + - Health errors with recommended actions (if any) |
| 376 | +
|
| 377 | + Note: This command uses a preview API version |
| 378 | + and may experience breaking changes in future releases. |
| 379 | + parameters: |
| 380 | + - name: --protected-item-id --id |
| 381 | + short-summary: Full ARM resource ID of the protected item. |
| 382 | + long-summary: > |
| 383 | + The complete ARM resource ID of the protected item. |
| 384 | + If provided, --resource-group and --project-name are not required. |
| 385 | + This ID can be obtained from the 'list' or 'new' commands. |
| 386 | + - name: --protected-item-name --name |
| 387 | + short-summary: Name of the protected item (replicating server). |
| 388 | + long-summary: > |
| 389 | + The name of the protected item to retrieve. |
| 390 | + When using this option, both --resource-group and --project-name |
| 391 | + are required to locate the item. |
| 392 | + - name: --resource-group -g |
| 393 | + short-summary: Resource group containing the Azure Migrate project. |
| 394 | + long-summary: > |
| 395 | + The name of the resource group where the Azure Migrate project is located. |
| 396 | + Required when using --protected-item-name. |
| 397 | + - name: --project-name |
| 398 | + short-summary: Name of the Azure Migrate project. |
| 399 | + long-summary: > |
| 400 | + The Azure Migrate project that contains the replicating server. |
| 401 | + Required when using --protected-item-name. |
| 402 | + - name: --subscription-id |
| 403 | + short-summary: Azure subscription ID. |
| 404 | + long-summary: > |
| 405 | + The subscription containing the Azure Migrate project. |
| 406 | + Uses the default subscription if not specified. |
| 407 | + examples: |
| 408 | + - name: Get a protected item by its full ARM resource ID |
| 409 | + text: | |
| 410 | + az migrate local replication get \\ |
| 411 | + --protected-item-id "/subscriptions/xxxx/resourceGroups/myRG/providers/Microsoft.DataReplication/replicationVaults/myVault/protectedItems/myItem" |
| 412 | + - name: Get a protected item by name using project context |
| 413 | + text: | |
| 414 | + az migrate local replication get \\ |
| 415 | + --protected-item-name myProtectedItem \\ |
| 416 | + --resource-group myRG \\ |
| 417 | + --project-name myMigrateProject |
| 418 | + - name: Get a protected item with specific subscription |
| 419 | + text: | |
| 420 | + az migrate local replication get \\ |
| 421 | + --name myProtectedItem \\ |
| 422 | + --resource-group myRG \\ |
| 423 | + --project-name myMigrateProject \\ |
| 424 | + --subscription-id 00000000-0000-0000-0000-000000000000 |
| 425 | + - name: Get a protected item using short parameter names |
| 426 | + text: | |
| 427 | + az migrate local replication get \\ |
| 428 | + --id "/subscriptions/xxxx/resourceGroups/myRG/providers/Microsoft.DataReplication/replicationVaults/myVault/protectedItems/myItem" |
| 429 | +""" |
| 430 | + |
307 | 431 | helps['migrate local replication remove'] = """ |
308 | 432 | type: command |
309 | 433 | short-summary: Stop replication for a migrated server. |
|
0 commit comments