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
@@ -96,6 +123,7 @@ You use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a
96
123
// The rest of existing code in Program.cs
97
124
// ... ...
98
125
```
126
+
---
99
127
100
128
In the `ConfigureRefresh` method, a key within your App Configuration store is registered for change monitoring. The `Register` method has an optional boolean parameter `refreshAll` that can be used to indicate whether all configuration values should be refreshed if the registered key changes. In this example, only the key *TestApp:Settings:Message* will be refreshed. All settings registered for refresh have a default cache expiration of 30 seconds before a new refresh is attempted. It can be updated by calling the `AzureAppConfigurationRefreshOptions.SetCacheExpiration` method.
101
129
@@ -137,42 +165,49 @@ You use the [.NET command-line interface (CLI)](/dotnet/core/tools/) to create a
137
165
138
166
## Build and run the app locally
139
167
140
-
1. Set an environment variable named **ConnectionString**, and set it to the access key to your App Configuration store. At the command line, run the following command.
### [Microsoft Entra ID (recommended)](#tab/entra-id)
171
+
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.
143
172
144
-
To build and run the app locally using the Windows command prompt, run the following command.
173
+
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
Set the environment variable named **ConnectionString** to the read-only connection string of your App Configuration store found under *Access keys* of your store in the Azure portal.
161
193
162
-
If you use macOS, run the following command.
194
+
If you use the Windows command prompt, run the following command and restart the command prompt to allow the change to take effect:
0 commit comments