Az.LabServices PowerShell module for lab accounts in Azure Lab Services
The information in this article applies to early versions of Azure Lab Services prior to the August 2022 Update. Newer updates to the service build upon lab plans instead of lab accounts.
As part of the August 2022 update, Azure Lab Services lab plans replace lab accounts. For new customers, learn how you can get started by creating a lab plan. For existing lab account customers we recommend that you transition from lab accounts to lab plans.
Beginning February 21st, 2023, you won't be able to create a Lab Account to use the service. If you have a new subscription, you will instead be able to create a Lab plan to use the service.
If you already have a Lab account, you can continue to use it and if you need additional lab accounts, as an exception, you can submit an Azure support ticket.
To learn more about the integrated Az module experience available with the August 2022 Update, see Quickstart: Create a lab plan using PowerShell and the Azure modules.
The Az.LabServices PowerShell module simplifies the management of Azure Lab Services. This module provides composable functions to create, query, update and delete resources, such as labs, lab accounts, VMs, and images.
Install and launch
Install Azure PowerShell.
Download Az.LabServices.psm1 module to your machine.
Import the module:
Some example commands:
# To list all the labs in your subscription: Get-AzLabAccount | Get-AzLab # To stop all running VMs in all labs Get-AzLabAccount | Get-AzLab | Get-AzLabVm -Status Running | Stop-AzLabVm
Learn more about module at the Az.LabServices home page on GitHub.
Submit and view feedback for