Skip to content

Commit 5925eef

Browse files
authored
Merge pull request #296616 from v-albemi/environment-yaml
Freshness Edit: Azure Deployment Environments Set 2
2 parents d3691d7 + e4cea5e commit 5925eef

File tree

1 file changed

+31
-28
lines changed

1 file changed

+31
-28
lines changed

articles/deployment-environments/concept-environment-yaml.md

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@ author: RoseHJM
55
ms.author: rosemalcolm
66
ms.service: azure-deployment-environments
77
ms.topic: concept-article
8-
ms.date: 11/17/2023
8+
ms.date: 03/20/2025
99

10-
# Customer intent: As a developer, I want to know which parameters I can assign for parameters in environment.yaml.
10+
# Customer intent: As a developer, I want to know the properties and parameters that I can use in environment.yaml.
1111

1212
---
1313

14-
# Parameters and data types in environment.yaml
14+
# Properties and parameters in environment.yaml
1515

16-
ADE environment definitions are infrastructure as code (IaC), written in Bicep or Terraform, stored in repositories. Environment definitions can be modified and adapted for your specific requirements and then used to create a deployment environment on Azure. The environment.yaml schema defines and describes the types of Azure resources included in environment definitions.
16+
Azure Deployment Environments environment definitions are infrastructure as code (IaC) that are written in Bicep or Terraform and stored in repositories. You can modify and adapt environment definitions for your requirements and then use them to create a deployment environment on Azure. The environment.yaml schema defines and describes the types of Azure resources included in environment definitions.
1717

1818

1919
## What is environment.yaml?
2020

2121
The environment.yaml file acts as a manifest, describing the resources used and the template location for the environment definition.
2222

2323
### Sample environment.yaml
24-
The following script is a generic example of an environment.yaml required for your environment definition.
24+
25+
The following script is an example of the environment.yaml that's required for your environment definition.
2526

2627
```yml
2728
name: WebApp
@@ -31,26 +32,28 @@ description: Deploys a web app in Azure without a datastore
3132
runner: ARM
3233
templatePath: azuredeploy.json
3334
```
35+
3436
### Definitions
37+
3538
The following table describes the properties that you can use in environment.yaml.
3639
37-
| **Property** | **Type** | **Description** | **Required** | **Examples** |
38-
| ------------ | -------- | -------------------------------------------------- | ------------ | ----------------------------------------------- |
39-
| name | string | The display name of the catalog item. | Yes | |
40-
| version | string | The version of the catalog item. | | 1.0.0 |
41-
| summary | string | A short summary string about the catalog item. | | |
42-
| description | string | A description of the catalog item. | | |
43-
| runner | string | The container image to use when executing actions. | | ARM template </br> Terraform |
44-
| templatePath | string | The relative path of the entry template file. | Yes | main.tf </br> main.bicep </br> azuredeploy.json |
45-
| parameters | array | Input parameters to use when creating the environment and executing actions. | | #/definitions/Parameter |
40+
| Property | Type | Description | Required?|Example|
41+
| ------------ | -------- |------- | ------------ | ---------------- |
42+
| `name` | string | The display name of the catalog item. | Yes | WebApp |
43+
| `version` | string | The version of the catalog item. | No | 1.0.0 |
44+
| `summary` | string | A short string that summarizes the catalog item. | No | Azure Web App Environment |
45+
| `description` | string | A description of the catalog item. | No | Deploys a web app in Azure without a datastore |
46+
| `runner` | string | The container image to use when running actions. | No | ARM template </br> Terraform |
47+
| `templatePath` | string | The relative path of the entry template file. | Yes | main.tf </br> main.bicep </br> azuredeploy.json |
48+
| `parameters` | array | Input parameters to use when creating the environment and running actions. | No | #/definitions/Parameter |
4649

4750
## Parameters in environment.yaml
4851

49-
Parameters enable you to reuse an environment definition in different scenarios. For example, you might want developers in different regions to deploy the same environment. You can define a location parameter to prompt the developer to enter the desired location as they create their environment.
52+
Parameters enable you to reuse an environment definition in different scenarios. For example, you might want developers in different regions to deploy the same environment. You can define a location parameter to prompt developers to enter the desired location as they create their environments.
5053

5154
### Sample environment.yaml with parameters
5255

53-
The following script is an example of a environment.yaml file that includes two parameters; `location` and `name`:
56+
The following script is an example of a environment.yaml file that includes two parameters: `location` and `name`.
5457

5558
```yml
5659
name: WebApp
@@ -79,20 +82,20 @@ The following table describes the data types that you can use in environment.yam
7982

8083
Each parameter can use any of the following properties:
8184

82-
| **Properties** | **Type** | **Description** | **Further Settings** |
83-
| -------------- | -------------- |------------------------------------------------ |--------------------------------------- |
84-
| ID | string | Unique ID of the parameter. | |
85-
| name | string | Display name of the parameter. | |
86-
| description | string | Description of the parameter. | |
87-
| default | array </br> boolean </br> integer </br> number </br> object </br> string | The default value of the parameter. | |
88-
| type | array </br> boolean </br> integer </br> number </br> object </br> string | The data type of the parameter. This data type must match the parameter data type in the ARM template, BICEP file, or Terraform file with the corresponding parameter name. | **Default type:** string |
89-
| readOnly | boolean | Whether or not this parameter is read-only. | |
90-
| required | boolean | Whether or not this parameter is required. | |
91-
| allowed | array | An array of allowed values. | "items": { </br> "type": "string" </br> }, </br> "minItems": 1, </br> "uniqueItems": true, |
85+
| Parameter| Type| Description | Additional settings |
86+
| ----| --- |---------------------- |-------------------- |
87+
| `id ` | string | A unique ID of the parameter. | |
88+
| `name` | string | A display name for the parameter. | |
89+
| `description` | string | A description of the parameter. | |
90+
| `default` | array </br> boolean </br> integer </br> number </br> object </br> string | The default value of the parameter. | |
91+
| `type`| array </br> boolean </br> integer </br> number </br> object </br> string | The data type of the parameter. This data type must match the parameter data type that has the corresponding parameter name in the ARM template, Bicep file, or Terraform file. | **Default type:** string |
92+
| `readOnly`| boolean | Whether the parameter is read-only. | |
93+
| `required` | boolean | Whether the parameter is required. | |
94+
| `allowed` | array | An array of allowed values. | "items": { </br> "type": "string" </br> }, </br> "minItems": 1, </br> "uniqueItems": true, |
9295

9396
## YAML schema
9497

95-
There's a defined schema for Azure Deployment Environments environment.yaml files, which can make editing these files a little easier. You can add the schema definition to the beginning of your environment.yaml file:
98+
There's a defined schema for Azure Deployment Environments environment.yaml files. It can make editing these files a little easier. You can add the schema definition to the beginning of your environment.yaml file:
9699

97100
```yml
98101
# yaml-language-server: $schema=https://github.com/Azure/deployment-environments/releases/download/2022-11-11-preview/manifest.schema.json
@@ -135,7 +138,7 @@ parameters:
135138
default: 'dotnet-isolated'
136139
```
137140

138-
## Related content
141+
## Related resources
139142

140143
- [Add and configure an environment definition in Azure Deployment Environments](configure-environment-definition.md)
141144
- [Parameters in ARM templates](../azure-resource-manager/templates/parameters.md)

0 commit comments

Comments
 (0)