GetDedicatedHostGroup
Use this data source to access information about an existing Dedicated Host Group.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Compute.GetDedicatedHostGroup.InvokeAsync(new Azure.Compute.GetDedicatedHostGroupArgs
{
Name = "example-dedicated-host-group",
ResourceGroupName = "example-rg",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/compute"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := compute.LookupDedicatedHostGroup(ctx, &compute.LookupDedicatedHostGroupArgs{
Name: "example-dedicated-host-group",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.compute.get_dedicated_host_group(name="example-dedicated-host-group",
resource_group_name="example-rg")
pulumi.export("id", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.compute.getDedicatedHostGroup({
name: "example-dedicated-host-group",
resourceGroupName: "example-rg",
});
export const id = example.then(example => example.id);Using GetDedicatedHostGroup
function getDedicatedHostGroup(args: GetDedicatedHostGroupArgs, opts?: InvokeOptions): Promise<GetDedicatedHostGroupResult>function get_dedicated_host_group(name=None, resource_group_name=None, opts=None)func LookupDedicatedHostGroup(ctx *Context, args *LookupDedicatedHostGroupArgs, opts ...InvokeOption) (*LookupDedicatedHostGroupResult, error)Note: This function is named
LookupDedicatedHostGroupin the Go SDK.
public static class GetDedicatedHostGroup {
public static Task<GetDedicatedHostGroupResult> InvokeAsync(GetDedicatedHostGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Dedicated Host Group.
- Resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in.
- Name string
Specifies the name of the Dedicated Host Group.
- Resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in.
- name string
Specifies the name of the Dedicated Host Group.
- resource
Group stringName Specifies the name of the resource group the Dedicated Host Group is located in.
- name str
Specifies the name of the Dedicated Host Group.
- resource_
group_ strname Specifies the name of the resource group the Dedicated Host Group is located in.
GetDedicatedHostGroup Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure location where the Dedicated Host Group exists.
- Name string
- Platform
Fault intDomain Count The number of fault domains that the Dedicated Host Group spans.
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags assigned to the resource.
- Zones List<string>
The Availability Zones in which this Dedicated Host Group is located.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure location where the Dedicated Host Group exists.
- Name string
- Platform
Fault intDomain Count The number of fault domains that the Dedicated Host Group spans.
- Resource
Group stringName - map[string]string
A mapping of tags assigned to the resource.
- Zones []string
The Availability Zones in which this Dedicated Host Group is located.
- id string
The provider-assigned unique ID for this managed resource.
- location string
The Azure location where the Dedicated Host Group exists.
- name string
- platform
Fault numberDomain Count The number of fault domains that the Dedicated Host Group spans.
- resource
Group stringName - {[key: string]: string}
A mapping of tags assigned to the resource.
- zones string[]
The Availability Zones in which this Dedicated Host Group is located.
- id str
The provider-assigned unique ID for this managed resource.
- location str
The Azure location where the Dedicated Host Group exists.
- name str
- platform_
fault_ floatdomain_ count The number of fault domains that the Dedicated Host Group spans.
- resource_
group_ strname - Dict[str, str]
A mapping of tags assigned to the resource.
- zones List[str]
The Availability Zones in which this Dedicated Host Group is located.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.