Dela via


VirtualMachineUpdate Constructors

Definition

Overloads

VirtualMachineUpdate()

Initializes a new instance of the VirtualMachineUpdate class.

VirtualMachineUpdate(IDictionary<String,String>, Plan, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, NetworkProfile, SecurityProfile, DiagnosticsProfile, SubResource, SubResource, SubResource, VirtualMachinePriorityTypes, VirtualMachineEvictionPolicyTypes, BillingProfile, SubResource, SubResource, String, VirtualMachineInstanceView, String, String, String, VirtualMachineIdentity, IList<String>)

Initializes a new instance of the VirtualMachineUpdate class.

VirtualMachineUpdate()

Initializes a new instance of the VirtualMachineUpdate class.

public VirtualMachineUpdate ();
Public Sub New ()

Applies to

VirtualMachineUpdate(IDictionary<String,String>, Plan, HardwareProfile, StorageProfile, AdditionalCapabilities, OSProfile, NetworkProfile, SecurityProfile, DiagnosticsProfile, SubResource, SubResource, SubResource, VirtualMachinePriorityTypes, VirtualMachineEvictionPolicyTypes, BillingProfile, SubResource, SubResource, String, VirtualMachineInstanceView, String, String, String, VirtualMachineIdentity, IList<String>)

Initializes a new instance of the VirtualMachineUpdate class.

public VirtualMachineUpdate (System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Fluent.Models.Plan plan = default, Microsoft.Azure.Management.Compute.Fluent.Models.HardwareProfile hardwareProfile = default, Microsoft.Azure.Management.Compute.Fluent.Models.StorageProfile storageProfile = default, Microsoft.Azure.Management.Compute.Fluent.Models.AdditionalCapabilities additionalCapabilities = default, Microsoft.Azure.Management.Compute.Fluent.Models.OSProfile osProfile = default, Microsoft.Azure.Management.Compute.Fluent.Models.NetworkProfile networkProfile = default, Microsoft.Azure.Management.Compute.Fluent.Models.SecurityProfile securityProfile = default, Microsoft.Azure.Management.Compute.Fluent.Models.DiagnosticsProfile diagnosticsProfile = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource availabilitySet = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource virtualMachineScaleSet = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource proximityPlacementGroup = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachinePriorityTypes priority = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineEvictionPolicyTypes evictionPolicy = default, Microsoft.Azure.Management.Compute.Fluent.Models.BillingProfile billingProfile = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource host = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource hostGroup = default, string provisioningState = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineInstanceView instanceView = default, string licenseType = default, string vmId = default, string extensionsTimeBudget = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineIdentity identity = default, System.Collections.Generic.IList<string> zones = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineUpdate : System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Fluent.Models.Plan * Microsoft.Azure.Management.Compute.Fluent.Models.HardwareProfile * Microsoft.Azure.Management.Compute.Fluent.Models.StorageProfile * Microsoft.Azure.Management.Compute.Fluent.Models.AdditionalCapabilities * Microsoft.Azure.Management.Compute.Fluent.Models.OSProfile * Microsoft.Azure.Management.Compute.Fluent.Models.NetworkProfile * Microsoft.Azure.Management.Compute.Fluent.Models.SecurityProfile * Microsoft.Azure.Management.Compute.Fluent.Models.DiagnosticsProfile * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachinePriorityTypes * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineEvictionPolicyTypes * Microsoft.Azure.Management.Compute.Fluent.Models.BillingProfile * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * string * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineInstanceView * string * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineIdentity * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineUpdate
Public Sub New (Optional tags As IDictionary(Of String, String) = Nothing, Optional plan As Plan = Nothing, Optional hardwareProfile As HardwareProfile = Nothing, Optional storageProfile As StorageProfile = Nothing, Optional additionalCapabilities As AdditionalCapabilities = Nothing, Optional osProfile As OSProfile = Nothing, Optional networkProfile As NetworkProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional diagnosticsProfile As DiagnosticsProfile = Nothing, Optional availabilitySet As SubResource = Nothing, Optional virtualMachineScaleSet As SubResource = Nothing, Optional proximityPlacementGroup As SubResource = Nothing, Optional priority As VirtualMachinePriorityTypes = Nothing, Optional evictionPolicy As VirtualMachineEvictionPolicyTypes = Nothing, Optional billingProfile As BillingProfile = Nothing, Optional host As SubResource = Nothing, Optional hostGroup As SubResource = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As VirtualMachineInstanceView = Nothing, Optional licenseType As String = Nothing, Optional vmId As String = Nothing, Optional extensionsTimeBudget As String = Nothing, Optional identity As VirtualMachineIdentity = Nothing, Optional zones As IList(Of String) = Nothing)

Parameters

tags
IDictionary<String,String>

Resource tags

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

hardwareProfile
HardwareProfile

Specifies the hardware settings for the virtual machine.

storageProfile
StorageProfile

Specifies the storage settings for the virtual machine disks.

additionalCapabilities
AdditionalCapabilities

Specifies additional capabilities enabled or disabled on the virtual machine.

osProfile
OSProfile

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

networkProfile
NetworkProfile

Specifies the network interfaces of the virtual machine.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machine.

diagnosticsProfile
DiagnosticsProfile

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

availabilitySet
SubResource

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. <br><br> For more information on Azure planned maintenance, see Planned maintenance 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><br>This property cannot exist along with a non-null properties.virtualMachineScaleSet reference.

virtualMachineScaleSet
SubResource

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. <br><br>Minimum api‐version: 2019‐03‐01

proximityPlacementGroup
SubResource

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

priority
VirtualMachinePriorityTypes

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

evictionPolicy
VirtualMachineEvictionPolicyTypes

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. <br><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'

billingProfile
BillingProfile

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

host
SubResource

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

hostGroup
SubResource

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

provisioningState
String

The provisioning state, which only appears in the response.

instanceView
VirtualMachineInstanceView

The virtual machine instance view.

licenseType
String

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. <br><br> Possible values are: <br><br> Windows_Client <br><br> Windows_Server <br><br> If this element is included in a request for an update, the value must match the initial value. This value cannot be updated. <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Minimum api-version: 2015-06-15

vmId
String

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.

extensionsTimeBudget
String

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

identity
VirtualMachineIdentity

The identity of the virtual machine, if configured.

zones
IList<String>

The virtual machine zones.

Applies to