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/environments-overview.md
+12-3Lines changed: 12 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,17 +15,17 @@ The Azure Developer CLI (`azd`) lets you manage multiple deployment environments
15
15
16
16
## What are environments?
17
17
18
-
An environment in the Azure Developer CLI (`azd`) context represents a named collection of configuration settings, environment variables, and infrastructure parameters associated with a specific deployment of your application. Environments serve several important purposes:
18
+
An environment in the Azure Developer CLI (`azd`) is a separate deployed copy of your application running in Azure. Different environments can configured with different values. Environments serve several important purposes:
19
19
20
20
-**Isolation**: Keep development, testing, staging, and production deployments separate.
21
21
-**Configuration management**: Maintain different settings for each environment.
22
22
-**Collaboration**: Enable team members to work with their own environments.
23
23
-**Resource organization**: Group and provision Azure resources by environment, such as using lower tier services for dev environments.
24
24
-**Reproducibility**: Ensure consistent deployments across different stages.
25
25
26
-
Each environment has its own Azure resource group and configuration settings. The environment name typically follows the pattern `rg-<environment-name>`, but this is not enforced by `azd` and is configurable by the user. This environment isolation helps prevent changes in one environment from affecting others.
26
+
Each environment has its own Azure resource group and configuration settings. This environment isolation helps prevent changes in one environment from affecting others.
27
27
28
-
## Environment structure and configuration files
28
+
## Environment structure and configuration
29
29
30
30
Azure Developer CLI (`azd`) environments live in a directory structure within your project:
31
31
@@ -47,6 +47,15 @@ The key components of this structure are:
47
47
3.**`.env` file**: Contains environment-specific variables used by your application and during deployment.
48
48
4.**`main.parameters.json`**: Contains parameters commonly used during infrastructure provisioning with Bicep or Terraform, but can be used for any per-environment `azd` configuration. This file is not intended to be used directly by end users.
49
49
50
+
### Environment names
51
+
52
+
The environment name typically follows these patterns:
53
+
54
+
- Team projects: `<project-name-[dev/int/prod]>`
55
+
- Personal projects: `<personal-unique-alias-[dev/int/prod]>`
56
+
57
+
Environment naming conventions are not enforced by `azd` and are configurable by the user.
58
+
50
59
## Environment variables
51
60
52
61
Azure Developer CLI [Environment variables](manage-environment-variables.md) provide a way to store configuration settings that influence and might vary between environments. When you run Azure Developer CLI commands, these variables are used to:
0 commit comments