Automation possibility for Azure labs

Anonymous
2023-05-03T14:00:36.8066667+00:00

Hello,

What are the options available for Azure labs automation?

I have the following requirements and need to check if these can be automated.

  1. Reboot the servers.
  2. Take a snapshot/backup of the server.
  3. Increase CPU/Disk/memory space.

Also want to know if any of the above requirements can be automated without logging into Azure portal?

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
308 questions
Windows for business Windows Server Devices and deployment Set up, install, or upgrade
Windows for business Windows Server User experience PowerShell
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,801 Reputation points Microsoft Employee Moderator
    2023-05-03T19:19:22.9533333+00:00

    Hello, @Anonymous !

    How do I automate VM tasks in Azure Lab Services?

    Unlike standard virtual machines, VMs in Azure Lab Services are managed as part of a lab. As a result, you'll need to use Azure Lab Services REST APIs to automate tasks:

    https://learn.microsoft.com/en-us/rest/api/labservices/

    1. Reboot a VM - Use Virtual Machines - Stop and Virtual Machines - Start.
    2. Take a snapshot/back up a VM - Unfortunately, there are no Azure Lab Services APIs for this action.
    3. Increase CPU/Disk/Memory space - Use Labs - Update.

    I hope this has been helpful! If it has, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    User's image


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.