Im depolying to Azure. Is there way that i can import a state of my resources from Azure -> pulumi code? So I setup with very detailed options via UI and once I satisfied with the settings, I want bring it to the code. thank you.
l
little-cartoon-10569
02/20/2025, 12:06 AM
You have three options.
1. If you have the right license, the easiest is to use Pulumi Insights 2.0. https://www.pulumi.com/docs/insights/get-started/
2. With a bit of investigation and some clever jq-work, you can use bulk import, though you will have to edit the code afterwards, as it just generates one big file with no ComponentResources or imports... https://www.pulumi.com/docs/iac/adopting-pulumi/import/#bulk-import-operations
3. Write the code. It's the slowest but it does produce well organized code right off the bat.