Step 1

To configure start/stop of the VM at specific time follow this guide:

https://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management-config

Step 2

To configure auto logon (it is required for running UI tests) use this info:

Windows Server

https://docs.microsoft.com/en-us/troubleshoot/windows-server/user-profiles-and-logon/turn-on-automatic-logon

Windows 10

https://www.cnet.com/tech/services-and-software/automatically-log-in-to-your-windows-10-pc/

Step 3

Rapise Launcher must be configured to start with Windows.

https://rapisedoc.inflectra.com/Guide/spiratest_integration/#client-configuration

Set Start at logon option.

Step 4

In Spira configure a test set to run when the VM is on.

https://rapisedoc.inflectra.com/Guide/spiratest_integration/#creating-and-scheduling-the-test-sets