https://pulumi.com logo
#dotnet
Title
# dotnet
b

billowy-tiger-6272

01/24/2024, 6:29 PM
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

microscopic-furniture-52860

01/24/2024, 6:32 PM
b

billowy-tiger-6272

01/24/2024, 6:33 PM
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

microscopic-furniture-52860

01/24/2024, 6:40 PM
There is! If you use getClientConfig the TenantId is available on the result
b

billowy-tiger-6272

01/24/2024, 6:41 PM
Oh, I was using Azure Native, but I found it by searching what you mentioned! Thank you very much!! 😉