https://pulumi.com logo
Title
b

brave-winter-60074

12/17/2020, 10:39 AM
Hi is there some changes that we should void when using azure next gen. Had a typo in the resource name and by changing that it failed completely so now I am rebuilding our stacks and upping them with pulumi…
t

tall-librarian-49374

12/17/2020, 10:42 AM
I can’t quite understand what happened here
b

brave-winter-60074

12/17/2020, 10:45 AM
i created a stack which contained a resource group with name x, then after upping and everything is provisioned i find out that i have a typo in x so i rename it to Y and tries pulumi up again. But due to a naming conflict it fails quite a lot. We use shared pulumi random as suffix within one resource group, can this be the issue
t

tall-librarian-49374

12/17/2020, 10:52 AM
Did it try creating new resources before deleting old ones and that caused the naming conflict?
b

brave-winter-60074

12/17/2020, 10:54 AM
yeah et chose replace, i think that the normal approach right, create new first and delete old after
t

tall-librarian-49374

12/17/2020, 10:57 AM
In this case it should delete before creating a replacement to avoid conflict, which I expected it to do. If it doesn’t, we should investigate why.
b

brave-winter-60074

12/17/2020, 11:02 AM
okay sounds right, think it will be easy to replicate, create a stack with a resource with fixed name and then rename the resource group in that stack
t

tall-needle-56640

12/17/2020, 4:14 PM
I don't see the old resource group getting deleted. Does it still exist?
b

brave-winter-60074

12/17/2020, 7:44 PM
hmm i was trying out a lot of stuff and ended up deleting resource groups and the related pulumi stacks and starting over