VirtualMachineUpdate Class

Describes a Virtual Machine Update.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.compute.v2021_04_01.models._models_py3.UpdateResource
VirtualMachineUpdate

Constructor

VirtualMachineUpdate(*, tags: Optional[Dict[str, str]] = None, plan: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.Plan] = None, identity: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineIdentity] = None, zones: Optional[List[str]] = None, hardware_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.HardwareProfile] = None, storage_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.StorageProfile] = None, additional_capabilities: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.AdditionalCapabilities] = None, os_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.OSProfile] = None, network_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.NetworkProfile] = None, security_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SecurityProfile] = None, diagnostics_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.DiagnosticsProfile] = None, availability_set: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SubResource] = None, virtual_machine_scale_set: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SubResource] = None, proximity_placement_group: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SubResource] = None, priority: Optional[Union[str, azure.mgmt.compute.v2021_04_01.models._compute_management_client_enums.VirtualMachinePriorityTypes]] = None, eviction_policy: Optional[Union[str, azure.mgmt.compute.v2021_04_01.models._compute_management_client_enums.VirtualMachineEvictionPolicyTypes]] = None, billing_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.BillingProfile] = None, host: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SubResource] = None, host_group: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.SubResource] = None, license_type: Optional[str] = None, extensions_time_budget: Optional[str] = None, platform_fault_domain: Optional[int] = None, scheduled_events_profile: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.ScheduledEventsProfile] = None, user_data: Optional[str] = None, capacity_reservation: Optional[azure.mgmt.compute.v2021_04_01.models._models_py3.CapacityReservationProfile] = None, **kwargs)

Parameters

tags
dict[str, str]
Required

A set of tags. Resource tags.

plan
Plan
Required

Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click Want to deploy programmatically, Get Started ->. Enter any required information and then click Save.

identity
VirtualMachineIdentity
Required

The identity of the virtual machine, if configured.

zones
list[str]
Required

The virtual machine zones.

hardware_profile
HardwareProfile
Required

Specifies the hardware settings for the virtual machine.

storage_profile
StorageProfile
Required

Specifies the storage settings for the virtual machine disks.

additional_capabilities
AdditionalCapabilities
Required

Specifies additional capabilities enabled or disabled on the virtual machine.

os_profile
OSProfile
Required

Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be changed once VM is provisioned.

network_profile
NetworkProfile
Required

Specifies the network interfaces of the virtual machine.

security_profile
SecurityProfile
Required

Specifies the Security related profile settings for the virtual machine.

diagnostics_profile
DiagnosticsProfile
Required

Specifies the boot diagnostic settings state. <br>:code:>><<<br>Minimum api-version: 2015-06-15.

availability_set
SubResource
Required

Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Availability sets overview. <br>``<br> For more information on Azure planned maintenance, see Maintenance and updates for Virtual Machines in Azure <br>``<br> Currently, a VM can only be added to availability set at creation time. The availability set to which the VM is being added should be under the same resource group as the availability set resource. An existing VM cannot be added to an availability set. <br>:code:>><<<br>This property cannot exist along with a non-null properties.virtualMachineScaleSet reference.

virtual_machine_scale_set
SubResource
Required

Specifies information about the virtual machine scale set that the virtual machine should be assigned to. Virtual machines specified in the same virtual machine scale set are allocated to different nodes to maximize availability. Currently, a VM can only be added to virtual machine scale set at creation time. An existing VM cannot be added to a virtual machine scale set. <br>``<br>This property cannot exist along with a non-null properties.availabilitySet reference. :code:<br>:code:>><<<br>Minimum api‐version: 2019‐03‐01.

proximity_placement_group
SubResource
Required

Specifies information about the proximity placement group that the virtual machine should be assigned to. <br>:code:>><<<br>Minimum api-version: 2018-04-01.

priority
str or VirtualMachinePriorityTypes
Required

Specifies the priority for the virtual machine. <br>:code:>><<<br>Minimum api-version: 2019-03-01. Possible values include: "Regular", "Low", "Spot".

eviction_policy
str or VirtualMachineEvictionPolicyTypes
Required

Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. <br>``<br>For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. :code:<br>:code:>><<<br>For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview. Possible values include: "Deallocate", "Delete".

billing_profile
BillingProfile
Required

Specifies the billing related details of a Azure Spot virtual machine. <br>:code:>><<<br>Minimum api-version: 2019-03-01.

host
SubResource
Required

Specifies information about the dedicated host that the virtual machine resides in. <br>:code:>><<<br>Minimum api-version: 2018-10-01.

host_group
SubResource
Required

Specifies information about the dedicated host group that the virtual machine resides in. <br>``<br>Minimum api-version: 2020-06-01. :code:<br>:code:>><<<br>NOTE: User cannot specify both host and hostGroup properties.

license_type
str
Required

Specifies that the image or disk that is being used was licensed on-premises. <br>``<br> Possible values for Windows Server operating system are: <br>``<br> Windows_Client <br>``<br> Windows_Server <br>``<br> Possible values for Linux Server operating system are: <br>``<br> RHEL_BYOS (for RHEL) <br>``<br> SLES_BYOS (for SUSE) <br>``<br> For more information, see Azure Hybrid Use Benefit for Windows Server <br>``<br> Azure Hybrid Use Benefit for Linux Server <br>``<br> Minimum api-version: 2015-06-15.

extensions_time_budget
str
Required

Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M). <br>``<br> Minimum api-version: 2020-06-01.

platform_fault_domain
int
Required

Specifies the scale set logical fault domain into which the Virtual Machine will be created. By default, the Virtual Machine will by automatically assigned to a fault domain that best maintains balance across available fault domains.:code:
<li>This is applicable only if the 'virtualMachineScaleSet' property of this Virtual Machine is set.:code:<li>The Virtual Machine Scale Set that is referenced, must have 'platformFaultDomainCount' > 1.:code:<li>This property cannot be updated once the Virtual Machine is created.:code:<li>Fault domain assignment can be viewed in the Virtual Machine Instance View.:code:<br>:code:>><<<br>Minimum api‐version: 2020‐12‐01.

scheduled_events_profile
ScheduledEventsProfile
Required

Specifies Scheduled Event related configurations.

user_data
str
Required

UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br>:code:>><<<br>Minimum api-version: 2021-03-01.

capacity_reservation
CapacityReservationProfile
Required

Specifies information about the capacity reservation that is used to allocate virtual machine. <br>:code:>><<<br>Minimum api-version: 2021-04-01.

Variables

provisioning_state
str

The provisioning state, which only appears in the response.

instance_view
VirtualMachineInstanceView

The virtual machine instance view.

vm_id
str

Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands.