Show / Hide Table of Contents

Class DedicatedHost

Manage a Dedicated Host within a Dedicated Host Group.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
    {
        Location = "West Europe",
    });
    var exampleDedicatedHostGroup = new Azure.Compute.DedicatedHostGroup("exampleDedicatedHostGroup", new Azure.Compute.DedicatedHostGroupArgs
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        PlatformFaultDomainCount = 2,
    });
    var exampleDedicatedHost = new Azure.Compute.DedicatedHost("exampleDedicatedHost", new Azure.Compute.DedicatedHostArgs
    {
        Location = exampleResourceGroup.Location,
        DedicatedHostGroupId = exampleDedicatedHostGroup.Id,
        SkuName = "DSv3-Type1",
        PlatformFaultDomain = 1,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
DedicatedHost
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Compute
Assembly: Pulumi.Azure.dll
Syntax
public class DedicatedHost : CustomResource

Constructors

View Source

DedicatedHost(String, DedicatedHostArgs, CustomResourceOptions)

Create a DedicatedHost resource with the given unique name, arguments, and options.

Declaration
public DedicatedHost(string name, DedicatedHostArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DedicatedHostArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AutoReplaceOnFailure

Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to true.

Declaration
public Output<bool?> AutoReplaceOnFailure { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

DedicatedHostGroupId

Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.

Declaration
public Output<string> DedicatedHostGroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

LicenseType

Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are None, Windows_Server_Hybrid and Windows_Server_Perpetual. Defaults to None.

Declaration
public Output<string> LicenseType { get; }
Property Value
Type Description
Output<System.String>
View Source

Location

Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PlatformFaultDomain

Specify the fault domain of the Dedicated Host Group in which to create the Dedicated Host. Changing this forces a new resource to be created.

Declaration
public Output<int> PlatformFaultDomain { get; }
Property Value
Type Description
Output<System.Int32>
View Source

SkuName

Specify the sku name of the Dedicated Host. Possible values are DSv3-Type1, DSv3-Type2, ESv3-Type1, ESv3-Type2,FSv2-Type2. Changing this forces a new resource to be created.

Declaration
public Output<string> SkuName { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>

Methods

View Source

Get(String, Input<String>, DedicatedHostState, CustomResourceOptions)

Get an existing DedicatedHost resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static DedicatedHost Get(string name, Input<string> id, DedicatedHostState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DedicatedHostState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
DedicatedHost
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.