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
[BACKUP] Added Archive Support for Azure CLI (Azure#18535)
* Code done!
* Modified code1
* Archive tests added.
* help_for_move, linter and az file changed
* New line added in az and test_backup_commands
* ran backup archive
* Commented test_backup_archive for debugging
* Changed recordings
* Adding archive recording back
* Added archive recording, and couple others
* ran all four failed tests locally
* akshay_review_changes
* Corrected a error in help-text of move command
* Corrected a small error in test_workload_commands.
* More changes after review.
* Additional changes
* Changed help text of move in help.py
* Made changes for use-secondary-region parameter
* Changed recordings
* Re-ran the 3 failing tests
* Further modifications to those 3 recordings
* Tweaked archive code for use_secondary_region
* Changes suggested by Xing Zhou
* Additional change after review
* Update src/azure-cli/azure/cli/command_modules/backup/_help.py
Co-authored-by: Xing Zhou <[email protected]>
* Update src/azure-cli/azure/cli/command_modules/backup/custom_afs.py
Co-authored-by: Xing Zhou <[email protected]>
* Update src/azure-cli/azure/cli/command_modules/backup/custom_afs.py
Co-authored-by: Xing Zhou <[email protected]>
* Final changes suggested by Xing Zhou
* Minor change
Co-authored-by: Shreyansh Joshi <[email protected]>
Co-authored-by: Akshay Neema <[email protected]>
Co-authored-by: Xing Zhou <[email protected]>
backup_management_type_help="""Specifiy the backup management type. Define how Azure Backup manages the backup of entities within the ARM resource. For eg: AzureWorkloads refers to workloads installed within Azure VMs, AzureStorage refers to entities within Storage account. Required only if friendly name is used as Container name."""
30
33
container_name_help="""Name of the backup container. Accepts 'Name' or 'FriendlyName' from the output of az backup container list command. If 'FriendlyName' is passed then BackupManagementType is required."""
31
-
workload_type_help="""Specifiy the type of applications within the Resource which should be discovered and protected by Azure Backup. """
34
+
workload_type_help="""Specify the type of applications within the Resource which should be discovered and protected by Azure Backup. """
32
35
restore_mode_help="""Specify the restore mode."""
33
36
resolve_conflict_help="Instruction if there's a conflict with the restored data."
34
37
resource_id_help="""ID of the Azure Resource containing items to be protected by Azure Backup service. Currently, only Azure VM resource IDs are supported."""
@@ -40,6 +43,9 @@
40
43
diskslist_help="""List of disks to be excluded or included."""
41
44
disk_list_setting_help="""option to decide whether to include or exclude the disk or reset any previous settings to default behavior"""
42
45
target_container_name_help="""The target container to which the DB recovery point should be downloaded as files."""
46
+
target_tier_help=""" The destination/target tier to which a particular recovery point has to be moved."""
47
+
tier_help=""" Provide 'tier' parameter to filter recovery points."""
48
+
rehyd_priority_type_help="""The type of priority to be maintained while rehydrating a recovery point """
43
49
44
50
vault_name_type=CLIArgumentType(help='Name of the Recovery services vault.', options_list=['--vault-name', '-v'], completer=get_resource_name_completion_list('Microsoft.RecoveryServices/vaults'))
c.argument('use_secondary_region', action='store_true', help='Use this flag to list recoverypoints in secondary region.')
195
+
c.argument('is_ready_for_move', arg_type=get_three_state_flag(), help='Use this flag to retrieve the recoverypoints that are ready to be moved to destination-tier.')
196
+
c.argument('target_tier', target_tier_type)
197
+
c.argument('tier', tier_type)
198
+
c.argument('recommended_for_archive', action="store_true", help='Use this flag to retrieve recommended archivable recoverypoints.')
c.argument('source_tier', help='The source tier from which a particular recovery point has to be moved.', arg_type=get_enum_type(['VaultStandard']), options_list=['--source-tier'])
c.argument('name', rp_name_type, options_list=['--name', '-n'], help='Name of the recovery point. You can use the backup recovery point list command to get the name of a backed up item.', id_part='child_name_4')
@@ -276,6 +306,8 @@ def load_arguments(self, _):
276
306
c.argument('restore_only_osdisk', arg_type=get_three_state_flag(), help='Use this flag to restore only OS disks of a backed up VM.')
277
307
c.argument('restore_as_unmanaged_disks', arg_type=get_three_state_flag(), help='Use this flag to specify to restore as unmanaged disks')
278
308
c.argument('use_secondary_region', action='store_true', help='Use this flag to show recoverypoints in secondary region.')
309
+
c.argument('rehydration_duration', type=int, help='Set the maximum time, in days (between 10-30, both inclusive) for which the recovery point stays in hydrated state. Default: 15')
c.argument('recovery_config', options_list=['--recovery-config'], help="""Specify the recovery configuration of a backed up item. The configuration object can be obtained from 'backup recoveryconfig show' command.""")
331
+
c.argument('rehydration_duration', type=int, help='Set the maximum time, in days (between 10-30, both inclusive) for which the recovery point stays in hydrated state. Default: 15')
0 commit comments