Skip to content

Commit efb75e7

Browse files
authored
Merge pull request #243848 from ChristineWanjau/cwanjau/updateTargetingFilterDocs
Update targeting filter docs
2 parents 3ea1fba + f41067f commit efb75e7

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

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

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,19 @@ The entire *ConfigureServices* method will look like this:
136136
137137
1. In the **Edit** screen, select the **Enable feature flag** checkbox if it isn't already selected. Then select the **Use feature filter** checkbox.
138138

139-
1. Select the **Targeting** radio button.
139+
1. Select the **Create** button.
140+
141+
1. Select the **Targeting filter** in the filter type dropdown.
142+
143+
1. Select the **Override by Groups** and **Override by Users** checkbox.
140144

141145
1. Select the following options:
142146

143147
- **Default percentage**: 0
144-
- **Groups**: Enter a **Name** of _contoso.com_ and a **Percentage** of _50_
145-
- **Users**: `[email protected]`
148+
- **Include Groups**: Enter a **Name** of _contoso.com_ and a **Percentage** of _50_
149+
- **Exclude Groups**: `contoso-xyz.com`
150+
- **Include Users**: `[email protected]`
151+
- **Exclude Users**: `[email protected]`
146152

147153
The feature filter screen will look like this:
148154

@@ -151,10 +157,14 @@ The entire *ConfigureServices* method will look like this:
151157
152158
These settings result in the following behavior:
153159

154-
- The feature flag is always enabled for user `[email protected]`, because `[email protected]` is listed in the _Users_ section.
155-
- The feature flag is enabled for 50% of other users in the _contoso.com_ group, because _contoso.com_ is listed in the _Groups_ section with a _Percentage_ of _50_.
160+
- The feature flag is always disabled for user `[email protected]`, because `[email protected]` is listed in the _Exclude Users_ section.
161+
- The feature flag is always disabled for users in the `contoso-xyz.com`, because `contoso-xyz.com` is listed in the _Exclude Groups_ section.
162+
- The feature flag is always enabled for user `[email protected]`, because `[email protected]` is listed in the _Include Users_ section.
163+
- The feature flag is enabled for 50% of users in the _contoso.com_ group, because _contoso.com_ is listed in the _Include Groups_ section with a _Percentage_ of _50_.
156164
- The feature is always disabled for all other users, because the _Default percentage_ is set to _0_.
157165

166+
1. Select **Add** to save the targeting filter.
167+
158168
1. Select **Apply** to save these settings and return to the **Feature manager** screen.
159169

160170
1. The **Feature filter** for the feature flag now appears as *Targeting*. This state indicates that the feature flag will be enabled or disabled on a per-request basis, based on the criteria enforced by the *Targeting* feature filter.
@@ -165,12 +175,16 @@ To see the effects of this feature flag, build and run the application. Initiall
165175

166176
Now sign in as `[email protected]`, using the password you set when registering. The *Beta* item now appears on the toolbar, because `[email protected]` is specified as a targeted user.
167177

178+
Now sign in as `[email protected]`, using the password you set when registering. The *Beta* item doesn't appear on the toolbar, because `[email protected]` is specified as an excluded user.
179+
168180
The following video shows this behavior in action.
169181

170182
> [!div class="mx-imgBorder"]
171183
> ![TargetingFilter in action](./media/feature-flags-targetingfilter.gif)
172184
173-
You can create additional users with `@contoso.com` email addresses to see the behavior of the group settings. 50% of these users will see the *Beta* item. The other 50% won't see the *Beta* item.
185+
You can create additional users with `@contoso.com` and `@contoso-xyz.com` email addresses to see the behavior of the group settings.
186+
187+
Users with `contoso-xyz.com` email addresses will not see the *Beta* item. While 50% of users with `@contoso.com` email addresses will see the *Beta* item, the other 50% won't see the *Beta* item.
174188

175189
## Next steps
176190

-12.2 KB
Loading
-95 KB
Loading

0 commit comments

Comments
 (0)