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
# If what-if service fails, still show an informative message
734
+
returnCommandResultItem(None, exit_code=1, error=CLIError(f'What-if preview failed: {str(ex)}\nNote: This was a preview operation. No actual changes were made.'))
735
+
694
736
@staticmethod
695
737
def_extract_parameter_names(args):
696
738
# note: name start with more than 2 '-' will be treated as value e.g. certs in PEM format
c.argument('workspace', is_preview=True, arg_group='Monitor', help='Name or ID of Log Analytics Workspace. If you specify the workspace through its name, the workspace should be in the same resource group with the vm, otherwise a new workspace will be created.')
414
414
415
415
withself.argument_context('vm update') asc:
416
+
c.argument('what_if', get_what_if_type())
416
417
c.argument('os_disk', min_api='2017-12-01', help="Managed OS disk ID or name to swap to")
help="enable/disable disk write accelerator. Use singular value 'true/false' to apply across, or specify individual disks, e.g.'os=true 1=true 2=true' for os disk and data disks with lun of 1 & 2")
c.argument('location', get_location_type(self.cli_ctx), help='Location in which to create VM and related resources. If default location is not configured, will default to the resource group\'s location')
1062
+
c.argument('what_if', get_what_if_type())
1061
1063
c.argument('tags', tags_type)
1062
1064
c.argument('no_wait', help='Do not wait for the long-running operation to finish.')
1063
1065
c.argument('validate', options_list=['--validate'], help='Generate and validate the ARM template without creating any resources.', action='store_true')
0 commit comments