File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
articles/azure-resource-manager/bicep Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ The string value of the environment variable or a default value.
83
83
84
84
### Remarks
85
85
86
- The following command only sets the environment variable for the PowerShell process where you run the command from.
86
+ The following command sets the environment variable only for the PowerShell process in which it is executed.
87
87
88
88
``` PowerShell
89
89
$env:testEnvironmentVariable = "Hello World!"
90
90
```
91
91
92
- You get [ BCP338] ( ./diagnostics/bcp388.md ) . To set the environment variable at the user level, use the following command:
92
+ You will get [ BCP338] ( ./diagnostics/bcp388.md ) . To set the environment variable at the user level, use the following command:
93
93
94
94
``` powershell
95
95
[System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'User')
@@ -98,7 +98,7 @@ You get [BCP338](./diagnostics/bcp388.md). To set the environment variable at th
98
98
To set the environment variable at the machine level, use the following command:
99
99
100
100
``` powershell
101
- [System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'User ')
101
+ [System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'Machine ')
102
102
```
103
103
104
104
For more information, see [ Environment.SetEnvironmentVariable Method] ( /dotnet/api/system.environment.setenvironmentvariable ) .
You can’t perform that action at this time.
0 commit comments