Edit

Share via


Quickstart: Manage feature flags in Azure App Configuration

Azure App Configuration provides feature management through feature flags, enabling teams to dynamically control application functionality without redeploying code. This allows for safe, targeted rollouts, faster experimentation, and reduced risk, giving developers flexible control over app behavior and the ability to respond quickly to changing business or customer needs.

The feature manager in the Azure portal provides a UI for creating and managing the feature flags that you use in your applications.

Prerequisites

Create a feature flag

Create a new feature flag in the Azure portal by following the steps below.

  1. Open your Azure App Configuration store in the Azure portal. In the resource menu, under Operations, select Feature manager > Create.

    Screenshot of the Azure portal that shows the Create feature flag feature.

  2. Under What will you be using your feature flag for?, choose one of the following purposes:

    • Switch – Toggle features on/off with a simple switch. Use for short-lived operational toggles and scenarios where a single on/off control is sufficient.
    • Rollout – Gradually enable the feature for a percentage of users. Use for gradual feature releases to reduce risk, and for canary or staged rollouts across environments or user segments.
    • Experiment – Run controlled experiments with traffic allocation to determine the best-performing variant. Use for A/B testing, multivariate experiments, or metric-driven feature evaluation,, and other scenarios requiring statistical comparison.

    Use Switch to enable or disable functionality instantly for all users.

    1. Configure Basics to set the core properties of your feature flag.

      Setting Example value Description
      Enable feature flag Toggle on This option enables the feature flag upon creation. If you toggle this off, the new feature flag's configuration is saved but the new feature flag remains disabled.
      Feature flag name Beta The feature flag name is what you use to reference the flag in your code. It must be unique within an application.
      Key Beta You can use the key to filter feature flags that are loaded in your application. The key is generated from the feature flag name by default, but you can also add a prefix or a namespace to group your feature flags, for example, .appconfig.featureflag/Beta.
      Label Leave empty You can use labels to create different feature flags for the same key and filter flags loaded in your application based on the label. By default, a feature flag has no label.
      Description Leave empty Leave empty or enter a description for your feature flag.

      Screenshot of the Azure portal that shows the Create feature flag feature - Switch option.

    2. Configure Telemetry to collect evaluation events for this feature flag. When enabled, evaluation events are sent to the telemetry publisher you configure in your application. Before enabling telemetry, link an Application Insights resource to the App Configuration store in Telemetry > App Insights.

    3. Select Review + create to see a summary of your new feature flag, and then select Create to finalize your operation. A notification indicates that the new feature flag was created successfully.

Edit feature flags

To update a feature flag, follow these steps:

Screenshot of the Azure platform. Edit a feature flag.

  1. In the resource menu, go to Operations > Feature manager.

  2. Move to the right end of the feature flag you want to modify and select the More actions ellipsis (...). From this menu, you can view feature flag details, edit the flag, lock or unlock it, create a label, update tags, review the history, or delete the flag.

  3. Select Edit to make changes using the visual editor, or Advanced Edit to modify the flag's raw JSON directly.

  4. Optionally change the state of the feature flag by turning on or turning off the Enabled toggle.

Manage view

The Feature manager menu displays the feature flags stored in Azure App Configuration. You can change the Feature manager display in the Azure portal by selecting Manage view.

  • Settings lets you choose how many feature flags are loaded per Load more action. Load more will only be visible if there are more than 200 feature flags.

  • Edit Columns lets you add or remove columns and change the column order.

    Screenshot of the Azure platform. Manage feature flags view.

Feature flags created with the Feature manager are stored as regular key-values. They're kept with the special prefix .appconfig.featureflag/ and content type application/vnd.microsoft.appconfig.ff+json;charset=utf-8.

To view the underlying key-values of feature flags in Configuration explorer, follow the steps below.

  1. In the resource menu, select Operations > Configuration explorer, then select Manage view > Settings.

    Screenshot of the Azure platform. Include feature flags in Configuration explorer.

  2. Select Include feature flags in the configuration explorer and Apply.

To start using feature flags with Azure App Configuration, continue to the following quickstarts specific to your application’s language or platform.