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
Copy file name to clipboardExpand all lines: src/azure-cli/azure/cli/command_modules/vm/_params.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,6 @@ def load_arguments(self, _):
473
473
c.argument('enable_vtpm', enable_vtpm_type)
474
474
c.argument('user_data', help='UserData for the VM. It can be passed in as file or string.', completer=FilesCompleter(), type=file_type, min_api='2021-03-01')
475
475
c.argument('enable_hibernation', arg_type=get_three_state_flag(), min_api='2021-03-01', help='The flag that enable or disable hibernation capability on the VM.')
476
-
c.argument('encryption_identity', help='Resource Id of the user managed identity which can be used for Azure disk encryption')
c.argument('key_encryption_key', help='Key vault key name or URL used to encrypt the disk encryption key.')
1193
1192
c.argument('key_encryption_keyvault', help='Name or ID of the key vault containing the key encryption key used to encrypt the disk encryption key. If missing, CLI will use `--disk-encryption-keyvault`.')
c.argument('encryption_identity', help='Resource Id of the user managed identity which can be used for Azure disk encryption')
1194
+
forscopein ['vm create', 'vm encryption enable']:
1195
+
withself.argument_context(scope) asc:
1196
+
c.argument('encryption_identity', help='Resource Id of the user managed identity which can be used for Azure disk encryption', resource_type=ResourceType.MGMT_COMPUTE, min_api='2023-09-01')
c.argument('encryption_identity', help='Resource Id of the user managed identity which can be used for Azure disk encryption', resource_type=ResourceType.MGMT_COMPUTE, min_api='2023-09-01')
0 commit comments