DedicatedHostGroup
Manage 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 = 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
}
_, err = compute.NewDedicatedHostGroup(ctx, "exampleDedicatedHostGroup", &compute.DedicatedHostGroupArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
PlatformFaultDomainCount: 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=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: 1,
});Create a DedicatedHostGroup Resource
new DedicatedHostGroup(name: string, args: DedicatedHostGroupArgs, opts?: CustomResourceOptions);def DedicatedHostGroup(resource_name, opts=None, location=None, name=None, platform_fault_domain_count=None, resource_group_name=None, tags=None, zones=None, __props__=None);func NewDedicatedHostGroup(ctx *Context, name string, args DedicatedHostGroupArgs, opts ...ResourceOption) (*DedicatedHostGroup, error)public DedicatedHostGroup(string name, DedicatedHostGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DedicatedHostGroupArgs
- 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 DedicatedHostGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
DedicatedHostGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The DedicatedHostGroup resource accepts the following input properties:
- Platform
Fault intDomain Count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- Location string
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zones string
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
- Platform
Fault intDomain Count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- Location string
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- Zones string
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
- platform
Fault numberDomain Count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- location string
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- zones string
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
- platform_
fault_ floatdomain_ count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- resource_
group_ strname Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- location str
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
- zones str
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedHostGroup resource produces the following output properties:
Look up an Existing DedicatedHostGroup Resource
Get an existing DedicatedHostGroup 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?: DedicatedHostGroupState, opts?: CustomResourceOptions): DedicatedHostGroupstatic get(resource_name, id, opts=None, location=None, name=None, platform_fault_domain_count=None, resource_group_name=None, tags=None, zones=None, __props__=None);func GetDedicatedHostGroup(ctx *Context, name string, id IDInput, state *DedicatedHostGroupState, opts ...ResourceOption) (*DedicatedHostGroup, error)public static DedicatedHostGroup Get(string name, Input<string> id, DedicatedHostGroupState? 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:
- Location string
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- Platform
Fault intDomain Count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Zones string
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
- Location string
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- Platform
Fault intDomain Count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- Zones string
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
- location string
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- platform
Fault numberDomain Count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- zones string
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
- location str
The Azure location where the Dedicated Host Group exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the Dedicated Host Group. Changing this forces a new resource to be created.
- platform_
fault_ floatdomain_ count The number of fault domains that the Dedicated Host Group spans. Changing this forces a new resource to be created.
- resource_
group_ strname Specifies the name of the resource group the Dedicated Host Group is located in. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
- zones str
A list of Availability Zones in which the Dedicated Host Group should be located. Changing this forces a new resource to be created.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.