https://pulumi.com logo
#golang
Title
# golang
c

chilly-rainbow-79265

09/08/2020, 12:11 AM
@important-appointment-55126 Is there any way to get the current azure subscription id for a context ?
Copy code
curr, err := core.GetSubscriptions(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("stack", pulumi.String(curr.Id))
This is throwing segmentation fault error
i

important-appointment-55126

09/08/2020, 1:19 AM
I don’t use Azure, so can’t try but if it’s returning nil for both
err
and
curr
i would of thought that is a bug; maybe someone from Pulumi can chime in
c

chilly-rainbow-79265

09/08/2020, 6:34 AM
@lemon-agent-27707 Can you please help here ?
@important-appointment-55126 I thought you're from pulumi 😂
i

important-appointment-55126

09/08/2020, 2:02 PM
hah.. nope; just someone who’s been enjoying the product 🙂
c

chilly-rainbow-79265

09/08/2020, 2:02 PM
Thanks for all the help you've done, mate.
i

important-appointment-55126

09/08/2020, 2:11 PM
happy to help however i can
3 Views