https://pulumi.com logo
#getting-started
Title
# getting-started
r

rhythmic-kangaroo-93098

04/05/2023, 8:02 AM
I have troubles get Pulumi maintain the resources in the proper Azure subscription. Even when I specify it in the dev.yaml, it still goes to another subscription...
Maybe I have to delete the project in Pulumi and start from scratch...
Aha, the other subscription is in the metadata. Apparently, I was connected to it when I created the stack. At least, that's my two cents....
l

limited-rainbow-51650

04/05/2023, 8:09 AM
@rhythmic-kangaroo-93098 are you using the Azure Native provider? If so, the config item for your subscription ID should also be prefixed with
azure-native
instead of
azure
(which is for our Azure classic provider)
r

rhythmic-kangaroo-93098

04/05/2023, 8:11 AM
That makes sense. I'll change that. I assume that I need to recreate the stack?
l

limited-rainbow-51650

04/05/2023, 8:12 AM
Yes, make sure you first
pulumi destroy
for any resources created in the wrong subscription, then fix the subscription id and run
pulumi up
r

rhythmic-kangaroo-93098

04/05/2023, 8:26 AM
Yes! That worked. Thx
So it is important to define this subscription right away, before doing the first preview.