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.
279 questions
Windows Server Backup
Windows Server Backup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Backup: A duplicate copy of a program, a disk, or data, made either for archiving purposes or for safeguarding valuable files from loss should the active copy be damaged or destroyed.
450 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 23,341 Reputation points Microsoft Employee
    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