Skip to content
rfennell edited this page Oct 17, 2020 · 6 revisions

DevTest Lab Tasks

The 'DevTest Lab Tasks' package contains the following tasks. The table show the possible variables that can be used in YAML Azure DevOps Pipeline configurations

DevTestLabsStartVm V1

Start a DevTest Labs VM

YAML snippet

# Start a DevTest Labs VM
# Description - Start a DevTest Labs VM
- task: DevTestLabsStartVm@1
  inputs: 
     # Required arguments
     ConnectedServiceName: 
     LabVMId: $(labVMId)

Arguments

  • Argument: ConnectedServiceName
    • Description: Azure Resource Manager subscription to configure before running.
    • Type: connectedService:AzureRM
    • Required: true
    • Default (if defined):
  • Argument: LabVMId
    • Description: Resource ID of the lab VM to start. Default is $(labVMId). You can use any variable such as $(labVMId), which is the output of calling Create Azure DevTest Labs VM, that contains a value in the form /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualMachines/{vmName}. See Wiki for details
    • Type: string
    • Required: true
    • Default (if defined): $(labVMId)

DevTestLabsStopVm V1

Stop a DevTest Labs VM

YAML snippet

# Stop a DevTest Labs VM
# Description - Stop a DevTest Labs VM
- task: DevTestLabsStopVm@1
  inputs: 
     # Required arguments
     ConnectedServiceName: 
     LabVMId: $(labVMId)

Arguments

  • Argument: ConnectedServiceName
    • Description: Azure Resource Manager subscription to configure before running.
    • Type: connectedService:AzureRM
    • Required: true
    • Default (if defined):
  • Argument: LabVMId
    • Description: Resource ID of the lab VM to stop. Default is $(labVMId). You can use any variable such as $(labVMId), which is the output of calling Create Azure DevTest Labs VM, that contains a value in the form /subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualMachines/{vmName}. See Wiki for details
    • Type: string
    • Required: true
    • Default (if defined): $(labVMId)
Clone this wiki locally