https://pulumi.com logo
#general
Title
# general
n

narrow-cat-84237

03/17/2020, 9:15 PM
Hi All, first day with Pulumi and pretty impressed so far. I've hit a brick wall with the Azure module and C# though ... how can I pull back the Azure Subscription ID? I found documentation on getClientConfig and getSubscription and though they might help but I haven't worked out how to call them?
t

tall-librarian-49374

03/17/2020, 10:06 PM
Something like
Copy code
private static async Task<string> GetSubscriptionId()
{
    var s = await Pulumi.Azure.Core.Invokes.GetSubscription();
    return s.Id;
}
n

narrow-cat-84237

03/18/2020, 8:14 AM
Thanks Mikhail, I'll give it a shot