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 support for Customer Managed Keys(CMK) for Recovery Services Vault (Azure#18733)
* Merged with commit added support for CMK feature
* Merged with commit Changes made
* Merged with commit More changes
* Changes with new version
* Linter file changed
* Changed test file
* encryption test changed
* Help Text Changed
* Changes in command
* help_text changed again
* modified param names based on review comments
* Encryption examples added
Co-authored-by: Vidhi Katyal <[email protected]>
Co-authored-by: Himanshu Agarwal <[email protected]>
Copy file name to clipboardexpand all lines: src/azure-cli/azure/cli/command_modules/backup/_params.py
+37
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@
46
46
target_tier_help=""" The destination/target tier to which a particular recovery point has to be moved."""
47
47
tier_help=""" Provide 'tier' parameter to filter recovery points."""
48
48
rehyd_priority_type_help="""The type of priority to be maintained while rehydrating a recovery point """
49
+
infrastructure_encryption_type_help="""Use this parameter to enable/disable infrastructure encryption. This must be set when configuring encryption of the vault for the first time. Once enabled/disabled, infrastructure encryption setting cannot be changed. Default value: Disabled. Allowed values: Enabled, Disabled"""
49
50
50
51
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'))
mi_user_assigned_type=CLIArgumentType(options_list=['--mi-user-assigned'], help="UserAssigned Identity Id to be used for CMK encryption, this will be applicable for encryption using userassigned identity")
76
+
mi_system_assigned_type=CLIArgumentType(action='store_true', options_list=['--mi-system-assigned'], help="Provide this flag to use system assigned identity for encryption.")
77
+
encryption_key_id_type=CLIArgumentType(options_list=['--encryption-key-id'], help="The encryption key id you want to use for encryption")
user_assigned_type=CLIArgumentType(nargs='+', options_list=['--user-assigned'], help="Space-separated list of userassigned identities to be assigned to Recovery Services Vault.")
80
+
user_assigned_remove_type=CLIArgumentType(nargs='*', options_list=['--user-assigned'], help="Space-separated list of userassigned identities to be removed from Recovery Services Vault.")
81
+
system_assigned_remove_type=CLIArgumentType(action='store_true', options_list=['--system-assigned'], help="Provide this flag to remove system assigned identity for Recovery Services Vault.")
82
+
system_assigned_type=CLIArgumentType(action='store_true', options_list=['--system-assigned'], help="Provide this flag to enable system assigned identity for Recovery Services Vault.")
74
83
75
84
76
85
# pylint: disable=too-many-statements
@@ -92,6 +101,33 @@ def load_arguments(self, _):
92
101
c.argument('soft_delete_feature_state', arg_type=get_enum_type(['Enable', 'Disable']), help='Set soft-delete feature state for a Recovery Services Vault.')
93
102
c.argument('cross_region_restore_flag', arg_type=get_enum_type(['True', 'False']), help='Set cross-region-restore feature state for a Recovery Services Vault. Default: False.')
c.argument('use_secondary_region', action='store_true', help='Use this flag to show recoverypoints in secondary region.')
309
345
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('disk_encryption_set_id', options_list=['--disk-encryption-set-id'], help='The disk encryption set id is used for encrypting restored disks. Please ensure access to disk encryption set id that is specified here.')
0 commit comments