Is there any way to get the current stack name tha...
# dotnet
b
Is there any way to get the current stack name that the application is being executed with? For example, if I created a "dev" stack (Pulumi.dev.yaml), is there any way to retrieve this "dev" name from within my Pulumi app in C#?
m
b
Oh, nice, thanks @microscopic-furniture-52860!!
One additional question: more regarding Azure, but that it's within the realm of .NET: is there any way to get the TenantId of the Azure subscription being used to connect with? Something that doesn't require having to pass it as a config?
m
There is! If you use getClientConfig the TenantId is available on the result
b
Oh, I was using Azure Native, but I found it by searching what you mentioned! Thank you very much!! 😉