Skip to content

Commit b5841a2

Browse files
Merge pull request #285384 from zhiyuanliang-ms/zhiyuanliang/remove-configuration-reference
Azure App Configuration - Update variant feature flag
2 parents 680394a + 8cc4715 commit b5841a2

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

articles/azure-app-configuration/feature-management-dotnet-reference.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ Compared to normal feature flags, variant feature flags have two additional prop
11311131

11321132
#### Defining Variants
11331133

1134-
Each variant has two properties: a name and a configuration. The name is used to refer to a specific variant, and the configuration is the value of that variant. The configuration can be set using either the `configuration_reference` or `configuration_value` properties. `configuration_reference` is a string path that references a section of the current configuration that contains the feature flag declaration. `configuration_value` is an inline configuration that can be a string, number, boolean, or configuration object. If both are specified, `configuration_value` is used. If neither are specified, the returned variant's `Configuration` property will be null.
1134+
Each variant has two properties: a name and a configuration. The name is used to refer to a specific variant, and the configuration is the value of that variant. The configuration can be set using `configuration_value` property. `configuration_value` is an inline configuration that can be a string, number, boolean, or configuration object. If `configuration_value` is not specified, the returned variant's `Configuration` property will be null.
11351135
11361136
A list of all possible variants is defined for each feature under the `variants` property.
11371137
@@ -1144,7 +1144,9 @@ A list of all possible variants is defined for each feature under the `variants`
11441144
"variants": [
11451145
{
11461146
"name": "Big",
1147-
"configuration_reference": "ShoppingCart:Big"
1147+
"configuration_value": {
1148+
"Size": 500
1149+
}
11481150
},
11491151
{
11501152
"name": "Small",
@@ -1155,17 +1157,6 @@ A list of all possible variants is defined for each feature under the `variants`
11551157
]
11561158
}
11571159
]
1158-
},
1159-
1160-
"ShoppingCart": {
1161-
"Big": {
1162-
"Size": 600,
1163-
"Color": "green"
1164-
},
1165-
"Small": {
1166-
"Size": 300,
1167-
"Color": "gray"
1168-
}
11691160
}
11701161
}
11711162
```
@@ -1206,7 +1197,7 @@ The process of allocating a feature's variants is determined by the `allocation`
12061197
"variants": [
12071198
{
12081199
"name": "Big",
1209-
"configuration_reference": "ShoppingCart:Big"
1200+
"configuration_value": "500px"
12101201
},
12111202
{
12121203
"name": "Small",

0 commit comments

Comments
 (0)