-
Notifications
You must be signed in to change notification settings - Fork 431
DevTestLabs YAML
rfennell edited this page Oct 17, 2020
·
6 revisions
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
Start a DevTest Labs VM
# Start a DevTest Labs VM
# Description - Start a DevTest Labs VM
- task: DevTestLabsStartVm@1
inputs:
# Required arguments
ConnectedServiceName:
LabVMId: $(labVMId)
-
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)
-
Description: Resource ID of the lab VM to start. Default is
Stop a DevTest Labs VM
# Stop a DevTest Labs VM
# Description - Stop a DevTest Labs VM
- task: DevTestLabsStopVm@1
inputs:
# Required arguments
ConnectedServiceName:
LabVMId: $(labVMId)
-
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)
-
Description: Resource ID of the lab VM to stop. Default is