az vm update
Update the properties of a VM. Azure CLI reference
38 options Its page in the Azure CLI reference
Options
Show its 38 options
--add-proxy-agent-extension, --add-proxy-agent-extSpecify whether to implicitly install the ProxyAgent Extension.--additional-scheduled-events, --additional-eventsThe configuration parameter used while creating event grid and resource graph scheduled event setting.--align-regional-disks-to-vm-zone, --align-regional-disksSpecify whether the regional disks should be aligned/moved to the VM zone.--capacity-reservation-group, --crgThe ID or name of the capacity reservation group that is used to allocate.--disable-capacity-reservation-assignment, --no-cap-reservationExplicitly opt out the VM from being associated with any capacity reservation.--disk-cachingUse 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--disk-controller-typeSpecify the disk controller type configured for the VM or VMSS.--enable-all-instance-down, --all-instance-downSpecifies if Scheduled Events should be auto-approved when all instances are down.--enable-hibernationThe flag that enable or disable hibernation capability on the VM.--enable-proxy-agentSpecify whether metadata security protoco (proxy agent) feature should be enabled on the virtual machine or virtual machine scale set.--enable-secure-bootEnable secure boot.--enable-user-reboot-scheduled-events, --enable-rebootThe configuration parameter used while publishing scheduled events additional publishing targets.--enable-user-redeploy-scheduled-events, --enable-redeployThe configuration parameter used while creating user initiated redeploy scheduled event setting creation.--enable-vtpmEnable vTPM.--ephemeral-os-disk-placement, --ephemeral-placementOnly applicable when used with --size.--host-groupName or resource ID of the dedicated host group that the VM will reside in.--hostResource ID of the dedicated host that the VM will reside in.--imds-access-control-profile-reference-id, --imds-profile-idSpecify the access control profile version resource id resource id of imds.--key-incarnation-idIncrease the value of this property allows user to reset the key used for securing communication channel between guest and host.--license-typeSpecifies that the Windows image or disk was licensed on-premises.--max-priceThe maximum price (in US Dollars) you are willing to pay for a Spot VM/VMSS.--os-diskManaged OS disk ID or name to swap to--ppgThe name or ID of the proximity placement group the VM should be associated with.--preferred-sizePreferred VM size for Flow VMs.--priorityPriority.--processor-modeSpecifies the processor mode for the virtual machine or virtual machine scale set.--proxy-agent-mode, --wire-server-mode, --imds-modeSpecify the mode that proxy agent will execute on if the feature is enabled.--scheduled-events-api-version, --se-api-versionSpecifies the api-version to determine which Scheduled Events configuration schema version will be delivered.--security-typeSpecify the security type of the virtual machine.--sizeThe new size of the virtual machine.--ultra-ssd-enabledEnables or disables the capability to have 1 or more managed data disks with UltraSSD_LRS storage account--user-dataUserData for the VM.--v-cpus-availableSpecify the number of vCPUs available--v-cpus-per-coreSpecify the ratio of vCPU to physical core.--wire-server-access-control-profile-reference-id, --wire-server-profile-idSpecify the access control profile version resource id of wire server.--wire-server-use-local-file-rules, --wire-local-rulesWhen set to true, instructs the GuestProxyAgent inside the VM to load additional access control rules defined in a local file on the VM.--write-acceleratorenable/disable disk write accelerator.--zone-movementIndicates if zone movement is enabled.