Show / Hide Table of Contents

Class GetSubscription

Inheritance
System.Object
GetSubscription
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 GetSubscription

Methods

View Source

InvokeAsync(GetSubscriptionArgs, InvokeOptions)

Use this data source to access information about an existing Subscription.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var current = Output.Create(Azure.Core.GetSubscription.InvokeAsync());
    this.CurrentSubscriptionDisplayName = current.Apply(current => current.DisplayName);
}

[Output("currentSubscriptionDisplayName")]
public Output<string> CurrentSubscriptionDisplayName { get; set; }
}

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

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