Skip to content

Commit 0893d7c

Browse files
committed
Add recurrence
1 parent f23342e commit 0893d7c

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

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

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,56 @@
11
---
22
title: Enable features on a schedule
33
titleSuffix: Azure App Configuration
4-
description: Learn how to enable feature flags on a schedule.
4+
description: Learn how to enable feature flags on a schedule using time window filters in Azure App Configuration.
55
ms.service: azure-app-configuration
66
ms.devlang: csharp
77
author: zhiyuanliang-ms
88
ms.author: zhiyuanliang
99
ms.topic: how-to
10-
ms.date: 03/26/2024
10+
ms.date: 10/31/2024
11+
#customer intent: As an application developer, I want to enable a recurring time window filter in a feature flag so that I can enable or disable features on a schedule.
1112
---
1213

13-
# Tutorial: Enable features on a schedule
14+
# Enable features on a schedule
1415

1516
[Feature filters](./howto-feature-filters.md#what-is-a-feature-filter) allow a feature flag to be enabled or disabled conditionally. The time window filter is one of the feature management library's built-in feature filters. It allows you to turn on or off a feature on a schedule. For example, when you have a new product announcement, you can use it to unveil a feature automatically at a planned time. You can also use it to discontinue a promotional discount as scheduled after the marketing campaign ends.
1617

17-
In this article, you will learn how to add and configure a time window filter for your feature flags.
18+
In this article, you learn how to add and configure a time window filter for your feature flags.
1819

1920
## Add a time window filter
2021

21-
1. Create a feature flag named *Beta* in your App Configuration store and open to edit it. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md).
22+
1. Create a feature flag named *Beta* in the **Feature Manager** menu of your App Configuration store and move to the right end of the feature flag you want to modify, then select the **More actions** ellipsis (**...**) action and **Edit**. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md).
2223

23-
1. In the **Edit feature flag** pane that opens, check the **Enable feature flag** checkbox if it isn't already enabled. Then check the **Use feature filter** checkbox and select **Create**.
24+
1. In the **Edit** pane that opens, check the **Enable feature flag** checkbox if it isn't already enabled. Then check the **Use feature filter** checkbox and select **Create**.
2425

25-
> [!div class="mx-imgBorder"]
26-
> ![Screenshot of the Azure portal, filling out the form 'Edit feature flag'.](./media/feature-filters/edit-a-feature-flag.png)
26+
:::image type="content" source="media/feature-filters/edit-a-feature-flag.png" alt-text="Screenshot of the Azure portal showing how to edit a feature flag.":::
2727

2828
1. The pane **Create a new filter** opens. Under **Filter type**, select the **Time window filter** in the dropdown.
2929

30-
> [!div class="mx-imgBorder"]
31-
> ![Screenshot of the Azure portal, creating a new time window filter.](./media/feature-filters/add-timewindow-filter.png)
30+
:::image type="content" source="media/feature-filters/add-timewindow-filter.png" alt-text="Screenshot of the Azure portal showing time window feature filter configuration.":::
3231

33-
1. A time window filter includes two parameters: start and expiry date. Set the **Start date** to **Custom** and select a time a few minutes ahead of your current time. Set the **Expiry date** to **Never**. In this example, you schedule the *Beta* feature to be enabled automatically at a future time, and it will never be disabled once enabled.
32+
1. A time window filter includes a start time and/or an end time. The start time indicates when the feature flag is activated, and the end time indicates when the flag is deactivated. Both **Start time** and **End time** checkboxes are checked by default. Enter a start time a few minutes ahead of your current time and enter an end time.
3433

35-
1. Select **Add** to save the configuration of the time window filter and return to the **Edit feature flag** screen.
34+
> [!TIP]
35+
> If you don't want the feature flag to automatically deactivate, uncheck the **End time** box and it will never be disabled.
36+
37+
1. A time zone is selected by default, based on your browser's current time zone. Optionally select another time zone.
38+
39+
1. Select the **Enable recurrence** checkbox to set up a recurring schedule for the feature flag. This allows you to automate the activation and deactivation of the feature flag based on a specified pattern. Choose a daily or weekly frequency, the specific days, and the expiration time.
40+
41+
> [!NOTE]
42+
> Both start time and end time must be set when recurrence is enabled.
3643
37-
1. The time window filter is now listed in the feature flag details. Select **Apply** to save the feature flag.
44+
> [!TIP]
45+
> Use the recurrence feature to manage feature flags that need to be enabled or disabled on a regular schedule, such as during periods of low or high traffic.
46+
47+
:::image type="content" source="media/feature-filters/add-timewindow-filter-recurrence.png" alt-text="Screenshot of the Azure portal showing feature filter recurrence.":::
48+
49+
1. Select **Add** to save the configuration of the time window filter and return to the **Edit feature flag** screen.
3850

39-
> [!div class="mx-imgBorder"]
40-
> ![Screenshot of the Azure portal, applying new time window filter.](./media/feature-filters/feature-flag-edit-apply-timewindow-filter.png)
51+
1. The time window filter is now listed in the feature filter details, under **Feature filters**. Select **Apply** to save the feature flag with the new feature filter.
4152

42-
Now, you successfully added a time window filter to a feature flag. Follow the instructions in the [Next Steps](#next-steps) section to learn how it works in your application for the language or platform you are using.
53+
For more information about the time window feature filter, refer to the [Microsoft.TimeWindow feature reference](/azure/azure-app-configuration/feature-management-dotnet-reference?pivots=stable-version).
4354

4455
## Next steps
4556

15 KB
Loading
37.4 KB
Loading

0 commit comments

Comments
 (0)