Skip to content

Files

Latest commit

bee1def · May 17, 2022

History

History
41 lines (29 loc) · 1.62 KB

reference-powershell-module.md

File metadata and controls

41 lines (29 loc) · 1.62 KB
title titleSuffix description ms.topic ms.date ms.custom
PowerShell module for Azure Lab Services
Learn how to install and launch Az.LabServices PowerShell module
how-to
04/06/2022
devdivchpfy22

Az.LabServices PowerShell module for lab accounts in Azure Lab Services

[!INCLUDE preview note]

Note

To learn more about the integrated Az module experience available with the April 2022 Update (preview), see Quickstart: Create a lab plan using PowerShell and the Azure modules.

The Az.LabServices (preview) 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

  1. Install Azure PowerShell.

  2. Download Az.LabServices.psm1 module to your machine.

  3. Import the module:

    Import-Module .\Az.LabServices.psm1

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

Next steps

Learn more about module at the Az.LabServices home page on GitHub.