Skip to content

Commit 3de2a0a

Browse files
update
1 parent 00568f8 commit 3de2a0a

29 files changed

+59
-47
lines changed

articles/azure-app-configuration/enable-dynamic-configuration-aspnet-netfx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this tutorial, you learn how to:
2424
## Prerequisites
2525

2626
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
27-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
27+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
2828
- [Visual Studio](https://visualstudio.microsoft.com/vs)
2929
- [.NET Framework 4.7.2 or later](https://dotnet.microsoft.com/download/dotnet-framework)
3030

articles/azure-app-configuration/enable-dynamic-configuration-dotnet-background-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ In this tutorial, you learn how to:
2626
## Prerequisites
2727

2828
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
29-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
29+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
3030
- [.NET SDK 6.0 or later](https://dotnet.microsoft.com/download) - also available in the [Azure Cloud Shell](https://shell.azure.com).
3131

3232
## Add a key-value

articles/azure-app-configuration/enable-dynamic-configuration-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this tutorial, you learn how to:
2424
## Prerequisites
2525

2626
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
27-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
27+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
2828
- [Visual Studio](https://visualstudio.microsoft.com/vs)
2929
- [.NET Framework 4.7.2 or later](https://dotnet.microsoft.com/download/dotnet-framework)
3030

articles/azure-app-configuration/how-to-targetingfilter-javascript.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ In this guide, you'll use the targeting filter to roll out a feature to targeted
1717
## Prerequisites
1818

1919
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
20-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
21-
A _Beta_ feature flag with targeting filter. [Create the feature flag](./howto-targetingfilter.md).
20+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
21+
- A _Beta_ feature flag with targeting filter. [Create the feature flag](./howto-targetingfilter.md).
2222
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule).
2323

2424
## Create a web application with a feature flag
@@ -70,6 +70,7 @@ In this section, you create a web application that uses the [_Beta_ feature flag
7070
let featureManager;
7171
7272
async function initializeConfig() {
73+
// Load feature flags from App Configuration.
7374
appConfig = await load(appConfigEndpoint, new DefaultAzureCredential(), {
7475
featureFlagOptions: {
7576
enabled: true,
@@ -79,8 +80,9 @@ In this section, you create a web application that uses the [_Beta_ feature flag
7980
}
8081
});
8182
82-
const ffProvider = new ConfigurationMapFeatureFlagProvider(appConfig);
83-
featureManager = new FeatureManager(ffProvider);
83+
// Create feature manager with feature flag provider that accesses feature flags from App Configuration.
84+
featureManager = new FeatureManager(
85+
new ConfigurationMapFeatureFlagProvider(appConfig));
8486
}
8587
8688
// Use a middleware to refresh the configuration before each request.
@@ -183,9 +185,11 @@ You use ambient targeting context in this tutorial.
183185
1. When constructing the `FeatureManager`, pass the targeting context accessor to the `FeatureManagerOptions`.
184186
185187
```js
186-
featureManager = new FeatureManager(ffProvider, {
187-
targetingContextAccessor: targetingContextAccessor
188-
});
188+
featureManager = new FeatureManager(
189+
new ConfigurationMapFeatureFlagProvider(appConfig),
190+
{
191+
targetingContextAccessor: targetingContextAccessor
192+
});
189193
```
190194
191195
After completing the previous steps, your _app.js_ file should now contain the following complete implementation.
@@ -230,6 +234,7 @@ let appConfig;
230234
let featureManager;
231235
232236
async function initializeConfig() {
237+
// Load feature flags from App Configuration.
233238
appConfig = await load(appConfigEndpoint, new DefaultAzureCredential(), {
234239
featureFlagOptions: {
235240
enabled: true,
@@ -239,10 +244,12 @@ async function initializeConfig() {
239244
}
240245
});
241246
242-
const ffProvider = new ConfigurationMapFeatureFlagProvider(appConfig);
243-
featureManager = new FeatureManager(ffProvider, {
244-
targetingContextAccessor: targetingContextAccessor
245-
});
247+
// Create feature manager with feature flag provider that accesses feature flags from App Configuration and targeting context accessor.
248+
featureManager = new FeatureManager(
249+
new ConfigurationMapFeatureFlagProvider(appConfig),
250+
{
251+
targetingContextAccessor: targetingContextAccessor
252+
});
246253
}
247254
248255
// Use a middleware to refresh the configuration before each request
@@ -311,7 +318,7 @@ initializeConfig()
311318
312319
:::image type="content" source="media/how-to-targetingfilter-javascript/beta-disabled.png" alt-text="Screenshot of the app, showing the default greeting message.":::
313320
314-
1. Use `userId` query parameter in the url to specify the user ID. Visit `localhost:8080/[email protected]`. You see the beta page, because `[email protected]` is specified as a targeted user.
321+
1. 1. Add `userId` as a query parameter in the URL to specify the user ID. Visit `localhost:8080/[email protected]`. You see the beta page, because `[email protected]` is specified as a targeted user.
315322
316323
:::image type="content" source="media/how-to-targetingfilter-javascript/beta-enabled.png" alt-text="Screenshot of the app, showing the beta page.":::
317324

articles/azure-app-configuration/howto-chat-completion-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Chat completion is an AI capability that enables models to generate conversation
1616

1717
## Prerequisites
1818
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free)
19-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
19+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
2020

2121
## Create a chat completion configuration
2222

articles/azure-app-configuration/howto-create-snapshots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this article, learn how to create, use and manage snapshots in Azure App Conf
1414

1515
## Prerequisites
1616

17-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
17+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
1818
- "DataOwner" role in the App Configuration store. Details on required [role and permissions for snapshots](./concept-snapshots.md)
1919

2020
### Add key-values to the App configuration store

articles/azure-app-configuration/howto-feature-filters-javascript.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ You've added a custom feature filter named **Random** with a **Percentage** para
4848
1. Register the `RandomFilter` when creating the `FeatureManager`.
4949

5050
``` javascript
51-
const fm = new FeatureManager(ffProvider, {customFilters: [new RandomFilter()]});
51+
const fm = new FeatureManager(
52+
new ConfigurationMapFeatureFlagProvider(appConfig),
53+
{
54+
customFilters: [new RandomFilter()]
55+
});
5256
```
5357

5458
## Feature filter in action

articles/azure-app-configuration/howto-leverage-json-content-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ In this tutorial, you'll learn how to:
6262

6363
[!INCLUDE [azure-cli-prepare-your-environment.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment.md)]
6464

65-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
65+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
6666
- This tutorial requires version 2.10.0 or later of the Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
6767

6868
## Create JSON key-values in App Configuration

articles/azure-app-configuration/howto-targetingfilter-aspnet-core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ In this guide, you'll use the targeting filter to roll out a feature to targeted
1919
## Prerequisites
2020

2121
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/).
22-
- An App Configuration store. [Create a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
22+
- An App Configuration store, as shown in the [tutorial for creating a store](./quickstart-azure-app-configuration-create.md#create-an-app-configuration-store).
2323
- A feature flag with targeting filter. [Create the feature flag](./howto-targetingfilter.md).
2424
- [.NET SDK 6.0 or later](https://dotnet.microsoft.com/download).
2525

articles/azure-app-configuration/howto-timewindow-filter-javascript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ You've added a time window filter for your *Beta* feature flag in the prerequisi
2929
When you create a feature manager, the built-in feature filters are automatically added to its feature filter collection.
3030

3131
``` javascript
32-
const fm = new FeatureManager(ffProvider);
32+
const fm = new FeatureManager(
33+
new ConfigurationMapFeatureFlagProvider(appConfig));
3334
```
3435

3536
## Time window filter in action

0 commit comments

Comments
 (0)