Creating a Save/Restore Snapshot orchestration script (VMs only) #155
Quali-Community
started this conversation in
Useful Tips & Guides
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This article goes over the steps required to create an orchestration script that will Save/Restore VMs snapshots in a sandbox.
The scripts are fairly strait-forward, and are described below.
Note: this flow is only about saving/restoring snapshots. Deployed apps are, by default, getting removed at the end of the reservation (and so all of the snapshots of the VMs). This example is relevant for saving/restoring snapshots during a reservation time frame.
Save Snapshot:
1. Get the deployed apps from the sandbox object (CloudShell 8.1 and above)
If you're using an earlier CloudShell version, you'll need to get the reservation details, get the resources from there and check if they are deployed apps or not
2. For each deployed app, execute the remote_save_snapshot command
The script will look similar to this:
Restore Snapshot:
1. Get the deployed apps from the sandbox object
2. For each deployed app, execute the remote_restore_snapshot command, then power on the VM
The script will look similar to this:
Yaniv
Yaniv Kalsky (Yaniv.K) - 01/15/2018 06:19 PM
· 3258 ·
Beta Was this translation helpful? Give feedback.
All reactions