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
Next, create the release pipeline in Azure Pipelines. The pipeline tasks use the values you assigned to the VM when you created the ARM template.
92
92
93
93
1. From your Azure DevOps Services project page, select **Pipelines** > **Releases** from the left navigation.
94
-
1. Select **Create release**.
94
+
1. Select **New pipeline**.
95
+
1. In the **Select a template** pane, select **Empty job**.
96
+
1. Close the **Stage** pane.
95
97
1. On the **New release pipeline** page, select the **Variables** tab.
96
98
1. Select **Add**, and enter the following **Name** and **Value** pairs, selecting **Add** after adding each one.
97
99
-*vmName*: The VM name you assigned in the ARM template.
98
100
-*userName*: The username to access the VM.
99
101
-*password*: Password for the username. Select the lock icon to hide and secure the password.
100
102
103
+
### Add an artifact
104
+
105
+
1. On the new release pipeline page, on the **Pipeline** tab, select **Add an artifact**.
106
+
1. On the **Add an artifact pane**, select **Azure Repo**.
107
+
1. In the **Project** list, select your DevOps project.
108
+
1. In the **Source (repository)** list, select your source repo.
109
+
1. In the **Default branch** list, select the branch to check out.
110
+
1. Select **Add**.
111
+
101
112
### Create a DevTest Labs VM
102
113
103
114
The next step creates a golden image VM to use for future deployments. This step uses the **Azure DevTest Labs Create VM** task.
@@ -112,8 +123,9 @@ The next step creates a golden image VM to use for future deployments. This step
112
123
> [!NOTE]
113
124
> For information about creating a more restricted permissions connection to your Azure subscription, see [Azure Resource Manager service endpoint](/azure/devops/pipelines/library/service-endpoints#sep-azure-resource-manager).
114
125
-**Lab**: Select your DevTest Labs lab name.
126
+
-**Virtual Machine Name**: the variable you specified for your virtual machine name: *$vmName*.
115
127
-**Template**: Browse to and select the template file you checked in to your project repository.
116
-
-**Parameters File**: Browse to and select the parameters file you checked in to your repository.
128
+
-**Parameters File**: If you checked a parameters file into your repository, browse to and select it.
- 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)**.
119
131
@@ -123,7 +135,7 @@ The next step creates a golden image VM to use for future deployments. This step
123
135
124
136
Next, the pipeline runs the script you created to collect the details of the DevTest Labs VM.
125
137
126
-
1. On the release pipeline **Pipeline** tab, select the hyperlinked text in **Stage 1**, and then select the plus sign **+** next to **Agent job**.
138
+
1. On the release pipeline **Tasks** tab, select the plus sign **+** next to **Agent job**.
127
139
1. Under **Add tasks** in the right pane, search for and select **Azure PowerShell**, and select **Add**.
128
140
1. In the left pane, select the **Azure PowerShell script: FilePath** task.
129
141
1. In the right pane, fill out the form as follows:
@@ -138,7 +150,7 @@ The script collects the required values and stores them in environment variables
138
150
139
151
The next task creates an image of the newly deployed VM in your lab. You can use the image to create copies of the VM on demand to do developer tasks or run tests.
140
152
141
-
1. On the release pipeline **Pipeline** tab, select the hyperlinked text in **Stage 1**, and then select the plus sign **+** next to **Agent job**.
153
+
1. On the release pipeline **Tasks** tab, select the plus sign **+** next to **Agent job**.
142
154
1. Under **Add tasks**, select **Azure DevTest Labs Create Custom Image**, and select **Add**.
143
155
1. In the left pane, select the **Azure DevTest Labs Create Custom Image** task.
144
156
1. In the right pane, fill out the form as follows:
@@ -159,7 +171,7 @@ The tasks you usually use to deploy apps are **Azure File Copy** and **PowerShel
159
171
160
172
The final task is to delete the VM that you deployed in your lab. You'd ordinarily delete the VM after you do the developer tasks or run the tests that you need on the deployed VM.
161
173
162
-
1. On the release pipeline **Pipeline** tab, select the hyperlinked text in **Stage 1**, and then select the plus sign **+** next to **Agent job**.
174
+
1. On the release pipeline **Tasks** tab, select the plus sign **+** next to **Agent job**.
163
175
1. Under **Add tasks**, select **Azure DevTest Labs Delete VM**, and select **Add**.
164
176
1. Configure the task as follows:
165
177
-**Azure RM Subscription**: Select your service connection or subscription.
0 commit comments