VirtualMachine VirtualMachine VirtualMachine Class

Definition

Describes a Virtual Machine.

[Microsoft.Rest.Serialization.JsonTransformation]
public class VirtualMachine : Microsoft.Azure.Management.Compute.Models.Resource
type VirtualMachine = class
    inherit Resource
Public Class VirtualMachine
Inherits Resource
Inheritance
VirtualMachineVirtualMachineVirtualMachine
Attributes
Microsoft.Rest.Serialization.JsonTransformationAttribute

Constructors

VirtualMachine() VirtualMachine() VirtualMachine()

Initializes a new instance of the VirtualMachine class.

VirtualMachine(String, String, String, String, IDictionary<String,String>, Plan, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, NetworkProfile, DiagnosticsProfile, SubResource, String, VirtualMachineInstanceView, String, String, IList<VirtualMachineExtension>, VirtualMachineIdentity, IList<String>) VirtualMachine(String, String, String, String, IDictionary<String,String>, Plan, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, NetworkProfile, DiagnosticsProfile, SubResource, String, VirtualMachineInstanceView, String, String, IList<VirtualMachineExtension>, VirtualMachineIdentity, IList<String>) VirtualMachine(String, String, String, String, IDictionary<String,String>, Plan, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, NetworkProfile, DiagnosticsProfile, SubResource, String, VirtualMachineInstanceView, String, String, IList<VirtualMachineExtension>, VirtualMachineIdentity, IList<String>)

Initializes a new instance of the VirtualMachine class.

Properties

AdditionalCapabilities AdditionalCapabilities AdditionalCapabilities

Gets or sets specifies additional capabilities enabled or disabled on the virtual machine.

AvailabilitySet AvailabilitySet AvailabilitySet

Gets or sets 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 Manage the availability of virtual machines. &lt;br&gt;&lt;br&gt; For more information on Azure planned maintainance, see Planned maintenance for virtual machines in Azure &lt;br&gt;&lt;br&gt; Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.

DiagnosticsProfile DiagnosticsProfile DiagnosticsProfile

Gets or sets specifies the boot diagnostic settings state. &lt;br&gt;&lt;br&gt;Minimum api-version: 2015-06-15.

HardwareProfile HardwareProfile HardwareProfile

Gets or sets specifies the hardware settings for the virtual machine.

Id Id Id

Gets resource Id

(Inherited from Resource)
Identity Identity Identity

Gets or sets the identity of the virtual machine, if configured.

InstanceView InstanceView InstanceView

Gets the virtual machine instance view.

LicenseType LicenseType LicenseType

Gets or sets specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; Windows_Client &lt;br&gt;&lt;br&gt; Windows_Server &lt;br&gt;&lt;br&gt; If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. &lt;br&gt;&lt;br&gt; For more information, see Azure Hybrid Use Benefit for Windows Server &lt;br&gt;&lt;br&gt; Minimum api-version: 2015-06-15

Location Location Location

Gets or sets resource location

(Inherited from Resource)
Name Name Name

Gets resource name

(Inherited from Resource)
NetworkProfile NetworkProfile NetworkProfile

Gets or sets specifies the network interfaces of the virtual machine.

OsProfile OsProfile OsProfile

Gets or sets specifies the operating system settings for the virtual machine.

Plan Plan Plan

Gets or sets 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 -&gt;. Enter any required information and then click Save.

ProvisioningState ProvisioningState ProvisioningState

Gets the provisioning state, which only appears in the response.

Resources Resources Resources

Gets the virtual machine child extension resources.

StorageProfile StorageProfile StorageProfile

Gets or sets specifies the storage settings for the virtual machine disks.

Tags Tags Tags

Gets or sets resource tags

(Inherited from Resource)
Type Type Type

Gets resource type

(Inherited from Resource)
VmId VmId VmId

Gets 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.

Zones Zones Zones

Gets or sets the virtual machine zones.

Methods

Validate() Validate() Validate()

Validate the object.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to