pyaz/vm/__init__.py
def update(name, resource_group, add=None, capacity_reservation_group=None, disk_caching=None, enable_hibernation=None, enable_secure_boot=None, enable_vtpm=None, ephemeral_os_disk_placement=None, force_string=None, host=None, host_group=None, license_type=None, max_price=None, no_wait=None, os_disk=None, ppg=None, priority=None, remove=None, set=None, size=None, ultra_ssd_enabled=None, user_data=None, workspace=None, write_accelerator=None):
    '''
    Update the properties of a VM.

    Required Parameters:
    - name -- The name of the Virtual Machine. You can configure the default using `az configure --defaults vm=<name>`
    - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`

    Optional Parameters:
    - add -- Add an object to a list of objects by specifying a path and key value pairs.  Example: --add property.listProperty <key=value, string or JSON string>
    - capacity_reservation_group -- The ID or name of the capacity reservation group that is used to allocate. Pass in "None" to disassociate the capacity reservation group. Please note that if you want to delete a VM/VMSS that has been associated with capacity reservation group, you need to disassociate the capacity reservation group first.
    - disk_caching -- Use singular value to apply across, or specify individual disks, e.g. 'os=ReadWrite 0=None 1=ReadOnly' should enable update os disk and 2 data disks
    - enable_hibernation -- The flag that enable or disable hibernation capability on the VM.
    - enable_secure_boot -- Enable secure boot.
    - enable_vtpm -- Enable vTPM.
    - ephemeral_os_disk_placement -- Only applicable when used with `--size`. Allows you to choose the Ephemeral OS disk provisioning location.
    - force_string -- When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
    - host -- ID of the dedicated host that the VM will reside in. --host and --host-group can't be used together. You should deallocate the VM before update, and start the VM after update. Please check out help for more examples.
    - host_group -- Name or ID of the dedicated host group that the VM will reside in. --host and --host-group can't be used together. You should deallocate the VM before update, and start the VM after update. Please check out help for more examples.
    - license_type -- Specifies that the Windows image or disk was licensed on-premises. To enable Azure Hybrid Benefit for Windows Server, use 'Windows_Server'. To enable Multitenant Hosting Rights for Windows 10, use 'Windows_Client'. For more information see the Azure Windows VM online docs.
    - max_price -- The maximum price (in US Dollars) you are willing to pay for a Spot VM/VMSS. -1 indicates that the Spot VM/VMSS should not be evicted for price reasons
    - no_wait -- Do not wait for the long-running operation to finish.
    - os_disk -- Managed OS disk ID or name to swap to
    - ppg -- The name or ID of the proximity placement group the VM should be associated with.
    - priority -- Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS. Default to Regular.
    - remove -- Remove a property or an element from a list.  Example: --remove property.list <indexToRemove> OR --remove propertyToRemove
    - set -- Update an object by specifying a property path and value to set.  Example: --set property1.property2=<value>
    - size -- The new size of the virtual machine. See https://azure.microsoft.com/pricing/details/virtual-machines/ for size info.
    - ultra_ssd_enabled -- Enables or disables the capability to have 1 or more managed data disks with UltraSSD_LRS storage account
    - user_data -- UserData for the VM. It can be passed in as file or string. If empty string is passed in, the existing value will be deleted.
    - workspace -- 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.
    - write_accelerator -- 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
    '''
    return _call_az("az vm update", locals())

    Update the properties of a VM.

    Required Parameters:
    - name -- The name of the Virtual Machine. You can configure the default using `az configure --defaults vm=<name>`
    - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`

    Optional Parameters:
    - add -- Add an object to a list of objects by specifying a path and key value pairs.  Example: --add property.listProperty <key=value, string or JSON string>
    - capacity_reservation_group -- The ID or name of the capacity reservation group that is used to allocate. Pass in "None" to disassociate the capacity reservation group. Please note that if you want to delete a VM/VMSS that has been associated with capacity reservation group, you need to disassociate the capacity reservation group first.
    - disk_caching -- Use singular value to apply across, or specify individual disks, e.g. 'os=ReadWrite 0=None 1=ReadOnly' should enable update os disk and 2 data disks
    - enable_hibernation -- The flag that enable or disable hibernation capability on the VM.
    - enable_secure_boot -- Enable secure boot.
    - enable_vtpm -- Enable vTPM.
    - ephemeral_os_disk_placement -- Only applicable when used with `--size`. Allows you to choose the Ephemeral OS disk provisioning location.
    - force_string -- When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
    - host -- ID of the dedicated host that the VM will reside in. --host and --host-group can't be used together. You should deallocate the VM before update, and start the VM after update. Please check out help for more examples.
    - host_group -- Name or ID of the dedicated host group that the VM will reside in. --host and --host-group can't be used together. You should deallocate the VM before update, and start the VM after update. Please check out help for more examples.
    - license_type -- Specifies that the Windows image or disk was licensed on-premises. To enable Azure Hybrid Benefit for Windows Server, use 'Windows_Server'. To enable Multitenant Hosting Rights for Windows 10, use 'Windows_Client'. For more information see the Azure Windows VM online docs.
    - max_price -- The maximum price (in US Dollars) you are willing to pay for a Spot VM/VMSS. -1 indicates that the Spot VM/VMSS should not be evicted for price reasons
    - no_wait -- Do not wait for the long-running operation to finish.
    - os_disk -- Managed OS disk ID or name to swap to
    - ppg -- The name or ID of the proximity placement group the VM should be associated with.
    - priority -- Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS. Default to Regular.
    - remove -- Remove a property or an element from a list.  Example: --remove property.list <indexToRemove> OR --remove propertyToRemove
    - set -- Update an object by specifying a property path and value to set.  Example: --set property1.property2=<value>
    - size -- The new size of the virtual machine. See https://azure.microsoft.com/pricing/details/virtual-machines/ for size info.
    - ultra_ssd_enabled -- Enables or disables the capability to have 1 or more managed data disks with UltraSSD_LRS storage account
    - user_data -- UserData for the VM. It can be passed in as file or string. If empty string is passed in, the existing value will be deleted.
    - workspace -- 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.
    - write_accelerator -- 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
    
Update the properties of a VM.
Required Parameters:
name -- The name of the Virtual Machine. You can configure the default using `az configure --defaults vm=`
resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=`

