遇到“您的某些功能标志无效。请导航至高级编辑以了解更多详细信息。”应用程序配置错误

问题描述 投票:0回答:1

尝试在 Microsoft.Targeting 过滤器中添加新用户,但出现错误:“您的某些功能标志无效。请导航到高级编辑以了解更多详细信息。”

使用我的脚本高级编辑输出

预期结果(预期输出应类似于下面提供的屏幕截图):

Az Cli 命令:

az appconfig feature filter update --connection-string <<Endpoint Connection String here>> --feature featureA --filter-name Microsoft.Targeting --filter-parameters '"\"Audience\": {\"Users\": [\"user1\",\"user2\",\"user3\"],\"Groups\": [],\"DefaultRolloutPercentage\": 50}}"'

无法读取 Json 文件数据并将这些值传递给 --function-parameters value

filter azure-cli azure-app-configuration azure-feature-manager
1个回答
0
投票

添加过滤器参数的语法格式为

parameterName=value
。如果“值”是 JSON,则必须对其进行转义。有关这方面的更多信息,请参阅命令文档此处

因此,如果重写如下,该命令将按预期工作:

az appconfig feature filter update --connection-string <<Endpoint Connection String here>> --feature featureA --filter-name Microsoft.Targeting  --filter-parameters 'Audience={\"Users\": [\"user1\",\"user2\",\"user3\"],\"Groups\": [],\"DefaultRolloutPercentage\": 50}'

希望对您有帮助,谢谢!

© www.soinside.com 2019 - 2024. All rights reserved.