Show / Hide Table of Contents

Class GetResourceGroup

Inheritance
System.Object
GetResourceGroup
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.Core
Assembly: Pulumi.Azure.dll
Syntax
public static class GetResourceGroup

Methods

View Source

InvokeAsync(GetResourceGroupArgs, InvokeOptions)

Use this data source to access information about an existing Resource Group.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Core.GetResourceGroup.InvokeAsync(new Azure.Core.GetResourceGroupArgs
    {
        Name = "existing",
    }));
    this.Id = example.Apply(example => example.Id);
}

[Output("id")]
public Output<string> Id { get; set; }
}

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

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