Show / Hide Table of Contents

Class GetDedicatedHost

Inheritance
System.Object
GetDedicatedHost
Inherited Members
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 static class GetDedicatedHost

Methods

View Source

InvokeAsync(GetDedicatedHostArgs, InvokeOptions)

Use this data source to access information about an existing Dedicated Host.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Compute.GetDedicatedHost.InvokeAsync(new Azure.Compute.GetDedicatedHostArgs
    {
        Name = "example-host",
        DedicatedHostGroupName = "example-host-group",
        ResourceGroupName = "example-resources",
    }));
    this.DedicatedHostId = example.Apply(example => example.Id);
}

[Output("dedicatedHostId")]
public Output<string> DedicatedHostId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetDedicatedHostResult> InvokeAsync(GetDedicatedHostArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetDedicatedHostArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetDedicatedHostResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.