Show / Hide Table of Contents

    Class DedicatedHost

    Specifies information about the Dedicated host.

    Inheritance
    Object
    Resource
    DedicatedHost
    Inherited Members
    Resource.Id
    Resource.Location
    Resource.Name
    Resource.Tags
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class DedicatedHost : Microsoft.Azure.Management.Compute.Models.Resource

    Constructors

    DedicatedHost()

    Initializes a new instance of the DedicatedHost class.

    Declaration
    public DedicatedHost ();

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

    Initializes a new instance of the DedicatedHost class.

    Declaration
    public DedicatedHost (string location, Microsoft.Azure.Management.Compute.Models.Sku sku, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null, Nullable<int> platformFaultDomain = null, Nullable<bool> autoReplaceOnFailure = null, string hostId = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> virtualMachines = null, Nullable<Microsoft.Azure.Management.Compute.Models.DedicatedHostLicenseTypes> licenseType = null, Nullable<DateTime> provisioningTime = null, string provisioningState = null, Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView instanceView = null);
    Parameters
    String location

    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.

    String id

    Resource Id

    String name

    Resource name

    String type

    Resource type

    IDictionary<String,String> tags

    Resource tags

    Nullable<Int32> platformFaultDomain

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

    Nullable<Boolean> autoReplaceOnFailure

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

    String hostId

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

    IList<SubResourceReadOnly> virtualMachines

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

    Nullable<DedicatedHostLicenseTypes> licenseType

    Specifies the software license type that will be applied to the VMs deployed on the dedicated host. <br><br> Possible values are: <br><br> None <br><br> Windows_Server_Hybrid <br><br> Windows_Server_Perpetual <br><br> Default: None. Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual'

    Nullable<DateTime> provisioningTime

    The date when the host was first provisioned.

    String provisioningState

    The provisioning state, which only appears in the response.

    DedicatedHostInstanceView instanceView

    The dedicated host instance view.

    Properties

    AutoReplaceOnFailure

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.autoReplaceOnFailure")]
    public Nullable<bool> AutoReplaceOnFailure { get; set; }
    Property Value
    Nullable<Boolean>

    HostId

    Gets a unique id generated and assigned to the dedicated host by the platform. &lt;br&gt;&lt;br&gt; Does not change throughout the lifetime of the host.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.hostId")]
    public string HostId { get; }
    Property Value
    String

    InstanceView

    Gets the dedicated host instance view.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.instanceView")]
    public Microsoft.Azure.Management.Compute.Models.DedicatedHostInstanceView InstanceView { get; }
    Property Value
    DedicatedHostInstanceView

    LicenseType

    Gets or sets specifies the software license type that will be applied to the VMs deployed on the dedicated host. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; None &lt;br&gt;&lt;br&gt; Windows_Server_Hybrid &lt;br&gt;&lt;br&gt; Windows_Server_Perpetual &lt;br&gt;&lt;br&gt; Default: None. Possible values include: 'None', 'Windows_Server_Hybrid', 'Windows_Server_Perpetual'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.licenseType")]
    public Nullable<Microsoft.Azure.Management.Compute.Models.DedicatedHostLicenseTypes> LicenseType { get; set; }
    Property Value
    Nullable<DedicatedHostLicenseTypes>

    PlatformFaultDomain

    Gets or sets fault domain of the dedicated host within a dedicated host group.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.platformFaultDomain")]
    public Nullable<int> PlatformFaultDomain { get; set; }
    Property Value
    Nullable<Int32>

    ProvisioningState

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.provisioningState")]
    public string ProvisioningState { get; }
    Property Value
    String

    ProvisioningTime

    Gets the date when the host was first provisioned.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.provisioningTime")]
    public Nullable<DateTime> ProvisioningTime { get; }
    Property Value
    Nullable<DateTime>

    Sku

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="sku")]
    public Microsoft.Azure.Management.Compute.Models.Sku Sku { get; set; }
    Property Value
    Sku

    VirtualMachines

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.virtualMachines")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> VirtualMachines { get; }
    Property Value
    IList<SubResourceReadOnly>

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net