- Create an App Configuration Store
- Add a feature Manager
- Set the percentage filter
-
To create a new App Configuration store, sign in to the Azure portal. In the upper-left corner of the home page, select Create a resource. In the Search the Marketplace box, enter App Configuration and select Enter.
-
Select App Configuration from the search results, and then select Create.
-
On the Create App Configuration pane, enter the following settings:
Setting Suggested value Description Subscription Your subscription Select the Azure subscription that you used for the rest of the workshop. Resource group Workshop resource Group Use the same workshop resource group for your App Configuration store resource. Resource name Globally unique name Enter a unique resource name to use for the App Configuration store resource. The name must be a string between 5 and 50 characters and contain only numbers, letters, and the -
character. The name can't start or end with the-
character.Location Workshop location Use the same workshop location as the other components of your application. Pricing tier Free Select the desired pricing tier. For more information, see the App Configuration pricing page. -
Select Review + create to validate your settings.
-
Select Create. The deployment might take a few minutes.
-
After the deployment finishes, navigate to the App Configuration resource. Select Settings > Access keys. Find the primary read-only key connection string. You'll use this connection string later to configure your application to communicate with the App Configuration store that you created.
-
Select Operations > Feature manager > Add to add a feature flag called Beta.
Leave Label empty for now. Select Apply to save the new feature flag.
-
Click on the ellipsis on the right, and select Advanced Edit. Paste this in to the dialog and Select Apply to save the new feature flag:
{
"id": "Beta",
"description": "",
"enabled": true,
"conditions": {
"client_filters": [
{
"name": "Microsoft.Percentage",
"parameters": {
"Value": 50
}
}
]
}
}
This sets up a feature flag with the percentage filter, meaning 50% of users will see a new feature and 50% of users will not.