Orchestrator – Check VM Snapshots

Often a Sysadmin creates a checkpoint (snapshot) of the VM before they doing some changes. Our Servicedesk wants to monitor those snapshots so they don’t get to big or even stays there for ever. We used Orchestrator to create a simple check against the VMM Server and send out a mail with the current snapshot overview.

We achieved this by creating a runbook with 2 simple steps:

image

First we run a Powershell script. and output this to a e-mail.

When we take a closer look at the Powershell script we created it as followed:

image

The script contains the following lines:

 

 

For the email template we created a html with the following lines. The bold part should be a published data from the script:

 

When we start the runbook tester and click run we got a e-mail with an overview of the Virtual Machines having a snapshot:

image

 

I like to use SCOJobRunner for scheduled runbook activities what I defined on my Runbook Server. I created a new scheduled task and assign the runbook ID from the runbook we just created to run every day at 6:45am

image