次の方法で共有


ArmComputeModelFactory.DedicatedHostData Method

Definition

Initializes a new instance of DedicatedHostData.

public static Azure.ResourceManager.Compute.DedicatedHostData DedicatedHostData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default, int? platformFaultDomain = default, bool? autoReplaceOnFailure = default, string hostId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> virtualMachines = default, Azure.ResourceManager.Compute.Models.DedicatedHostLicenseType? licenseType = default, DateTimeOffset? provisioningOn = default, string provisioningState = default, Azure.ResourceManager.Compute.Models.DedicatedHostInstanceView instanceView = default, DateTimeOffset? timeCreated = default);
static member DedicatedHostData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.Models.ComputeSku * Nullable<int> * Nullable<bool> * string * seq<Azure.ResourceManager.Resources.Models.SubResource> * Nullable<Azure.ResourceManager.Compute.Models.DedicatedHostLicenseType> * Nullable<DateTimeOffset> * string * Azure.ResourceManager.Compute.Models.DedicatedHostInstanceView * Nullable<DateTimeOffset> -> Azure.ResourceManager.Compute.DedicatedHostData
Public Shared Function DedicatedHostData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional sku As ComputeSku = Nothing, Optional platformFaultDomain As Nullable(Of Integer) = Nothing, Optional autoReplaceOnFailure As Nullable(Of Boolean) = Nothing, Optional hostId As String = Nothing, Optional virtualMachines As IEnumerable(Of SubResource) = Nothing, Optional licenseType As Nullable(Of DedicatedHostLicenseType) = Nothing, Optional provisioningOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As DedicatedHostInstanceView = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing) As DedicatedHostData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

sku
ComputeSku

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.

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
IEnumerable<SubResource>

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

licenseType
Nullable<DedicatedHostLicenseType>

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

provisioningOn
Nullable<DateTimeOffset>

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<DateTimeOffset>

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

Returns

A new DedicatedHostData instance for mocking.

Applies to