Skip to content

Commit 26af60b

Browse files
committed
Updates from review
1 parent 95b7099 commit 26af60b

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

articles/azure-app-configuration/quickstart-dotnet-app.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Connect to your App Configuration store using Microsoft Entra ID (recommended),
6565

6666
<configBuilders>
6767
<builders>
68-
<add name="MyConfigStore" mode="Greedy" connectionString="${ConnectionString}" type="Microsoft.Configuration.ConfigurationBuilders.AzureAppConfigurationBuilder, Microsoft.Configuration.ConfigurationBuilders.AzureAppConfiguration" />
68+
<add name="MyConfigStore" mode="Greedy" endpoint="${Endpoint}" type="Microsoft.Configuration.ConfigurationBuilders.AzureAppConfigurationBuilder, Microsoft.Configuration.ConfigurationBuilders.AzureAppConfiguration" />
6969
<add name="Environment" mode="Greedy" type="Microsoft.Configuration.ConfigurationBuilders.EnvironmentConfigBuilder, Microsoft.Configuration.ConfigurationBuilders.Environment" />
7070
</builders>
7171
</configBuilders>
@@ -76,7 +76,7 @@ Connect to your App Configuration store using Microsoft Entra ID (recommended),
7676
</appSettings>
7777
```
7878

79-
The connection string of your App Configuration store is read from the environment variable `ConnectionString`. Add the `Environment` configuration builder before the `MyConfigStore` in the `configBuilders` property of the `appSettings` section.
79+
The endpoint value of your App Configuration store is read from the environment variable `Endpoint`. You also add the `Environment` configuration builder before the `MyConfigStore` in the `configBuilders` property of the `appSettings` section.
8080

8181
1. Open *Program.cs*, and update the `Main` method to use App Configuration by calling `ConfigurationManager`.
8282

@@ -118,7 +118,7 @@ Connect to your App Configuration store using Microsoft Entra ID (recommended),
118118
</appSettings>
119119
```
120120

121-
The connection string of your App Configuration store is read from the environment variable `ConnectionString`. Add the `Environment` configuration builder before the `MyConfigStore` in the `configBuilders` property of the `appSettings` section.
121+
The connection string of your App Configuration store is read from the environment variable `ConnectionString`. You also add the `Environment` configuration builder before the `MyConfigStore` in the `configBuilders` property of the `appSettings` section.
122122

123123
1. Open *Program.cs*, and update the `Main` method to use App Configuration by calling `ConfigurationManager`.
124124

@@ -140,24 +140,24 @@ Connect to your App Configuration store using Microsoft Entra ID (recommended),
140140

141141
### [Microsoft Entra ID (recommended)](#tab/entra-id)
142142

143-
Set the environment variable named **APP_CONFIGURATION_ENDPOINT** to the endpoint of your App Configuration store found under the *Overview* of your store in the Azure portal.
143+
Set the environment variable named **Endpoint** to the endpoint of your App Configuration store found under the *Overview* of your store in the Azure portal.
144144

145145
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
146146

147147
```cmd
148-
setx APP_CONFIGURATION_ENDPOINT "<endpoint-of-your-app-configuration-store>"
148+
setx Endpoint "<endpoint-of-your-app-configuration-store>"
149149
```
150150

151151
If you use PowerShell, run the following command:
152152

153153
```powershell
154-
$Env:APP_CONFIGURATION_ENDPOINT = "<endpoint-of-your-app-configuration-store>"
154+
$Env:Endpoint = "<endpoint-of-your-app-configuration-store>"
155155
```
156156

157157
If you use macOS or Linux, run the following command:
158158

159159
```bash
160-
export APP_CONFIGURATION_ENDPOINT='<endpoint-of-your-app-configuration-store>'
160+
export Endpoint='<endpoint-of-your-app-configuration-store>'
161161
```
162162

163163
### [Connection string](#tab/connection-string)
@@ -175,6 +175,12 @@ Connect to your App Configuration store using Microsoft Entra ID (recommended),
175175
```powershell
176176
$Env:ConnectionString = "<connection-string-of-your-app-configuration-store>"
177177
```
178+
179+
If you use macOS or Linux, run the following command:
180+
181+
```bash
182+
export ConnectionString='<connection-string-of-your-app-configuration-store>'
183+
```
178184
---
179185

180186
1. Restart Visual Studio to allow the change to take effect.

0 commit comments

Comments
 (0)