https://pulumi.com logo
#azure
Title
# azure
p

powerful-football-81694

07/19/2021, 1:06 PM
Hi folks, do all stacks in the same project necessarily need to be deployed to the same Azure subscription? Or is Pulumi completely “agnostic” to this, i.e., does it simply deploy to whatever subscription happens to be the selected one in Azure CLI at the time when you do
pulumi up
?
b

brave-planet-10645

07/19/2021, 1:19 PM
The second. I don't think you can deploy resources in the same stack to a separate subscription, but you can certainly deploy different stacks to different subscriptions
m

miniature-leather-70472

07/19/2021, 1:20 PM
You can deploy resources in the same stack to different subs, you just need to create a second provider instance for the second sub and use that
☝️ 1
p

powerful-football-81694

07/19/2021, 10:01 PM
Thanks @brave-planet-10645 and @miniature-leather-70472 but my question was about different stacks.
For example, I have 3 devs on a team. One Pulumi project in version control. One shared Pulumi organization, to which all 3 devs have access. Each dev authenticated against Pulumi using their own individual accounts, but all have access to the shared org and that’s where the stacks go. Now, can each dev do
pulumi up
with a new stack name, each against different Azure subscriptions?
b

brave-planet-10645

07/20/2021, 2:10 AM
Yes. You can either set the subscription id in the stack config or have it as an environment variable
3 Views