Hi everybody, I would like to use Pulumi for backup. I want Pulumi to scan the current infrastructure, look for specific resource types, and create a snapshot/representation of what is in there.
For example I want to backup our LLM deployments in Azure. Is this possible just with Pulumi? Or should I combine Azure API calls to fetch all existing deployments, and then call Pulumi with the resource IDs of those deployments?
What next? I would like Pulumi to automatically create a representation of those resources in a file, say in the YAML format.
Command line or Python code is preferrable.
Thanks for any tips.
That might be an option, thank you, I will look into it.
If I wanted to implement it with Pulumi IaC and its automation API, where would you recommend I start?
e
echoing-dinner-19531
08/19/2025, 1:18 PM
There's nothing in the open source product to do the scanning, that might change in the future but currently you'd have to write that code against the azure api yourself but then you could use
pulumi import
to import the resources and get yaml code generated for them.
Forgive the non-Pulumi response... but are you sure Pulumi is what you want here? What is your goal? If "backup" is what you want (as stated), wouldn't something like Velero be more appropriate? (again, depends on what your actual goal is...)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.