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: articles/deployment-environments/concept-azure-developer-cli-with-deployment-environments.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: RoseHJM
5
5
ms.author: rosemalcolm
6
6
ms.service: azure-deployment-environments
7
7
ms.topic: concept-article
8
-
ms.date: 02/24/2024
8
+
ms.date: 10/11/2024
9
9
10
10
# Customer intent: As a platform engineer, I want to understand ADE and `azd` work together to provision application infrastructure and deploy application code to the new infrastructure.
11
11
@@ -15,7 +15,7 @@ ms.date: 02/24/2024
15
15
16
16
In this article, you learn about Azure Developer CLI (`azd`) and how it works with Azure Deployment Environments (ADE) to provision application infrastructure and deploy application code to the new infrastructure.
17
17
18
-
The Azure Developer CLI (`azd`) is an open-source command-line tool that provides developer-friendly commands that map to key stages in your workflow. You can install `azd` locally on your machine or use it in other environments.
18
+
`azd` is an open-source command-line tool that provides developer-friendly commands that map to key stages in your workflow. You can install `azd` locally on your machine or use it in other environments.
19
19
20
20
With ADE, you can create environments from an environment definition in a catalog attached to your dev center. By adding `azd`, you can deploy your application code to the new infrastructure.
21
21
@@ -31,7 +31,7 @@ At scale, using ADE and `azd` together enables you to provide a way for develope
31
31
32
32
The Azure Developer CLI commands are designed to work with standardized templates. Each template is a code repository that adheres to specific file and folder conventions. The templates contain the assets `azd` needs to provision an Azure Deployment Environment environment. When you run a command like `azd up`, the tool uses the template assets to execute various workflow steps, such as provisioning or deploying resources to Azure.
33
33
34
-
The following is a typical template structure:
34
+
The following diagram shows a typical template structure:
35
35
36
36
```txt
37
37
├── infra [ Contains infrastructure as code files ]
@@ -46,7 +46,7 @@ The following is a typical template structure:
46
46
47
47
All `azd` templates include the following assets:
48
48
49
-
-*infra folder* - The infra folder is not used in `azd` with ADE. It contains all of the Bicep or Terraform infrastructure as code files for the azd template. ADE provides the infrastructure as code files for the `azd` template. You don't need to include these files in your `azd` template.
49
+
-*infra folder* - The infra folder is not used in `azd` with ADE. It contains all of the Bicep or Terraform infrastructure as code files for the `azd` template. ADE provides the infrastructure as code files for the `azd` template. You don't need to include these files in your `azd` template.
50
50
51
51
-*azure.yaml file* - A configuration file that defines one or more services in your project and maps them to Azure resources for deployment. For example, you might define an API service and a web front-end service, each with attributes that map them to different Azure resources for deployment.
52
52
@@ -56,9 +56,9 @@ All `azd` templates include the following assets:
56
56
57
57
Most `azd` templates also optionally include one or more of the following folders:
58
58
59
-
-*.devcontainer folder* - Allows you to set up a Dev Container environment for your application. This is a common development environment approach that isn't specific to azd.
59
+
-*.devcontainer folder* - Allows you to set up a Dev Container environment for your application. This common development environment approach that isn't specific to `azd`.
60
60
61
-
-*.github folder* - Holds the CI/CD workflow files for GitHub Actions, which is the default CI/CD provider for azd.
61
+
-*.github folder* - Holds the CI/CD workflow files for GitHub Actions, which is the default CI/CD provider for `azd`.
62
62
63
63
-*.azdo folder* - If you decide to use Azure Pipelines for CI/CD, define the workflow configuration files in this folder.
64
64
@@ -91,7 +91,7 @@ To learn more about how to make your ADE environment definition compatible with
91
91
92
92
## Enable `azd` support in ADE
93
93
94
-
To enable `azd` support with ADE, you need to set the `platform.type` to devcenter. This configuration allows `azd` to leverage new dev center components for remote environment state and provisioning, and means that the infra folder in your templates will effectively be ignored. Instead, `azd`will use one of the infrastructure templates defined in your dev center catalog for resource provisioning.
94
+
To enable `azd` support with ADE, you need to set the `platform.type` to devcenter. This configuration allows `azd` to use new dev center components for remote environment state and provisioning, and means that the infra folder in your templates is ignored. Instead, `azd`uses one of the infrastructure templates defined in your dev center catalog for resource provisioning.
95
95
96
96
To enable `azd` support, run the following command:
97
97
@@ -100,7 +100,7 @@ To enable `azd` support, run the following command:
100
100
```
101
101
### Explore `azd` commands
102
102
103
-
When the dev center feature is enabled, the default behavior of some common azd commands changes to work with these remote environments. For more information, see [Work with Azure Deployment Environments](/azure/developer/azure-developer-cli/ade-integration?branch=main#work-with-azure-deployment-evironments).
103
+
When the dev center feature is enabled, the default behavior of some common `azd` commands changes to work with these remote environments. For more information, see [Work with Azure Deployment Environments](/azure/developer/azure-developer-cli/ade-integration?branch=main#work-with-azure-deployment-evironments).
Copy file name to clipboardExpand all lines: articles/deployment-environments/how-to-configure-azure-developer-cli-deployment-environments.md
+28-28Lines changed: 28 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
-
title: Configure Azure Developer CLI templates for use with ADE
3
-
description: Understand how ADE and AZD work together to provision application infrastructure and deploy application code to the new infrastructure.
2
+
title: Create an environment with Azure Developer CLI
3
+
description: Use an `azd` template to provision application infrastructure and deploy application code to the new infrastructure.
4
4
author: RoseHJM
5
5
ms.author: rosemalcolm
6
6
ms.service: azure-deployment-environments
7
7
ms.topic: how-to
8
-
ms.date: 03/26/2024
8
+
ms.date: 10/11/2024
9
9
10
-
# Customer intent: As a platform engineer, I want to use ADE and AZD together to provision application infrastructure and deploy application code to the new infrastructure.
10
+
# Customer intent: As a developer, I want to use ADE and `azd` together to provision application infrastructure and deploy application code to the new infrastructure.
11
11
12
12
---
13
13
14
14
# Configure Azure Developer CLI with Azure Deployment Environments
15
15
16
-
In this article, you create a new environment from an existing Azure Developer CLI (AZD) compatible template by using AZD. You learn how to configure Azure Deployment Environments (ADE) and AZD to work together to provision application infrastructure and deploy application code to the new infrastructure.
16
+
In this article, you create a new environment from an existing Azure Developer CLI (`azd`) compatible template by using `azd`. You learn how to configure Azure Deployment Environments (ADE) and `azd` to work together to provision application infrastructure and deploy application code to the new infrastructure.
17
17
18
-
To learn the key concepts of how AZD and ADE work together, see [Use Azure Developer CLI with Azure Deployment Environments](concept-azure-developer-cli-with-deployment-environments.md).
18
+
To learn the key concepts of how `azd` and ADE work together, see [Use Azure Developer CLI with Azure Deployment Environments](concept-azure-developer-cli-with-deployment-environments.md).
19
19
20
20
## Prerequisites
21
21
@@ -24,13 +24,13 @@ To learn the key concepts of how AZD and ADE work together, see [Use Azure Devel
24
24
25
25
## Attach Microsoft quick start catalog
26
26
27
-
Microsoft provides a quick start catalog that contains a set of AZD compatible templates that you can use to create environments. You can attach the quick start catalog to your dev center at creation or add it later. The quick start catalog contains a set of templates that you can use to create environments.
27
+
Microsoft provides a quick start catalog that contains a set of `azd` compatible templates that you can use to create environments. You can attach the quick start catalog to your dev center at creation or add it later. The quick start catalog contains a set of templates that you can use to create environments.
28
28
29
-
## Examine an AZD compatible template
29
+
## Examine an `azd` compatible template
30
30
31
-
You can use an existing AZD compatible template to create a new environment, or you can add an azure.yaml file to your repository. In this section, you examine an existing AZD compatible template.
31
+
You can use an existing `azd` compatible template to create a new environment, or you can add an azure.yaml file to your repository. In this section, you examine an existing `azd` compatible template.
32
32
33
-
AZD provisioning for environments relies on curated templates from the catalog. Templates in the catalog might assign tags to provisioned Azure resources for you to associate your app services with in the azure.yaml file, or specify the resources explicitly. In this example, resources are specified explicitly.
33
+
`azd` provisioning for environments relies on curated templates from the catalog. Templates in the catalog might assign tags to provisioned Azure resources for you to associate your app services with in the azure.yaml file, or specify the resources explicitly. In this example, resources are specified explicitly.
34
34
35
35
For more information on tagging resources, see [Tagging resources for Azure Deployment Environments](/azure/developer/azure-developer-cli/ade-integration#tagging-resources-for-azure-deployment-environments).
36
36
@@ -55,21 +55,21 @@ For more information on tagging resources, see [Tagging resources for Azure Depl
55
55
1. In the azure.yaml file, in the **services** section, you see the **web** and **API** services that are defined in the template.
56
56
57
57
> [!NOTE]
58
-
> Not all AZD compatible catalogs use the linked templates structure shown in the example. You can use a single catalog for all your environments by including the azure.yaml file. Using multiple catalogs and code repositories allows you more flexibility in configuring secure access for platform engineers and developers.
58
+
> Not all `azd` compatible catalogs use the linked templates structure shown in the example. You can use a single catalog for all your environments by including the azure.yaml file. Using multiple catalogs and code repositories allows you more flexibility in configuring secure access for platform engineers and developers.
59
59
60
60
If you're working with your own catalog & environment definition, you can create an azure.yaml file in the root of your repository. Use the azure.yaml file to define the services that you want to deploy to the environment.
61
61
62
62
## Create an environment from an existing template
63
63
64
-
Use an existing AZD compatible template to create a new environment.
64
+
Use an existing `azd` compatible template to create a new environment.
65
65
66
-
### Prepare to work with AZD
66
+
### Prepare to work with `azd`
67
67
68
-
When you work with AZD for the first time, there are some one-time setup tasks you need to complete. These tasks include installing the Azure Developer CLI, signing in to your Azure account, and enabling AZD support for Azure Deployment Environments.
68
+
When you work with `azd` for the first time, there are some one-time setup tasks you need to complete. These tasks include installing the Azure Developer CLI, signing in to your Azure account, and enabling `azd` support for Azure Deployment Environments.
69
69
70
-
#### Install the Azure Developer CLI extension for Visual Studio Code
70
+
#### Install the Azure Developer CLI extension
71
71
72
-
When you install AZD, the AZD tools are installed within an AZD scope rather than globally, and are removed if AZD is uninstalled. You can install AZD in Visual Studio Code or from the command line.
72
+
When you install `azd`, the `azd` tools are installed within an `azd` scope rather than globally, and are removed if `azd` is uninstalled. You can install `azd` in Visual Studio Code, from the command line, or in Visual Studio.
Access your Azure resources by logging in. When you initiate a log in, a browser window opens and prompts you to log in to Azure. After you sign in, the terminal displays a message that you're signed in to Azure.
91
91
92
-
Sign in to AZD using the command palette:
92
+
Sign in to `azd` using the command palette:
93
93
94
94
# [Visual Studio Code](#tab/visual-studio-code)
95
95
@@ -111,9 +111,9 @@ Sign in to Azure at the CLI using the following command:
111
111
112
112
---
113
113
114
-
#### Enable AZD support for ADE
114
+
#### Enable `azd` support for ADE
115
115
116
-
When `platform.type` is set to `devcenter`, all AZD remote environment state and provisioning uses dev center components. AZD uses one of the infrastructure templates defined in your dev center catalog for resource provisioning. In this configuration, the *infra* folder in your local templates isn't used.
116
+
When `platform.type` is set to `devcenter`, all `azd` remote environment state and provisioning uses dev center components. `azd` uses one of the infrastructure templates defined in your dev center catalog for resource provisioning. In this configuration, the *infra* folder in your local templates isn't used.
117
117
118
118
# [Visual Studio Code](#tab/visual-studio-code)
119
119
@@ -128,7 +128,7 @@ When `platform.type` is set to `devcenter`, all AZD remote environment state and
128
128
129
129
### Create a new environment
130
130
131
-
Now you're ready to create an environment to work in. You begin with an existing template. ADE defines the infrastructure for your application, and the AZD template provides sample application code.
131
+
Now you're ready to create an environment to work in. You begin with an existing template. ADE defines the infrastructure for your application, and the `azd` template provides sample application code.
132
132
133
133
# [Visual Studio Code](#tab/visual-studio-code)
134
134
@@ -142,7 +142,7 @@ Now you're ready to create an environment to work in. You begin with an existing
142
142
143
143
:::image type="content" source="media/how-to-configure-azure-developer-cli-deployment-environments/command-palette-functionapp-template.png" alt-text="Screenshot of the Visual Studio Code command palette with a list of templates, Function App highlighted." lightbox="media/how-to-configure-azure-developer-cli-deployment-environments/command-palette-functionapp-template.png":::
144
144
145
-
1. In the AZD terminal, enter an environment name.
145
+
1. In the `azd` terminal, enter an environment name.
146
146
147
147
:::image type="content" source="media/how-to-configure-azure-developer-cli-deployment-environments/enter-environment-name.png" alt-text="Screenshot of the Azure Developer terminal, showing prompt for a new environment name." lightbox="media/how-to-configure-azure-developer-cli-deployment-environments/enter-environment-name.png":::
148
148
@@ -154,14 +154,14 @@ Now you're ready to create an environment to work in. You begin with an existing
154
154
155
155
:::image type="content" source="media/how-to-configure-azure-developer-cli-deployment-environments/initialize-select-environment-definition.png" alt-text="Screenshot of the Azure Developer terminal, showing prompt to select an environment definition." lightbox="media/how-to-configure-azure-developer-cli-deployment-environments/initialize-select-environment-definition.png":::
156
156
157
-
AZD creates the project resources, including an *azure.yaml* file in the root of your project.
157
+
`azd` creates the project resources, including an *azure.yaml* file in the root of your project.
158
158
159
159
160
160
# [Azure Developer CLI](#tab/azure-developer-cli)
161
161
162
162
1. At the CLI, navigate to an empty folder.
163
163
164
-
1. To list the templates available, in the AZD terminal, run the following command:
164
+
1. To list the templates available, in the `azd` terminal, run the following command:
165
165
166
166
```bash
167
167
azd template list
@@ -176,7 +176,7 @@ Now you're ready to create an environment to work in. You begin with an existing
176
176
```bash
177
177
azd init
178
178
```
179
-
1. In the AZD terminal, enter an environment name.
179
+
1. In the `azd` terminal, enter an environment name.
180
180
181
181
:::image type="content" source="media/how-to-configure-azure-developer-cli-deployment-environments/enter-environment-name.png" alt-text="Screenshot of the Azure Developer terminal, showing prompt for a new environment name." lightbox="media/how-to-configure-azure-developer-cli-deployment-environments/enter-environment-name.png":::
182
182
@@ -188,13 +188,13 @@ Now you're ready to create an environment to work in. You begin with an existing
188
188
189
189
:::image type="content" source="media/how-to-configure-azure-developer-cli-deployment-environments/initialize-select-environment-definition.png" alt-text="Screenshot of the Azure Developer terminal, showing prompt to select an environment definition." lightbox="media/how-to-configure-azure-developer-cli-deployment-environments/initialize-select-environment-definition.png":::
190
190
191
-
AZD creates the project resources, including an *azure.yaml* file in the root of your project.
191
+
`azd` creates the project resources, including an *azure.yaml* file in the root of your project.
192
192
193
193
---
194
194
195
195
## Configure your devcenter
196
196
197
-
You can define AZD settings for your dev centers so that you don't need to specify them each time you update an environment. In this example, you define the names of the catalog, dev center, and project that you're using for your environment.
197
+
You can define `azd` settings for your dev centers so that you don't need to specify them each time you update an environment. In this example, you define the names of the catalog, dev center, and project that you're using for your environment.
198
198
199
199
1. In Visual Studio Code, navigate to the *azure.yaml* file in the root of your project.
200
200
@@ -215,11 +215,11 @@ To learn more about the settings you can configure, see [Configure dev center se
215
215
216
216
## Provision your environment
217
217
218
-
You can use AZD to provision and deploy resources to your deployment environments using commands like `azd up` or `azd provision`.
218
+
You can use `azd` to provision and deploy resources to your deployment environments using commands like `azd up` or `azd provision`.
219
219
220
220
To learn more about provisioning your environment, see [Create an environment by using the Azure Developer CLI](how-to-create-environment-with-azure-developer.md#provision-infrastructure-to-azure-deployment-environment).
221
221
222
-
To how common AZD commands work with ADE, see [Work with Azure Deployment Environments](/azure/developer/azure-developer-cli/ade-integration?branch=main#work-with-azure-deployment-evironments).
222
+
To how common `azd` commands work with ADE, see [Work with Azure Deployment Environments](/azure/developer/azure-developer-cli/ade-integration?branch=main#work-with-azure-deployment-evironments).
0 commit comments