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
title: Plan a release pipeline by using Azure Pipelines
4
-
metadata:
5
-
title: Plan a release pipeline by using Azure Pipelines
6
-
description: Plan a basic CD pipeline that runs on Azure Pipelines.
7
-
ms.custom: devdivchpfy22, engagement-fy23
8
-
ms.date: 08/14/2023
9
-
author: ramiMSFT
10
-
ms.author: rabououn
11
-
ms.topic: unit
12
-
durationInMinutes: 6
13
-
content: |
14
-
[!include[](includes/3-plan-release-pipeline.md)]
15
-
quiz:
16
-
title: Check your knowledge
17
-
questions:
18
-
- content: "You have a great idea for a new web app. You have working code on your laptop, but you want feedback from your team before you continue. What's the fastest way to deploy your app to Azure so you can share it with your team?"
19
-
choices:
20
-
- content: "Build a CI/CD pipeline in Azure Pipelines."
21
-
isCorrect: false
22
-
explanation: "You benefit from continuous delivery as your app matures. Creating a full CI/CD pipeline might not be the fastest way to get feedback on your prototype."
23
-
- content: 'Use Visual Studio to right-click publish your app.'
24
-
isCorrect: true
25
-
explanation: "Although our focus is on continuous delivery, you benefit from continuous delivery as your app matures. Right-click publishing is a perfect way to quickly get your idea in front of people."
26
-
- content: "Run `xcopy` to upload the web app to a virtual machine (VM) that's running on Azure."
27
-
isCorrect: false
28
-
explanation: "Although you can use `xcopy` to deploy to a VM, you still have to worry about mapping the network drive, configuring the firewall, and starting the web app."
29
-
- content: "To deploy to Azure App Service, what resources does Azure Pipelines need?"
30
-
choices:
31
-
- content: "A build artifact and a service connection."
32
-
isCorrect: true
33
-
explanation: "The build artifact is the application you want to deploy. A service connection provides secure access to your Azure subscription."
34
-
- content: "A host name and an SSH key."
35
-
isCorrect: false
36
-
explanation: "Although you might use an SSH key to deploy to a virtual machine in your datacenter, Azure App Service doesn't require one."
37
-
- content: "A host name and the encrypted username and password."
38
-
isCorrect: false
39
-
explanation: "Although you might use usernames and passwords to connect to Azure services or virtual machines, Azure App Service doesn't require them."
40
-
- content: "Which of the following statements describes the relationship among tasks, stages, and jobs?"
41
-
choices:
42
-
- content: "A task is another name for a job. A stage can contain either tasks or jobs."
43
-
isCorrect: false
44
-
explanation: "Tasks are different from jobs. A job defines a series of steps and the agent those steps run on. A task defines an individual step."
45
-
- content: "Stages break down into jobs, and jobs break down into tasks."
46
-
isCorrect: true
47
-
explanation: "Stages define each major phase of your pipeline. Each job defines a series of steps and the agent those steps run on. A task defines an individual step."
48
-
- content: "Stages break down into tasks. A job schedules when each stage runs."
49
-
isCorrect: false
50
-
explanation: "A job defines a series of steps and the agent those steps run on. It doesn't schedule stages."
title: Plan a release pipeline by using Azure Pipelines
4
+
metadata:
5
+
title: Plan a release pipeline by using Azure Pipelines
6
+
description: Plan a basic CD pipeline that runs on Azure Pipelines.
7
+
ms.custom: devdivchpfy22, engagement-fy23
8
+
ms.date: 04/29/2025
9
+
author: ramiMSFT
10
+
ms.author: rabououn
11
+
ms.topic: unit
12
+
durationInMinutes: 6
13
+
content: |
14
+
[!include[](includes/3-plan-release-pipeline.md)]
15
+
quiz:
16
+
title: Check your knowledge
17
+
questions:
18
+
- content: "You have a great idea for a new web app. You have working code on your laptop, but you want feedback from your team before you continue. What's the fastest way to deploy your app to Azure so you can share it with your team?"
19
+
choices:
20
+
- content: "Build a CI/CD pipeline in Azure Pipelines."
21
+
isCorrect: false
22
+
explanation: "You benefit from continuous delivery as your app matures. Creating a full CI/CD pipeline might not be the fastest way to get feedback on your prototype."
23
+
- content: 'Use Visual Studio to right-click publish your app.'
24
+
isCorrect: true
25
+
explanation: "Although our focus is on continuous delivery, you benefit from continuous delivery as your app matures. Right-click publishing is a perfect way to quickly get your idea in front of people."
26
+
- content: "Run `xcopy` to upload the web app to a virtual machine (VM) that's running on Azure."
27
+
isCorrect: false
28
+
explanation: "Although you can use `xcopy` to deploy to a VM, you still have to worry about mapping the network drive, configuring the firewall, and starting the web app."
29
+
- content: "To deploy to Azure App Service, what resources does Azure Pipelines need?"
30
+
choices:
31
+
- content: "A build artifact and a service connection."
32
+
isCorrect: true
33
+
explanation: "The build artifact is the application you want to deploy. A service connection provides secure access to your Azure subscription."
34
+
- content: "A host name and an SSH key."
35
+
isCorrect: false
36
+
explanation: "Although you might use an SSH key to deploy to a virtual machine in your datacenter, Azure App Service doesn't require one."
37
+
- content: "A host name and the encrypted username and password."
38
+
isCorrect: false
39
+
explanation: "Although you might use usernames and passwords to connect to Azure services or virtual machines, Azure App Service doesn't require them."
40
+
- content: "Which of the following statements describes the relationship among tasks, stages, and jobs?"
41
+
choices:
42
+
- content: "A task is another name for a job. A stage can contain either tasks or jobs."
43
+
isCorrect: false
44
+
explanation: "Tasks are different from jobs. A job defines a series of steps and the agent those steps run on. A task defines an individual step."
45
+
- content: "Stages break down into jobs, and jobs break down into tasks."
46
+
isCorrect: true
47
+
explanation: "Stages define each major phase of your pipeline. Each job defines a series of steps and the agent those steps run on. A task defines an individual step."
48
+
- content: "Stages break down into tasks. A job schedules when each stage runs."
49
+
isCorrect: false
50
+
explanation: "A job defines a series of steps and the agent those steps run on. It doesn't schedule stages."
Copy file name to clipboardExpand all lines: learn-pr/azure-devops/create-release-pipeline/includes/3-plan-release-pipeline.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
In this section, you'll follow along with Andy and Mara as they plan a basic CD pipeline that runs on Azure Pipelines.
2
2
3
-
When it's done, they'll demo it to the rest of the team. The pipeline will serve as a POC that they'll improve on and expand as they learn more and get feedback from Tim and Amita.
3
+
When it's done, they'll demo it to the rest of the team. The pipeline will serve as a POC on which they'll improve and expand as they learn more and get feedback from Tim and Amita.
4
4
5
5
## What are the parts of a basic CD pipeline?
6
6
@@ -37,7 +37,7 @@ An artifact is deployed to an environment. Azure Pipelines makes it easy to depl
37
37
38
38
In Azure Pipelines, the term environment has a second meaning. Here, an environment is an abstract representation of your deployment environment, such as a Kubernetes cluster, an App Service instance, or a virtual machine.
39
39
40
-
An Azure Pipelines environment records the deployment history to help you identify the source of changes. By using Azure Pipelines environments, you can also define security checks and ways to control how an artifact is promoted from one stage of a pipeline to another. What an environment includes depends on what you want to do with the artifact. An environment where you want to test the artifact will probably be defined differently than one where you want to deploy the artifact for your end users.
40
+
An Azure Pipelines environment records the deployment history to help you identify the source of changes. By using Azure Pipelines environments, you can also define security checks and ways to control how an artifact is promoted from one stage of a pipeline to another. What an environment includes depends on what you want to do with the artifact. An environment where you want to test the artifact is probably defined differently than one where you want to deploy the artifact for your end users.
41
41
42
42
One way to define an Azure Pipelines environment is with a YAML file. Your YAML file includes an `environment` section, which specifies the Azure Pipelines environment, where you'll deploy your artifact.
43
43
@@ -83,7 +83,7 @@ After a bit of research, Andy and Mara come up with the general steps that allow
83
83
1. Provide a way for Azure Pipelines to authenticate access to that environment.
84
84
1. Use Azure Pipelines tasks to deploy the build artifact to that environment.
85
85
86
-
**Mara:** According to our research, we need to create a _service connection_ to specify the target environment and authenticate access to it. After we define the service connection, it'll be available for all of our tasks to use. Then we need to use the built-in tasks [DownloadPipelineArtifact](/azure/devops/pipelines/tasks/utility/download-pipeline-artifact?azure-portal=true) to download the build artifact to the pipeline agent and [AzureWebApp](/azure/devops/pipelines/tasks/deploy/azure-rm-web-app?azure-portal=true) to deploy our application to Azure App Service.
86
+
**Mara:** According to our research, we need to create a _service connection_ to specify the target environment and authenticate access to it. After we define the service connection, it'll be available for all of our tasks to use. Then we need to use the built-in tasks [DownloadPipelineArtifact@2](/azure/devops/pipelines/tasks/reference/download-pipeline-artifact-v2?azure-portal=true) to download the build artifact to the pipeline agent and [AzureWebApp@1](/azure/devops/pipelines/tasks/reference/azure-web-app-v1?azure-portal=true) to deploy our application to Azure App Service.
0 commit comments