Optional Parameters:
add -- Add an object to a list of objects by specifying a path and key value pairs.  Example: --add property.listProperty 
capacity_reservation_group -- The ID or name of the capacity reservation group that is used to allocate. Pass in "None" to disassociate the capacity reservation group. Please note that if you want to delete a VM/VMSS that has been associated with capacity reservation group, you need to disassociate the capacity reservation group first.
disk_caching -- Use singular value to apply across, or specify individual disks, e.g. 'os=ReadWrite 0=None 1=ReadOnly' should enable update os disk and 2 data disks
enable_hibernation -- The flag that enable or disable hibernation capability on the VM.
enable_secure_boot -- Enable secure boot.
enable_vtpm -- Enable vTPM.
ephemeral_os_disk_placement -- Only applicable when used with `--size`. Allows you to choose the Ephemeral OS disk provisioning location.
force_string -- When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
host -- ID of the dedicated host that the VM will reside in.
Update the properties of a VM . Required Parameters : name -- The name of the Virtual Machine . You can configure the default using ` az configure -- defaults vm = ` resource_group -- Name of resource group . You can configure the default group using ` az configure -- defaults group = ` Optional Parameters : add -- Add an object to a list of objects by specifying a path and key value pairs . Example : -- add property . listProperty capacity_reservation_group -- The ID or name of the capacity reservation group that is used to allocate . Pass in " None " to disassociate the capacity reservation group . Please note that if you want to delete a VM / VMSS that has been associated with capacity reservation group you need to disassociate the capacity reservation group first . disk_caching -- Use singular value to apply across or specify individual disks e . g . ' os = ReadWrite 0 = None 1 = ReadOnly ' should enable update os disk and 2 data disks enable_hibernation -- The flag that enable or disable hibernation capability on the VM . enable_secure_boot -- Enable secure boot . enable_vtpm -- Enable vTPM . ephemeral_os_disk_placement -- Only applicable when used with ` -- size ` . Allows you to choose the Ephemeral OS disk provisioning location . force_string -- When using ' set ' or ' add ' preserve string literals instead of attempting to convert to JSON . host -- ID of the dedicated host that the VM will reside in .
def update(name, resource_group, add=None, capacity_reservation_group=None, disk_caching=None, enable_hibernation=None, enable_secure_boot=None, enable_vtpm=None, ephemeral_os_disk_placement=None, force_string=None, host=None, host_group=None, license_type=None, max_price=None, no_wait=None, os_disk=None, ppg=None, priority=None, remove=None, set=None, size=None, ultra_ssd_enabled=None, user_data=None, workspace=None, write_accelerator=None):
    return _call_az("az vm update", locals())
