Skip to content

Commit fcbcfc3

Browse files
committed
fixes
1 parent b8be719 commit fcbcfc3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/azure-developer-cli/environment-variables-faq.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ System environment variables are not directly accessible through `azd` commands
2323

2424
### Can `azd` commands directly read and write system environment variables?
2525

26-
No, `azd` commands cannot read or write system environment variables. Commands such as [`azd env`](/azure/developer/azure-developer-cli/reference#azd-env) or [`azd env get-values`](/azure/developer/azure-developer-cli/reference#azd-env-get-values) operate on values stored in the template `.env` file for a specific `azd` environment. `azd` environments are managed using subfolders in the `.azure/<environment name>` directory of your project template, which enables your template to have multiple environments. Environment subfolders hold configuration files such as `.env` that describe the environment.
26+
No, `azd` commands cannot read or write system environment variables. Commands such as [`azd env set`](/azure/developer/azure-developer-cli/reference#azd-env) or [`azd env get-values`](/azure/developer/azure-developer-cli/reference#azd-env-get-values) operate on values stored in the template `.env` file for a specific `azd` environment. `azd` environments are managed using subfolders in the `.azure/<environment name>` directory of your project template, which enables your template to have multiple environments. Environment subfolders hold configuration files such as `.env` that describe the environment.
2727

2828
Use custom shell or PowerShell scripts with `azd` [hooks](/azure/developer/azure-developer-cli/azd-extensibility) to read or write system level environment variables.
2929

@@ -71,6 +71,9 @@ Common reasons to access `azd` environment variables include the following:
7171
- Expose the `.env` values from the template to the application code framework, such as Node.js or .NET.
7272
- Write the `.env` values to system environment variables.
7373

74+
> [!TIP]
75+
> Use caution when setting system environment variables, as they can cause conflicts with other templates that share the same environment variable names.
76+
7477
### How do I manually set a new `azd` environment variable?
7578

7679
Set additional `azd` environment variables using the [`azd env set`](https://review.learn.microsoft.com/azure/developer/azure-developer-cli/reference?branch=pr-en-us-5900#azd-env-set) command, providing the key and value for your variable.

0 commit comments

Comments
 (0)