AZ Get Console Screenshot

Prev Next

This script captures a screenshot of the current state of the selected Azure virtual machine and saves it to a folder on the console machine.

Run the Script

When you run the AZ Get console screenshot script, you need to provide the following input parameters:

Screenshot Folder. The local path where the screenshot should be saved.
Screenshot File. The file name of the screenshot. As an extension, we recommend to use *.jpg or *.png.

Using our example, we want to save the screenshot as test.png to the C:\tmp folder on the console machine. To do so, you need to provide the following information:
Command line arguments settings for the AZ Get console screenshot script. Screenshot folder is set to C:mp. Screenshot File is set to test.png.

The output message in the Powershell console confirms that the screenshot was saved successfully.
Script output displaing that the screenshot was saved ok.

Opening the screenshot will provide you the state of the virtual machine at script runtime.
Sample screenshot of a machine's login page.