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/concept-customer-managed-keys.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Use customer-managed keys to encrypt your configuration data
3
3
description: Encrypt your configuration data using customer-managed keys
4
4
author: maud-lv
5
5
ms.author: malev
6
-
ms.date: 08/30/2022
6
+
ms.date: 02/20/2024
7
7
ms.custom: devdivchpfy22, devx-track-azurecli
8
8
ms.topic: conceptual
9
9
ms.service: azure-app-configuration
@@ -38,21 +38,9 @@ After these resources are configured, use the following steps so that the Azure
38
38
1. Assign a managed identity to the Azure App Configuration instance.
39
39
1. Grant the identity `GET`, `WRAP`, and `UNWRAP` permissions in the target Key Vault's access policy.
40
40
41
-
## Enable customer-managed key encryption for your Azure App Configuration instance
41
+
## Enable customer-managed key encryption for your App Configuration store
42
42
43
-
To begin, you'll need a properly configured Azure App Configuration instance. If you don't yet have an App Configuration instance available, follow one of these quickstarts to set one up:
44
-
45
-
-[Create an ASP.NET Core app with Azure App Configuration](quickstart-aspnet-core-app.md)
46
-
-[Create a .NET Core app with Azure App Configuration](quickstart-dotnet-core-app.md)
47
-
-[Create a .NET Framework app with Azure App Configuration](quickstart-dotnet-app.md)
48
-
-[Create a Java Spring app with Azure App Configuration](quickstart-java-spring-app.md)
49
-
-[Create a JavaScript app with Azure App Configuration](quickstart-javascript.md)
50
-
-[Create a Python app with Azure App Configuration](quickstart-python.md)
51
-
52
-
> [!TIP]
53
-
> The Azure Cloud Shell is a free interactive shell that you can use to run the command line instructions in this article. It has common Azure tools preinstalled, including the .NET Core SDK. If you are logged in to your Azure subscription, launch your [Azure Cloud Shell](https://shell.azure.com) from shell.azure.com. You can learn more about Azure Cloud Shell by [reading our documentation](../cloud-shell/overview.md).
54
-
55
-
### Create and configure an Azure Key Vault
43
+
1.[Create an App Configuration store](./quickstart-azure-app-configuration-create.md) if you don't have one.
56
44
57
45
1. Create an Azure Key Vault by using the Azure CLI. Both `vault-name` and `resource-group-name` are user-provided and must be unique. We use `contoso-vault` and `contoso-resource-group` in these examples.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/concept-feature-management.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: malev
6
6
ms.service: azure-app-configuration
7
7
ms.custom: devdivchpfy22
8
8
ms.topic: conceptual
9
-
ms.date: 08/17/2022
9
+
ms.date: 02/20/2024
10
10
---
11
11
12
12
# Feature management overview
@@ -74,7 +74,7 @@ To use feature flags effectively, you need to externalize all the feature flags
74
74
75
75
Azure App Configuration provides a centralized repository for feature flags. You can use it to define different kinds of feature flags and manipulate their states quickly and confidently. You can then use the App Configuration libraries for various programming language frameworks to easily access these feature flags from your application.
76
76
77
-
[The feature flags in an ASP.NET Core app](./use-feature-flags-dotnet-core.md) shows how the .NET Core App Configuration provider and Feature Management libraries are used together to implement feature flags for your ASP.NET web application. For more information on feature flags in Azure App Configuration, see the following articles:
77
+
[The feature flags in an ASP.NET Core app](./use-feature-flags-dotnet-core.md) shows how the App Configuration .NET provider and Feature Management libraries are used together to implement feature flags for your ASP.NET web application. For more information on feature flags in Azure App Configuration, see the following articles:
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/concept-point-time-snapshot.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ You can use the Azure portal or the Azure CLI to retrieve past key-values.
28
28
:::image type="content" source="media/restore-key-value-portal.png" alt-text="Screenshot of the Azure portal, selecting restore":::
29
29
30
30
3. Select **Date: Select date** to select a date and time you want to revert to.
31
-
4. Click outside of the date and time fields or press **Tab** to validate your choice. You can now see which keyvalues have changed between your selected date and time and the current time. This step helps you understand what keys and values you're preparing to revert to.
31
+
4. Click outside of the date and time fields or press **Tab** to validate your choice. You can now see which key-values have changed between your selected date and time and the current time. This step helps you understand what keys and values you're preparing to revert to.
32
32
33
33
:::image type="content" source="media/restore-key-value-past-values.png" alt-text="Screenshot of the Azure portal with saved key-values":::
The `Select` methodisusedtoloadallkey-valueswhosekeynamestartswith *TestApp:*andthathave*nolabel*. Youcancallthe `Select` methodmorethanoncetoloadconfigurationswithdifferentprefixesorlabels. IfyoushareoneAppConfigurationstorewithmultipleapps, thisapproachhelpsloadconfigurationonlyrelevanttoyourcurrentappinsteadofloadingeverythingfromyourstore.
84
54
85
55
Inthe `ConfigureRefresh` method, youregisterkeysyouwanttomonitorfor changes in your App Configuration store. The `refreshAll` parameter to the `Register` method indicates that all configurations you specified by the `Select` method will be reloaded if the registered key changes.
@@ -89,7 +59,6 @@ A *sentinel key* is a key that you update after you complete the change of all o
89
59
90
60
1. Add Azure App Configuration middleware to the service collection of your app.
91
61
92
-
#### [.NET 6.0+](#tab/core6x)
93
62
Update *Program.cs* with the following code.
94
63
95
64
```csharp
@@ -110,26 +79,8 @@ A *sentinel key* is a key that you update after you complete the change of all o
// Use Azure App Configuration middleware for dynamic configuration refresh.
171
-
app.UseAzureAppConfiguration();
172
-
173
-
app.UseHttpsRedirection();
174
-
app.UseStaticFiles();
175
-
176
-
app.UseRouting();
177
-
178
-
app.UseAuthorization();
179
-
180
-
app.UseEndpoints(endpoints=>
181
-
{
182
-
endpoints.MapRazorPages();
183
-
});
184
-
}
185
-
```
186
-
---
187
-
188
105
You've set up your app to use the [options pattern in ASP.NET Core](/aspnet/core/fundamentals/configuration/options) during the quickstart. When the underlying configuration of your app is updated from App Configuration, your strongly typed `Settings` object obtained via `IOptionsSnapshot<T>` is updated automatically. Note that you shouldn'tusethe `IOptions<T>` ifdynamicconfigurationupdateisdesiredbecauseitdoesn'treadconfigurationdataaftertheapphasstarted.
189
106
190
107
## Request-driven configuration refresh
@@ -197,7 +114,7 @@ The configuration refresh is triggered by the incoming requests to your web app.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/enable-dynamic-configuration-dotnet-core-push-refresh.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,40 +1,40 @@
1
1
---
2
-
title: "Tutorial: Use dynamic configuration using push refresh in a .NET Core app"
2
+
title: "Tutorial: Use dynamic configuration using push refresh in a .NET app"
3
3
titleSuffix: Azure App Configuration
4
-
description: In this tutorial, you learn how to dynamically update the configuration data for .NET Core apps using push refresh
4
+
description: In this tutorial, you learn how to dynamically update the configuration data for .NET apps using push refresh
5
5
services: azure-app-configuration
6
6
author: MBSolomon
7
7
manager: zhenlan
8
8
ms.service: azure-app-configuration
9
9
ms.devlang: csharp
10
10
ms.custom: devx-track-dotnet
11
11
ms.topic: tutorial
12
-
ms.date: 02/03/2022
13
-
ms.author: msolomon
12
+
ms.date: 02/20/2024
13
+
ms.author: malev
14
14
#Customer intent: I want to use push refresh to dynamically update my app to use the latest configuration data in App Configuration.
15
15
---
16
-
# Tutorial: Use dynamic configuration using push refresh in a .NET Core app
16
+
# Tutorial: Use dynamic configuration using push refresh in a .NET app
17
17
18
-
The App Configuration .NET Core client library supports updating configuration on demand without causing an application to restart. An application can be configured to detect changes in App Configuration using one or both of the following two approaches.
18
+
The App Configuration .NET client library supports updating configuration on demand without causing an application to restart. An application can be configured to detect changes in App Configuration using one or both of the following two approaches.
19
19
20
20
1. Poll Model: This is the default behavior that uses polling to detect changes in configuration. Once the cached value of a setting expires, the next call to `TryRefreshAsync` or `RefreshAsync` sends a request to the server to check if the configuration has changed, and pulls the updated configuration if needed.
21
21
22
22
1. Push Model: This uses [App Configuration events](./concept-app-configuration-event.md) to detect changes in configuration. Once App Configuration is set up to send key value change events to Azure Event Grid, the application can use these events to optimize the total number of requests needed to keep the configuration updated. Applications can choose to subscribe to these either directly from Event Grid, or through one of the [supported event handlers](../event-grid/event-handlers.md) such as a webhook, an Azure function, or a Service Bus topic.
23
23
24
-
This tutorial shows how you can implement dynamic configuration updates in your code using push refresh. It builds on the app introduced in the tutorial. Before you continue, finish Tutorial: [Use dynamic configuration in a .NET Core app](./enable-dynamic-configuration-dotnet-core.md) first.
24
+
This tutorial shows how you can implement dynamic configuration updates in your code using push refresh. It builds on the app introduced in the tutorial. Before you continue, finish Tutorial: [Use dynamic configuration in a .NET app](./enable-dynamic-configuration-dotnet-core.md) first.
25
25
26
26
You can use any code editor to do the steps in this tutorial. [Visual Studio Code](https://code.visualstudio.com/) is an excellent option that's available on the Windows, macOS, and Linux platforms.
27
27
28
28
In this tutorial, you learn how to:
29
29
> [!div class="checklist"]
30
30
>
31
31
> * Set up a subscription to send configuration change events from App Configuration to a Service Bus topic
32
-
> * Set up your .NET Core app to update its configuration in response to changes in App Configuration.
32
+
> * Set up your .NET app to update its configuration in response to changes in App Configuration.
33
33
> * Consume the latest configuration in your application.
34
34
35
35
## Prerequisites
36
36
37
-
* Tutorial: [Use dynamic configuration in a .NET Core app](./enable-dynamic-configuration-dotnet-core.md)
37
+
* Tutorial: [Use dynamic configuration in a .NET app](./enable-dynamic-configuration-dotnet-core.md)
38
38
* NuGet package `Microsoft.Extensions.Configuration.AzureAppConfiguration` version 5.0.0 or later
39
39
40
40
## Set up Azure Service Bus topic and subscription
@@ -171,7 +171,7 @@ The `ProcessPushNotification` method resets the cache expiration to a short rand
171
171
172
172
The short random delay for cache expiration is helpful if you have many instances of your application or microservices connecting to the same App Configuration store with the push model. Without this delay, all instances of your application could send requests to your App Configuration store simultaneously as soon as they receive a change notification. This can cause the App Configuration Service to throttle your store. Cache expiration delay is set to a random number between 0 and a maximum of 30 seconds by default, but you can change the maximum value through the optional parameter `maxDelay` to the `ProcessPushNotification` method.
173
173
174
-
The `ProcessPushNotification` method takes in a `PushNotification` object containing information about which change in App Configuration triggered the push notfication. This helps ensure all configuration changes up to the triggering event are loaded in the following configuration refresh. The `SetDirty` method does not gurarantee the change that triggers the push notification to be loaded in an immediate configuration refresh. If you are using the `SetDirty` method for the push model, we recommend using the `ProcessPushNotification` method instead.
174
+
The `ProcessPushNotification` method takes in a `PushNotification` object containing information about which change in App Configuration triggered the push notification. This helps ensure all configuration changes up to the triggering event are loaded in the following configuration refresh. The `SetDirty` method does not guarantee the change that triggers the push notification to be loaded in an immediate configuration refresh. If you are using the `SetDirty` method for the push model, we recommend using the `ProcessPushNotification` method instead.
175
175
176
176
## Build and run the app locally
177
177
@@ -243,7 +243,7 @@ The `ProcessPushNotification` method takes in a `PushNotification` object contai
243
243
244
244
## Next steps
245
245
246
-
In this tutorial, you enabled your .NET Core app to dynamically refresh configuration settings from App Configuration. To learn how to use an Azure managed identity to streamline the access to App Configuration, continue to the next tutorial.
246
+
In this tutorial, you enabled your .NET app to dynamically refresh configuration settings from App Configuration. To learn how to use an Azure managed identity to streamline the access to App Configuration, continue to the next tutorial.
0 commit comments