Is there a way to use Terraform to add newly created VM to an existing backup job?

SysChyk

New Member
Jul 22, 2024
1
0
1
Hi, long time lurker...
I've been messing about with Terraform to deploy VMs and that's working a treat. However, I would like to expand this functionality to actually include the VM in an existing (or new) backup job. Has anyone achieved this? Or has any know-how on how this could work? I've been looking through API's and I can't see any specific function setup for that on both PVE and PBS.
I suppose it could be achieved by parsing CLI commands through but I'm not sure which way to head...
At this point Ansible is not an option so I'm specifically looking to perform this task with Terraform.
Thanks
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!