title | description | services | documentationcenter | author | manager | editor | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PowerShell module for Azure Lab Services | Microsoft Docs |
This article provides information about a PowerShell module that helps with managing artifacts in Azure Lab Services. |
lab-services |
na |
spelluru |
lab-services |
na |
na |
na |
article |
11/01/2019 |
spelluru |
Az.LabServices is a PowerShell module that simplifies the management of Azure Lab services. It provides composable functions to create, query, update and delete lab accounts, labs, VMs, and Images. For more information about this module, see the Az.LabServices home page on GitHub.
Note
This module is in preview.
Here is an example of using a PowerShell command to stop all the running VMs in all labs.
Get-AzLabAccount | Get-AzLab | Get-AzLabVm -Status Running | Stop-AzLabVm
-
Install Azure PowerShell if it doesn't exist on your machine.
-
Download Az.LabServices.psm1 to your machine.
-
Import the module:
Import-Module .\Az.LabServices.psm1
-
Run the following command to list all the labs in your subscription.
Get-AzLabAccount | Get-AzLab
See the Az.LabServices home page on GitHub.