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,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleDedicatedHostGroup, err := compute.NewDedicatedHostGroup(ctx, "exampleDedicatedHostGroup", &compute.DedicatedHostGroupArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
PlatformFaultDomainCount: pulumi.Int(2),
})
if err != nil {
return err
}
_, err = compute.NewDedicatedHost(ctx, "exampleDedicatedHost", &compute.DedicatedHostArgs{
Location: exampleResourceGroup.Location,
DedicatedHostGroupId: exampleDedicatedHostGroup.ID(),
SkuName: pulumi.String("DSv3-Type1"),
PlatformFaultDomain: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_dedicated_host_group = azure.compute.DedicatedHostGroup("exampleDedicatedHostGroup",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
platform_fault_domain_count=2)
example_dedicated_host = azure.compute.DedicatedHost("exampleDedicatedHost",
location=example_resource_group.location,
dedicated_host_group_id=example_dedicated_host_group.id,
sku_name="DSv3-Type1",
platform_fault_domain=1)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleDedicatedHostGroup = new azure.compute.DedicatedHostGroup("exampleDedicatedHostGroup", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
platformFaultDomainCount: 2,
});
const exampleDedicatedHost = new azure.compute.DedicatedHost("exampleDedicatedHost", {
location: exampleResourceGroup.location,
dedicatedHostGroupId: exampleDedicatedHostGroup.id,
skuName: "DSv3-Type1",
platformFaultDomain: 1,
});Create a DedicatedHost Resource
new DedicatedHost(name: string, args: DedicatedHostArgs, opts?: CustomResourceOptions);def DedicatedHost(resource_name, opts=None, auto_replace_on_failure=None, dedicated_host_group_id=None, license_type=None, location=None, name=None, platform_fault_domain=None, sku_name=None, tags=None, __props__=None);func NewDedicatedHost(ctx *Context, name string, args DedicatedHostArgs, opts ...ResourceOption) (*DedicatedHost, error)public DedicatedHost(string name, DedicatedHostArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DedicatedHost Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DedicatedHost resource accepts the following input properties:
- Dedicated
Host stringGroup Id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- Platform
Fault intDomain 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.
- Sku
Name string 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.- Auto
Replace boolOn Failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- License
Type string Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- Location string
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Dedicated
Host stringGroup Id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- Platform
Fault intDomain 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.
- Sku
Name string 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.- Auto
Replace boolOn Failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- License
Type string Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- Location string
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- dedicated
Host stringGroup Id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- platform
Fault numberDomain 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.
- sku
Name string 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.- auto
Replace booleanOn Failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- license
Type string Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- location string
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- dedicated_
host_ strgroup_ id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- platform_
fault_ floatdomain 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.
- sku_
name str 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.- auto_
replace_ boolon_ failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- license_
type str Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- location str
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedHost resource produces the following output properties:
Look up an Existing DedicatedHost Resource
Get an existing DedicatedHost resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DedicatedHostState, opts?: CustomResourceOptions): DedicatedHoststatic get(resource_name, id, opts=None, auto_replace_on_failure=None, dedicated_host_group_id=None, license_type=None, location=None, name=None, platform_fault_domain=None, sku_name=None, tags=None, __props__=None);func GetDedicatedHost(ctx *Context, name string, id IDInput, state *DedicatedHostState, opts ...ResourceOption) (*DedicatedHost, error)public static DedicatedHost Get(string name, Input<string> id, DedicatedHostState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Auto
Replace boolOn Failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- Dedicated
Host stringGroup Id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- License
Type string Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- Location string
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- Platform
Fault intDomain 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.
- Sku
Name string 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.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Auto
Replace boolOn Failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- Dedicated
Host stringGroup Id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- License
Type string Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- Location string
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- Platform
Fault intDomain 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.
- Sku
Name string 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.- map[string]string
A mapping of tags to assign to the resource.
- auto
Replace booleanOn Failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- dedicated
Host stringGroup Id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- license
Type string Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- location string
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- platform
Fault numberDomain 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.
- sku
Name string 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.- {[key: string]: string}
A mapping of tags to assign to the resource.
- auto_
replace_ boolon_ failure Should the Dedicated Host automatically be replaced in case of a Hardware Failure? Defaults to
true.- dedicated_
host_ strgroup_ id Specifies the ID of the Dedicated Host Group where the Dedicated Host should exist. Changing this forces a new resource to be created.
- license_
type str Specifies the software license type that will be applied to the VMs deployed on the Dedicated Host. Possible values are
None,Windows_Server_HybridandWindows_Server_Perpetual. Defaults toNone.- location str
Specify the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of this Dedicated Host. Changing this forces a new resource to be created.
- platform_
fault_ floatdomain 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.
- sku_
name str 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.- Dict[str, str]
A mapping of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.