https://pulumi.com logo
Title
e

enough-butcher-66045

07/07/2021, 3:31 AM
đź‘‹ if I want to rename a resource group (which I understand is not possible in Azure), is there a way Pulumi can help me with MOVING the resources to a different resource group instead of deleting/recreating?
t

tall-librarian-49374

07/07/2021, 6:25 AM
Unfortunately, we don’t provide anything to help with this
Do you mind opening an issue? We could investigate if there’s a straightforward way to do so.
e

enough-butcher-66045

07/07/2021, 10:49 AM
Thank you @tall-librarian-49374. I was wondering if this: https://www.pulumi.com/docs/reference/pkg/azure-native/migrate/moveresource/ is the Azure Resource Mover? I'm wondering if that can be used as a one-off or will it keep trying to move my resources every time I do
pulumi up
? Maybe it's not the right philosophy, but having migrations as a concept in Pulumi would be extremely useful (i.e. not only what's the desired target state but also how to get there) I'll try and work on a small concrete example to open an issue with what I'm currently experiencing, thank you.
t

tall-librarian-49374

07/07/2021, 11:00 AM
I guess it may work and move your resources. It won’t run on every up. The problem is that your existing resources have the old resource group in their IDs and they won’t update automatically.