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-app-configuration/quickstart-dotnet-app.md
+16-30Lines changed: 16 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,65 +55,52 @@ Connect to your App Configuration store using Microsoft Entra ID (recommended),
55
55
56
56
1. Update the *App.config* file of your project as follows. You can connect to your App Configuration store using Microsoft Entra ID (recommended), or a connection string.
57
57
58
-
### [Microsoft Entra ID (recommended)](#tab/entra-id)
59
-
60
-
The `DefaultAzureCredential` is used to authenticate to your App Configuration store by default. Follow the [instructions](./concept-enable-rbac.md#authentication-with-token-credentials) to assign your credential the **App Configuration Data Reader** role. Be sure to allow sufficient time for the permission to propagate before running your application.
61
-
58
+
### [Microsoft Entra ID (recommended)](#tab/entra-id)
59
+
60
+
The `DefaultAzureCredential` is used to authenticate to your App Configuration store by default. Follow the [instructions](./concept-enable-rbac.md#authentication-with-token-credentials) to assign your credential the **App Configuration Data Reader** role. Be sure to allow sufficient time for the permission to propagate before running your application.
<addkey="Endpoint" value ="Set via an environment variable - for example, dev, test, staging, or production endpoint." />
77
77
</appSettings>
78
78
```
79
-
80
-
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.
81
-
82
-
1. Open *Program.cs*, and update the `Main` method to use App Configuration by calling `ConfigurationManager`.
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.
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.
103
+
---
117
104
118
105
1. Open *Program.cs*, and update the `Main` method to use App Configuration by calling `ConfigurationManager`.
119
106
@@ -126,7 +113,6 @@ The `DefaultAzureCredential` is used to authenticate to your App Configuration s
0 commit comments