VirtualMachine Class
Describes a Virtual Machine.
Constructor
VirtualMachine(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
id
|
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
|
name
|
The name of the resource. |
|
type
|
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
|
system_data
|
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags
|
Resource tags. |
|
location
|
The geo-location where the resource lives. Required. |
|
properties
|
Describes the properties of a Virtual Machine. |
|
plan
|
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. |
|
resources
|
The virtual machine child extension resources. |
|
identity
|
The identity of the virtual machine, if configured. |
|
zones
|
The availability zones. |
|
extended_location
|
The extended location of the Virtual Machine. |
|
managed_by
|
ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization. |
|
etag
|
Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates. |
|
placement
|
Placement section specifies the user-defined constraints for virtual machine hardware placement. This property cannot be changed once VM is provisioned. Minimum api-version: 2024-11-01. |
Attributes
etag
Etag is property returned in Create/Update/Get response of the VM, so that customer can supply it in the header to ensure optimistic updates.
etag: str | None
extended_location
The extended location of the Virtual Machine.
extended_location: _models.ExtendedLocation | None
identity
The identity of the virtual machine, if configured.
identity: _models.VirtualMachineIdentity | None
managed_by
ManagedBy is set to Virtual Machine Scale Set(VMSS) flex ARM resourceID, if the VM is part of the VMSS. This property is used by platform for internal resource group delete optimization.
managed_by: str | None
placement
Placement section specifies the user-defined constraints for virtual machine hardware placement. This property cannot be changed once VM is provisioned. Minimum api-version: 2024-11-01.
placement: _models.Placement | None
plan
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.
plan: _models.Plan | None
properties
Describes the properties of a Virtual Machine.
properties: _models.VirtualMachineProperties | None
resources
The virtual machine child extension resources.
resources: list['_models.VirtualMachineExtension'] | None
zones
The availability zones.
zones: list[str] | None