What is the best strategy to migrate resources fro...
# azure
p
What is the best strategy to migrate resources from classic provider to native provider? IaC is existing built up with classic provider. Now keeping both providers side by side for slow migration.
q
p
This is bit impossible when dealing with 400+ resources...even if I decide to migrate by components, still a lot manual operation.
q
I'm not from pulumi team, but if I would need to do such migration, I would start with identifying if I can drop some resources or drop and recreate. Then I would try mark all classic resources with RetainOnDelete flag, run pulumi, then I would list all resource IDs, add pulumi native items, run pulumi import in the loop and then I would remove all classic resources from code
I think all can be done programmatically
s
Agree with @quick-noon-18541 - whatever can just be recreated/migrated, do that. For the remaining resources that you need to import, if you're a Pulumi Cloud customer, Neo should be able to do a good job with this task. If not, I would use a local LLM like Claude Code.