You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Drop down **Output Variables**, and under **Reference name**, enter the variable for the created lab VM ID. If you use the default *labVmId*, you can refer to the variable in subsequent tasks as **$(labVmId)**.
128
+
-**Parameter Overrides**: Enter `-newVMName '$(vmName)' -userName '$(userName)' -password '$(password)'`.
129
+
- Drop down **Output Variables**, and under **Reference name**, enter the variable for the created lab VM ID. Let's enter *vm* for **Reference name** for simplicity. **labVmId** will be an attribute of this variable and will be referred to later as *$vm.labVmId*. If you use any other name, then remember to use it accordingly in the subsequent tasks.
132
130
133
-
You can create a name other than the default, but remember to use the correct name in subsequent tasks. You can write the Lab VM ID in the following form: `/subscriptions/{subscription Id}/resourceGroups/{resource group Name}/providers/Microsoft.DevTestLab/labs/{lab name}/virtualMachines/{vmName}`.
131
+
Lab VM ID will be in the following form: `/subscriptions/{subscription Id}/resourceGroups/{resource group Name}/providers/Microsoft.DevTestLab/labs/{lab name}/virtualMachines/{vmName}`.
134
132
135
133
### Collect the details of the DevTest Labs VM
136
134
@@ -143,7 +141,7 @@ Next, the pipeline runs the script you created to collect the details of the Dev
143
141
-**Azure Subscription**: Select your service connection or subscription.
144
142
-**Script Type**: Select **Script File Path**.
145
143
-**Script Path**: Browse to and select the PowerShell script that you checked in to your source code repository. You can use built-in properties to simplify the path, for example: `$(System.DefaultWorkingDirectory/Scripts/GetLabVMParams.ps1`.
146
-
-**Script Arguments**: Enter the name of the **labVmId** variable you populated in the previous task, for example *-labVmId '$(labVmId)'*.
144
+
-**Script Arguments**: Enter the value as **-labVmId $(vm.labVmId)**.
147
145
148
146
The script collects the required values and stores them in environment variables within the release pipeline, so you can refer to them in later steps.
149
147
@@ -159,7 +157,7 @@ The next task creates an image of the newly deployed VM in your lab. You can use
159
157
-**Lab**: Select your lab.
160
158
-**Custom Image Name**: Enter a name for the custom image.
161
159
-**Description**: Enter an optional description to make it easy to select the correct image.
162
-
-**Source Lab VM**: The source **labVmId**. If you changed the default name of the **labVmId** variable, enter it here. The default value is**$(labVmId)**.
160
+
-**Source Lab VM**: The source **labVmId**. Enter the value as**$(vm.labVmId)**.
163
161
-**Output Variables**: You can edit the name of the default Custom Image ID variable if necessary.
164
162
165
163
### Deploy your app to the DevTest Labs VM (optional)
@@ -177,7 +175,7 @@ The final task is to delete the VM that you deployed in your lab. You'd ordinari
177
175
1. Configure the task as follows:
178
176
-**Azure RM Subscription**: Select your service connection or subscription.
179
177
-**Lab**: Select your lab.
180
-
-**Virtual Machine**: Select the VM you want to delete.
178
+
-**Virtual Machine**: Enter the value as **$(vm.labVmId)**.
181
179
-**Output Variables**: Under **Reference name**, if you changed the default name of the **labVmId** variable, enter it here. The default value is **$(labVmId)**.
0 commit comments