Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore VM from Backup #1692

Open
Klaas- opened this issue Aug 30, 2024 · 1 comment
Open

Restore VM from Backup #1692

Klaas- opened this issue Aug 30, 2024 · 1 comment
Labels
medium_priority Medium priority new_feature New feature requirments work in In trying to solve, or in working with contributors

Comments

@Klaas-
Copy link
Contributor

Klaas- commented Aug 30, 2024

SUMMARY

I would like the possiblity to restore a virtual machine from backup via ansible. Primary usecase is I want to automate recovery tests and restoring the actual backup is a crucial part of that :)

There two types of restores:

  1. Replace VM, this will replace an existing VM with an older version of the same VM (most common scenario I would say). It will however not replace the disks, but create new disks and reconfigure VM to use the new ones
  2. Create new VM from backup, this means you can use your backup to create a new VM from it. I've included this for feature parity with the portal, but my interest is primarily in scanario 1)

I think this also needs an addition to the azure.azcollection.azure_rm_backupazurevm_info to list all available backups, currently it only supplies information about the last backup.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

I think this could be part of azure.azcollection.azure_rm_backupazurevm or become a new module

ADDITIONAL INFORMATION
azure.azcollection.azure_rm_backupazurevm:
  state: restore
  backup_id: "{{ id_of_backup_you_want_to_restore }}"
@Klaas-
Copy link
Contributor Author

Klaas- commented Aug 30, 2024

@Fred-sun Fred-sun added medium_priority Medium priority new_feature New feature requirments work in In trying to solve, or in working with contributors labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority new_feature New feature requirments work in In trying to solve, or in working with contributors
Projects
None yet
Development

No branches or pull requests

2 participants