Udostępnij za pośrednictwem


DedicatedHost Constructors

Definition

Overloads

DedicatedHost()

Initializes a new instance of the DedicatedHost class.

DedicatedHost(String, Sku, String, String, String, IDictionary<String, String>, Nullable<Int32>, Nullable<Boolean>, String, IList<SubResourceReadOnly>, Nullable<DedicatedHostLicenseTypes>, Nullable<DateTime>, String, DedicatedHostInstanceView, Nullable<DateTime>)

Initializes a new instance of the DedicatedHost class.

DedicatedHost()

Initializes a new instance of the DedicatedHost class.

public DedicatedHost ();
Public Sub New ()

Applies to

DedicatedHost(String, Sku, String, String, String, IDictionary<String, String>, Nullable<Int32>, Nullable<Boolean>, String, IList<SubResourceReadOnly>, Nullable<DedicatedHostLicenseTypes>, Nullable<DateTime>, String, DedicatedHostInstanceView, Nullable<DateTime>)

Initializes a new instance of the DedicatedHost class.

public DedicatedHost (string location, Microsoft.Azure.Management.Compute.Models.Sku sku, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, int? platformFaultDomain = default, bool? autoReplaceOnFailure = default, string hostId = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> virtualMachines = default, Microsoft.Azure.Management.Compute.Models.DedicatedHostLicenseTypes? licenseType = default, DateTime? provisioningTime = default, string provisioningState = default, Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView instanceView = default, DateTime? timeCreated = default);
new Microsoft.Azure.Management.Compute.Models.DedicatedHost : string * Microsoft.Azure.Management.Compute.Models.Sku * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<bool> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> * Nullable<Microsoft.Azure.Management.Compute.Models.DedicatedHostLicenseTypes> * Nullable<DateTime> * string * Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView * Nullable<DateTime> -> Microsoft.Azure.Management.Compute.Models.DedicatedHost
Public Sub New (location As String, sku As Sku, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional platformFaultDomain As Nullable(Of Integer) = Nothing, Optional autoReplaceOnFailure As Nullable(Of Boolean) = Nothing, Optional hostId As String = Nothing, Optional virtualMachines As IList(Of SubResourceReadOnly) = Nothing, Optional licenseType As Nullable(Of DedicatedHostLicenseTypes) = Nothing, Optional provisioningTime As Nullable(Of DateTime) = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As DedicatedHostInstanceView = Nothing, Optional timeCreated As Nullable(Of DateTime) = Nothing)

Parameters

location
String

Resource location

sku
Sku

SKU of the dedicated host for Hardware Generation and VM family. Only name is required to be set. List Microsoft.Compute SKUs for a list of possible values.

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

platformFaultDomain
Nullable<Int32>

Fault domain of the dedicated host within a dedicated host group.

autoReplaceOnFailure
Nullable<Boolean>

Specifies whether the dedicated host should be replaced automatically in case of a failure. The value is defaulted to 'true' when not provided.

hostId
String

A unique id generated and assigned to the dedicated host by the platform. Does not change throughout the lifetime of the host.

virtualMachines
IList<SubResourceReadOnly>

A list of references to all virtual machines in the Dedicated Host.

licenseType
Nullable<DedicatedHostLicenseTypes>

Specifies the software license type that will be applied to the VMs deployed on the dedicated host. Possible values are: None, Windows_Server_Hybrid, Windows_Server_Perpetual. The default value is: None.. Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual'

provisioningTime
Nullable<DateTime>

The date when the host was first provisioned.

provisioningState
String

The provisioning state, which only appears in the response.

instanceView
DedicatedHostInstanceView

The dedicated host instance view.

timeCreated
Nullable<DateTime>

Specifies the time at which the Dedicated Host resource was created. Minimum api-version: 2021-11-01.

Applies to