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/azure-developer-cli/includes/azd-template-structure-minimal.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ ms.date: 08/01/2022
9
9
`azd` templates are standard code repositories with additional assets included. All `azd` templates share a similar file structure based on `azd` conventions:
10
10
11
11
-**`infra` folder** - Contains all of the Bicep or Terraform infrastructure as code files for the `azd` template. `azd` executes these files to create the Azure resources required by your app.
12
+
-**`src` folder** - Contains the app source code. `azd` packages and deploys the code based on configurations in `azure.yaml`.
12
13
-**`azure.yaml` file** - A configuration file that maps source code folders in your project to Azure resources defined in the `infra` folder for deployment. For example, you might define an API service and a web front-end service in separate folders and map them to different Azure resources for deployment.
13
-
-**`.azure` folder** - Contains essential Azure configurations and environment variables, such as the location to deploy resources.
14
-
-**`src` folder** - Contains all of the deployable app source code.
14
+
-**`.azure` folder** - Contains essential Azure configurations, such as the location to deploy resources.
15
15
16
-
For example, a common `azd`template might match the following folder structure:
16
+
For example, most `azd`templates match the following folder structure:
Copy file name to clipboardExpand all lines: articles/azure-developer-cli/quickstart-explore-templates.md
+16-14
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,17 @@ ms.topic: conceptual
9
9
ms.custom: devx-track-azdevcli
10
10
---
11
11
12
-
# Explore and customize an Azure Developer CLI Template
12
+
# Explore and customize an Azure Developer CLI template
13
13
14
-
In this quickstart, you explore and customize the **`hello-azd`**Azure Developer CLI template. **hello-azd** provides a simple starting point for building and deploying applications to Azure using the Azure Developer CLI (`azd`). This quickstart expands on the concepts demonstrated in the [Quickstart - Deploy an azd template](/azure/developer/azure-developer-cli/get-started) article.
14
+
In this quickstart, you explore and customize an Azure Developer CLI template. The **hello-azd** template provides a simple starting point for building and deploying applications to Azure using the Azure Developer CLI (`azd`). This quickstart expands on the concepts demonstrated in the [Quickstart - Deploy an azd template](/azure/developer/azure-developer-cli/get-started) article.
15
15
16
16
## Prerequisites
17
17
18
-
-[Install the Azure Developer CLI](/azure/developer/azure-developer-cli/install-azd) on your local machine
19
-
-[Install Visual Studio Code](https://code.visualstudio.com/download) or your editor of choice
20
-
- Have access to GitHub Codespaces (optional)
18
+
-[The Azure Developer CLI](/azure/developer/azure-developer-cli/install-azd) installed on your local machine
19
+
-[Visual Studio Code](https://code.visualstudio.com/download) or your editor of choice
@@ -29,13 +31,13 @@ The template supports the following features:
29
31
30
32
- Packages and deploys a containerized app to Azure Container Apps
31
33
- Creates the Azure resources needed by the app, such as an Azure Cosmos DB database
32
-
- Can automatically create a CI/CD pipeline using the `azd pipeline config` command
34
+
- Can automatically [Configure a CI/CD pipeline](configure-devops-pipeline.md) using the `azd pipeline config` command
33
35
34
36
Follow these steps to set up the template:
35
37
36
38
## [Visual Studio Code](#tab/vs-code)
37
39
38
-
1.Clone the repository to your local machine:
40
+
1.In an empty directory on your local machine, clone and initialize the repository using the `azd init` command:
39
41
40
42
```bash
41
43
azd init -t hello-azd
@@ -46,15 +48,15 @@ Follow these steps to set up the template:
46
48
1. Open the project folder in Visual Studio Code:
47
49
48
50
```bash
49
-
code hello-azd
51
+
code .
50
52
```
51
53
52
54
## [Codespaces](#tab/codespaces)
53
55
54
56
1. Open the [hello-azd template repository](https://github.com/Azure-Samples/hello-azd) on GitHub.
55
57
1. Select the **Code** button and then select **Codespaces**.
56
58
1. Create a new Codespace to launch a fully configured development environment in your browser. You might need to wait a moment for the environment to initialize.
57
-
1. After the Codespaces environment loads, initialize the `azd` template using teh following command:
59
+
1. After the Codespaces environment loads, initialize the `azd` template using the `azd init` command:
58
60
59
61
```bash
60
62
azd init -t hello-azd
@@ -66,15 +68,15 @@ Follow these steps to set up the template:
66
68
67
69
## Explore the template
68
70
69
-
With the template open in your tool of choice, you can browse the folder structure to explore how `azd` templates work. For example, complete the following tasks:
71
+
With the template open in your tool of choice, you can browse the folder structure to explore how `azd` templates work:
70
72
71
73
1. Expand the `src` folder to view the source code of the app.
72
-
- The `hello-azd` template includes a containerized .NET Blazor app that provides a simple UI to learn about `azd` and manage sample ticket data. `azd` also supports other languages like JavaScript and Python.
73
-
- When you run the template, the Blazor app is packaged as a container image and deployed to Azure Container Apps.
74
+
- The `hello-azd` template includes a containerized .NET app that provides a simple UI to learn about `azd` and manage sample ticket data. `azd` also supports other languages like JavaScript and Python.
75
+
- When you run `azd up`, the app is packaged as a container image and deployed to Azure Container Apps.
74
76
75
77
1. Expand the `infra` folder to explore the infrastructure as code files.
76
78
- This template uses Bicep files (`.bicep`) to create Azure resources, but you can also use Terraform (`.tf`).
77
-
- The `main.bicep` file orchestrates resource provisioning by referencing other Bicep modules in the `infra` folder. Browse the contents of this file for examples of how to create app resources, such as an Azure Storage account:
79
+
- The `main.bicep` file creates Azure resources by referencing other Bicep modules in the `infra` folder, such as an Azure Storage account:
78
80
79
81
```bicep
80
82
// Omitted...
@@ -121,7 +123,7 @@ With the template open in your tool of choice, you can browse the folder structu
121
123
You can make changes to the template to influence the deployed app and resources. In this example, you make two small changes to the app and explore the deployed results:
122
124
123
125
- Update the app header welcome text to your own message
124
-
- Update the created storage account so that it creates another blob container
126
+
- Update the created storage account so that it creates two blob containers instead of one
125
127
126
128
To make these changes, complete the following steps:
0 commit comments