Skip to content

Commit 1fbea07

Browse files
committed
acrolinx
1 parent 8544a59 commit 1fbea07

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

articles/azure-developer-cli/environments-overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Azure Developer CLI environments overview
3-
description: Learn essential concenpts about environments using Azure Developer CLI (azd).
3+
description: Learn essential concepts about environments using Azure Developer CLI (azd).
44
author: alexwolfmsft
55
ms.author: alexwolf
66
ms.date: 08/04/2025
@@ -45,7 +45,7 @@ The key components of this structure are:
4545
1. **`.azure` directory**: The root directory for all environment configurations. Excluded from source control by the `.gitignore` file by default.
4646
2. **Environment-specific directories**: Directories named after your environments, such as `dev`, `test`, `prod`.
4747
3. **`.env` file**: Contains environment-specific variables used by your application and during deployment.
48-
4. **`config.json`**: Used to drive settings that influence `azd` command behavior and features. This file is not intended to be used directly by end users.
48+
4. **`config.json`**: Used to drive settings that influence `azd` command behavior and features. This file isn't intended to be used directly by end users.
4949

5050
### Environment names
5151

@@ -54,7 +54,7 @@ Environment naming typically follows these patterns:
5454
- Team projects: `<project-name-[dev/int/prod]>`
5555
- Personal projects: `<personal-unique-alias-[dev/int/prod]>`
5656

57-
These naming conventions are not enforced by `azd` and are configurable by the user.
57+
These naming conventions aren't enforced by `azd` and are configurable by the user.
5858

5959
## Environment variables
6060

@@ -88,7 +88,7 @@ Common environment variables include:
8888
8989
When working with environment variables:
9090

91-
- Avoid committing `.env` files to source control. If environment configuration needs to be persisted or shared, users should leverage [Remote environments](remote-environments-support.md).
91+
- Avoid committing `.env` files to source control. If environment configuration needs to be persisted or shared, users should use [Remote environments](remote-environments-support.md).
9292
- Use consistent naming across environments.
9393
- Use the `azd env set` command to update variables safely.
9494

articles/azure-developer-cli/work-with-environments.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: devx-track-azdevcli, build-2023
1111

1212
# Work with Azure Developer CLI environments
1313

14-
The Azure Developer CLI (`azd`) helps you create and manage [Environments](environments-overview.md) with their own configurations, such as dev, test, and prod. This article shows how to create and manage environments, and how to leverage them with your Bicep infrastructure files.
14+
The Azure Developer CLI (`azd`) helps you create and manage [Environments](environments-overview.md) with their own configurations, such as dev, test, and prod. This article shows how to create and manage environments, and how to use them with your Bicep infrastructure files.
1515

1616
## Create environments
1717

@@ -27,7 +27,7 @@ For example, to create a development environment:
2727
azd env new dev
2828
```
2929

30-
When you run a command such as `azd up` or `azd deploy`, you'll be prompted to select an Azure subscription and location for the new environment. Prompt settings are stored in the new environment `.env` or `config.json` files.
30+
When you run a command such as `azd up` or `azd deploy`, `azd` prompts you to select an Azure subscription and location for the new environment. Prompt settings are stored in the new environment `.env` or `config.json` files.
3131

3232
You can also specify subscription and location directly in the command:
3333

@@ -71,13 +71,13 @@ azd env select prod
7171
7272
## Understand the default environment
7373

74-
The global configuration file `.azure/config.json` keeps track of your currently selected environment. When you run `azd init` and no environments exist yet, `azd` automatically creates your first environment and sets it as the default. If you already have one or more environments and run `azd env new <name>`, you'll be prompted to choose whether to make the new environment the default. If you decline, the new environment is created but your current selection remains unchanged.
74+
The global configuration file `.azure/config.json` keeps track of your currently selected environment. When you run `azd init` and no environments exist yet, `azd` automatically creates your first environment and sets it as the default. If you already have one or more environments and run `azd env new <name>`, `azd` prompts you to choose whether to make the new environment the default. If you decline, the new environment is created but your current selection remains unchanged.
7575

76-
You can temporarily override the default environment for a single command by using the `--environment` flag. This does not change the default for future commands.
76+
You can temporarily override the default environment for a single command by using the `--environment` flag. Using this flag doesn't change the default for future commands.
7777

7878
## Refresh environment settings
7979

80-
You can refresh your local environment variables using the `azd env refresh` command. This command locates the most recent Azure deployment for your app, retrieves the environment variable values by name, and then updates your local `.env` file with those latest values for the select environment. For example, if you provisioned both a `dev` and `prod` version, and you currently have the `dev` environment selected, it will retrieve lates outputs from that deployment to populate the .env file.
80+
You can refresh your local environment variables using the `azd env refresh` command. This command locates the most recent Azure deployment for your app, retrieves the environment variable values by name, and then updates your local `.env` file with those latest values for the select environment. For example, if you provisioned both a `dev` and `prod` version, and you currently have the `dev` environment selected, it retrieves the latest output from that deployment to populate the .env file.
8181

8282
```azdeveloper
8383
azd env refresh
@@ -111,7 +111,7 @@ azd up
111111
```
112112

113113
> [!NOTE]
114-
> It's recommended that teams rely on CICD pipelines using the `azd pipeline config` command, rather than direct deployments using commands such as `azd up` or `azd provision`.
114+
> Teams should consider using CICD pipelines via the `azd pipeline config` command, rather than direct deployments using commands such as `azd up` or `azd provision`.
115115
116116
## Delete environment resources
117117

@@ -122,7 +122,7 @@ azd down <environment-name>
122122
```
123123

124124
> [!NOTE]
125-
> It is currently not possible to delete or rename `azd` environments directly using commands. If you need to rename an environment:
125+
> It's currently not possible to delete or rename `azd` environments directly using commands. If you need to rename an environment:
126126
>
127127
> - Use `azd down` to delete the environment resources.
128128
> - Run `azd env new <new-name>` to create the new environment.
@@ -135,13 +135,13 @@ You can use the `AZURE_ENV_NAME` variable from your environment's `.env` file to
135135
> [!NOTE]
136136
> Visit the [Work with environment variables](manage-environment-variables.md) to learn more about how to use environment variables to configure your Azure Developer CLI projects.
137137
138-
1. The `AZURE_ENV_NAME` environment variable is set by `azd` when you initialize a project.
138+
1. `azd` sets the `AZURE_ENV_NAME` environment variable when you initialize a project.
139139

140140
```output
141141
AZURE_ENV_NAME=dev
142142
```
143143
144-
1. In your `main.parameters.json` file, reference the environment variable so `azd` will substitute its value:
144+
1. In your `main.parameters.json` file, reference the environment variable so `azd` substitutes its value:
145145
146146
```json
147147
{
@@ -155,7 +155,7 @@ You can use the `AZURE_ENV_NAME` variable from your environment's `.env` file to
155155
}
156156
```
157157
158-
When you deploy with `azd`, the value from `.env` will be passed to your Bicep file from `main.parameters.json`.
158+
When you deploy with `azd`, the value from `.env` is passed to your Bicep file from `main.parameters.json`.
159159
160160
1. In your Bicep template, define a parameter for the environment name:
161161

0 commit comments

Comments
 (0)