Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.73 KB

reference-powershell-module.md

File metadata and controls

47 lines (38 loc) · 1.73 KB
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 PowerShell module (preview)

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.

Example command

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

Get started

  1. Install Azure PowerShell if it doesn't exist on your machine.

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

  3. Import the module:

    Import-Module .\Az.LabServices.psm1
  4. Run the following command to list all the labs in your subscription.

    Get-AzLabAccount | Get-AzLab

Next steps

See the Az.LabServices home page on GitHub.