def update ( name , resource_group , add = None , capacity_reservation_group = None , disk_caching = None , enable_hibernation = None , enable_secure_boot = None , enable_vtpm = None , ephemeral_os_disk_placement = None , force_string = None , host = None , host_group = None , license_type = None , max_price = None , no_wait = None , os_disk = None , ppg = None , priority = None , remove = None , set = None , size = None , ultra_ssd_enabled = None , user_data = None , workspace = None , write_accelerator = None ) : return _call_az ( "az vm update" , locals ( ) )
Update the properties of a VM.
Update the properties of a VM .
'''
    Update the properties of a VM.

    Required Parameters:
    - name -- The name of the Virtual Machine. You can configure the default using `az configure --defaults vm=<name>`
    - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`

    Optional Parameters:
    - add -- Add an object to a list of objects by specifying a path and key value pairs.  Example: --add property.listProperty <key=value, string or JSON string>
    - capacity_reservation_group -- The ID or name of the capacity reservation group that is used to allocate. Pass in "None" to disassociate the capacity reservation group. Please note that if you want to delete a VM/VMSS that has been associated with capacity reservation group, you need to disassociate the capacity reservation group first.
    - disk_caching -- Use singular value to apply across, or specify individual disks, e.g. 'os=ReadWrite 0=None 1=ReadOnly' should enable update os disk and 2 data disks
    - enable_hibernation -- The flag that enable or disable hibernation capability on the VM.
    - enable_secure_boot -- Enable secure boot.
    - enable_vtpm -- Enable vTPM.
    - ephemeral_os_disk_placement -- Only applicable when used with `--size`. Allows you to choose the Ephemeral OS disk provisioning location.
    - force_string -- When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
    - host -- ID of the dedicated host that the VM will reside in. --host and --host-group can't be used together. You should deallocate the VM before update, and start the VM after update. Please check out help for more examples.
    - host_group -- Name or ID of the dedicated host group that the VM will reside in. --host and --host-group can't be used together. You should deallocate the VM before update, and start the VM after update. Please check out help for more examples.
    - license_type -- Specifies that the Windows image or disk was licensed on-premises. To enable Azure Hybrid Benefit for Windows Server, use 'Windows_Server'. To enable Multitenant Hosting Rights for Windows 10, use 'Windows_Client'. For more information see the Azure Windows VM online docs.
    - max_price -- The maximum price (in US Dollars) you are willing to pay for a Spot VM/VMSS. -1 indicates that the Spot VM/VMSS should not be evicted for price reasons
    - no_wait -- Do not wait for the long-running operation to finish.
    - os_disk -- Managed OS disk ID or name to swap to
    - ppg -- The name or ID of the proximity placement group the VM should be associated with.
    - priority -- Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS. Default to Regular.
    - remove -- Remove a property or an element from a list.  Example: --remove property.list <indexToRemove> OR --remove propertyToRemove
    - set -- Update an object by specifying a property path and value to set.  Example: --set property1.property2=<value>
    - size -- The new size of the virtual machine. See https://azure.microsoft.com/pricing/details/virtual-machines/ for size info.
    - ultra_ssd_enabled -- Enables or disables the capability to have 1 or more managed data disks with UltraSSD_LRS storage account
    - user_data -- UserData for the VM. It can be passed in as file or string. If empty string is passed in, the existing value will be deleted.
    - workspace -- 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.
    - write_accelerator -- 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
    '''
name
resource_group
add
capacity_reservation_group
disk_caching
enable_hibernation
enable_secure_boot
enable_vtpm
ephemeral_os_disk_placement
force_string
host
host_group
license_type
max_price
no_wait
os_disk
ppg
priority
remove
set
size
ultra_ssd_enabled
user_data
workspace
write_accelerator