Skip to content

Commit c3cba2b

Browse files
authored
Merge pull request #288231 from RoseHJM/ade-azd-updates
ADE - ADE with azd updates
2 parents 9f61d7e + bf5c59e commit c3cba2b

File tree

4 files changed

+62
-47
lines changed

4 files changed

+62
-47
lines changed

articles/deployment-environments/concept-azure-developer-cli-with-deployment-environments.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: RoseHJM
55
ms.author: rosemalcolm
66
ms.service: azure-deployment-environments
77
ms.topic: concept-article
8-
ms.date: 02/24/2024
8+
ms.date: 10/11/2024
99

1010
# 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.
1111

@@ -15,7 +15,7 @@ ms.date: 02/24/2024
1515

1616
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.
1717

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.
1919

2020
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.
2121

@@ -31,7 +31,7 @@ At scale, using ADE and `azd` together enables you to provide a way for develope
3131

3232
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.
3333

34-
The following is a typical template structure:
34+
The following diagram shows a typical template structure:
3535

3636
```txt
3737
├── infra [ Contains infrastructure as code files ]
@@ -46,7 +46,7 @@ The following is a typical template structure:
4646

4747
All `azd` templates include the following assets:
4848

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.
5050

5151
- *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.
5252

@@ -56,9 +56,9 @@ All `azd` templates include the following assets:
5656

5757
Most `azd` templates also optionally include one or more of the following folders:
5858

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` .
6060

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` .
6262

6363
- *.azdo folder* - If you decide to use Azure Pipelines for CI/CD, define the workflow configuration files in this folder.
6464

@@ -91,7 +91,7 @@ To learn more about how to make your ADE environment definition compatible with
9191

9292
## Enable `azd` support in ADE
9393

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.
9595

9696
To enable `azd` support, run the following command:
9797

@@ -100,7 +100,7 @@ To enable `azd` support, run the following command:
100100
```
101101
### Explore `azd` commands
102102

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).
104104

105105

106106
## Related content

articles/deployment-environments/how-to-configure-azure-developer-cli-deployment-environments.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
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.
44
author: RoseHJM
55
ms.author: rosemalcolm
66
ms.service: azure-deployment-environments
77
ms.topic: how-to
8-
ms.date: 03/26/2024
8+
ms.date: 10/11/2024
99

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.
1111

1212
---
1313

1414
# Configure Azure Developer CLI with Azure Deployment Environments
1515

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.
1717

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).
1919

2020
## Prerequisites
2121

@@ -24,13 +24,13 @@ To learn the key concepts of how AZD and ADE work together, see [Use Azure Devel
2424

2525
## Attach Microsoft quick start catalog
2626

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.
2828

29-
## Examine an AZD compatible template
29+
## Examine an `azd` compatible template
3030

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.
3232

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.
3434

3535
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).
3636

@@ -55,21 +55,21 @@ For more information on tagging resources, see [Tagging resources for Azure Depl
5555
1. In the azure.yaml file, in the **services** section, you see the **web** and **API** services that are defined in the template.
5656

5757
> [!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.
5959
6060
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.
6161

6262
## Create an environment from an existing template
6363

64-
Use an existing AZD compatible template to create a new environment.
64+
Use an existing `azd` compatible template to create a new environment.
6565

66-
### Prepare to work with AZD
66+
### Prepare to work with `azd`
6767

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.
6969

70-
#### Install the Azure Developer CLI extension for Visual Studio Code
70+
#### Install the Azure Developer CLI extension
7171

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.
7373

7474
# [Visual Studio Code](#tab/visual-studio-code)
7575

@@ -89,7 +89,7 @@ powershell -ex AllSigned -c "Invoke-RestMethod 'https://aka.ms/install-azd.ps1'
8989

9090
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.
9191

92-
Sign in to AZD using the command palette:
92+
Sign in to `azd` using the command palette:
9393

9494
# [Visual Studio Code](#tab/visual-studio-code)
9595

@@ -111,9 +111,9 @@ Sign in to Azure at the CLI using the following command:
111111

112112
---
113113

114-
#### Enable AZD support for ADE
114+
#### Enable `azd` support for ADE
115115

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.
117117

118118
# [Visual Studio Code](#tab/visual-studio-code)
119119

@@ -128,7 +128,7 @@ When `platform.type` is set to `devcenter`, all AZD remote environment state and
128128

129129
### Create a new environment
130130

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.
132132

133133
# [Visual Studio Code](#tab/visual-studio-code)
134134

@@ -142,7 +142,7 @@ Now you're ready to create an environment to work in. You begin with an existing
142142

143143
:::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":::
144144

145-
1. In the AZD terminal, enter an environment name.
145+
1. In the `azd` terminal, enter an environment name.
146146

147147
:::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":::
148148

@@ -154,14 +154,14 @@ Now you're ready to create an environment to work in. You begin with an existing
154154

155155
:::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":::
156156

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.
158158

159159

160160
# [Azure Developer CLI](#tab/azure-developer-cli)
161161

162162
1. At the CLI, navigate to an empty folder.
163163

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:
165165

166166
```bash
167167
azd template list
@@ -176,7 +176,7 @@ Now you're ready to create an environment to work in. You begin with an existing
176176
```bash
177177
azd init
178178
```
179-
1. In the AZD terminal, enter an environment name.
179+
1. In the `azd` terminal, enter an environment name.
180180

181181
:::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":::
182182

@@ -188,13 +188,13 @@ Now you're ready to create an environment to work in. You begin with an existing
188188

189189
:::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":::
190190

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.
192192

193193
---
194194

195195
## Configure your devcenter
196196

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.
198198

199199
1. In Visual Studio Code, navigate to the *azure.yaml* file in the root of your project.
200200

@@ -215,11 +215,11 @@ To learn more about the settings you can configure, see [Configure dev center se
215215
216216
## Provision your environment
217217
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`.
219219

220220
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).
221221

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).
223223

224224

225225
## Related content

articles/deployment-environments/index.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,15 @@ landingContent:
9595
url: how-to-configure-project-admin.md
9696
- text: Grant access to create environments
9797
url: how-to-configure-deployment-environments-user.md
98+
99+
# Card
100+
- title: Use Azure Developer CLI with ADE
101+
linkLists:
102+
- linkListType: concept
103+
links:
104+
- text: Use Azure Developer CLI (azd) with ADE
105+
url: concept-azure-developer-cli-with-deployment-environments.md
106+
- linkListType: how-to-guide
107+
links:
108+
- text: Create environments with Azure Developer CLI (azd)
109+
url: how-to-create-environment-with-azure-developer.md

0 commit comments

Comments
 (0)