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
Copy file name to clipboardExpand all lines: docs/pipelines/ecosystems/kubernetes/deploy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ For more information on canary deployments with pipelines, see [Use a canary dep
91
91
92
92
Kubernetes runs the same way on all cloud providers. Azure Pipelines can be used for deploying to Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE), Amazon Elastic Kubernetes Service (EKS), or clusters from any other cloud providers.
93
93
94
-
To set up multicloud deployment, [create an environment](../../process/environments.md#creation) and then add your Kubernetes resources associated with namespaces of Kubernetes clusters.
94
+
To set up multicloud deployment, [create an environment](../../process/environments.md#create-an-environment) and then add your Kubernetes resources associated with namespaces of Kubernetes clusters.
Copy file name to clipboardExpand all lines: docs/pipelines/process/environments.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ An environment represents a logical target where your pipeline deploys software.
20
20
21
21
Environments provide the following benefits:
22
22
23
-
-**Deployment history**. Pipeline name and run details are recorded for deployments to an environment and its resources. In the context of multiple pipelines targeting the same environment or resource, you can use [deployment history](#deployment-history) of an environment to identify the source of changes.
23
+
-**Deployment history**. Pipeline name and run details are recorded for deployments to an environment and its resources. In the context of multiple pipelines targeting the same environment or resource, you can use [deployment history](#view-deployment-history) of an environment to identify the source of changes.
24
24
25
-
-**Traceability of commits and work items**. You can view jobs within the pipeline run that target an environment. You can also view the [commits and work items](#deployment-history) that were newly deployed to the environment. Traceability also lets you track whether a code change commit or feature/bug-fix work item reached an environment.
25
+
-**Traceability of commits and work items**. You can view jobs within the pipeline run that target an environment. You can also view the [commits and work items](#view-deployment-history) that were newly deployed to the environment. Traceability also lets you track whether a code change commit or feature/bug-fix work item reached an environment.
26
26
27
27
-**Diagnostic resource health**. You can validate whether the application is functioning at its desired state.
28
28
@@ -43,7 +43,7 @@ To add an environment, you need the following prerequisites:
43
43
- An Azure DevOps organization and project.
44
44
- The [Creator role for environments](../library/add-resource-protection.md#environments) in your project.
45
45
46
-
<aname="creation"></a>
46
+
47
47
## Create an environment
48
48
49
49
To create your first environment:
@@ -61,9 +61,11 @@ To create your first environment:
61
61
> [!TIP]
62
62
> You can create an empty environment and reference it from deployment jobs so you can record deployment history against the environment.
63
63
64
+
To programmatically create and manage environments, use the [Azure DevOps Environments REST API](/rest/api/azure/devops/environments/environments).
65
+
64
66
You can use Azure Pipelines to deploy to environments. For more information, see [Build and deploy to Azure Kubernetes Service with Azure Pipelines](../ecosystems/kubernetes/aks-template.md).
65
67
66
-
<aname="target-from-deployment-job"></a>
68
+
67
69
## Target an environment from a deployment job
68
70
69
71
A [deployment job](deployment-jobs.md) is a collection of steps that run sequentially. You can use a deployment job to target an entire environment group of resources, as shown in the following example YAML snippet. The pipeline runs on the `myVM` machine because that resource name is specified.
@@ -87,7 +89,6 @@ A [deployment job](deployment-jobs.md) is a collection of steps that run sequent
## Target a specific environment resource from a deployment job
92
93
93
94
You can scope the deployment target to a particular resource within the environment, so you can record deployment history on the specific resource. The steps of the deployment job automatically inherit the service connection details from the resource the deployment job targets.
@@ -113,7 +114,7 @@ strategy:
113
114
```
114
115
115
116
> [!NOTE]
116
-
> If you're using a private AKS cluster, make sure you're connected to the cluster's virtual network as the the API server endpoint is not exposed through a public IP address.
117
+
> If you're using a private AKS cluster, make sure you're connected to the cluster's virtual network as the API server endpoint isn't exposed through a public IP address.
117
118
>
118
119
> Azure Pipelines recommends setting up a self-hosted agent within a VNET that has access to the cluster's virtual network. See [Options for connecting to the private cluster](/azure/aks/private-clusters#options-for-connecting-to-the-private-cluster) for details.
119
120
@@ -123,7 +124,6 @@ To control deployments to production environments, Azure Pipelines supports manu
123
124
124
125
The environment **Creator**, **Administrator**, and **User** roles, but not the **Reader** role, can manage approvals and checks. As an environment owner, you can manually control when a stage should run by using approval checks. For more information, see [Define approvals and checks](approvals.md).
125
126
126
-
<a name="in-run-details"></a>
127
127
## See environments in run details
128
128
129
129
Under the **Environments** tab of the pipeline run details, you can see all environments that were targeted by deployment jobs of a pipeline run.
@@ -133,7 +133,6 @@ Under the **Environments** tab of the pipeline run details, you can see all envi
133
133
>[!NOTE]
134
134
>If you're using an Azure Kubernetes Service (AKS) private cluster, the **Environments** tab isn't available.
135
135
136
-
<a name="deployment-history"></a>
137
136
## View deployment history
138
137
139
138
You can select the **Deployments** tab in the Azure Pipelines **Environments** section to view deployment history.
Copy file name to clipboardExpand all lines: docs/pipelines/process/template-parameters.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,7 +188,7 @@ jobs:
188
188
189
189
### Required parameters
190
190
191
-
You can add a validation step at the beginning of your template to check for the parameters you require.
191
+
Pipelines will automatically report an error if a parameter is missing. You can add a validation step at the beginning of your template to check for the parameters you require and take appropriate action.
192
192
193
193
Here's an example that checks for the `solution` parameter using Bash:
0 commit comments