从命令行 运行 az appconfig 时出错

error when running az appconfig from command line

当 运行 az appconfig

时出现以下错误

az appconfig kv export: error: the following arguments are required: --destination/-d

az appconfig kv export -f bin\Debug\netcoreapp2.1\azureappconfig.json --format json --separator : --connection-string Endpoint=https://tvtestappconfig.azconfig.io;Id=fwef34rw432r32f43;Secret=123412341234123412344=

Extensions: appconfig 0.5.0

我正在按照此 link 中的说明进行操作 https://docs.microsoft.com/en-us/azure/azure-app-configuration/integrate-ci-cd-pipeline

您似乎正在尝试导出到文件。在这种情况下,您需要传递 -d file--destination file 的缩写)。

az appconfig kv export --destination file -f bin\Debug\netcoreapp2.1\azureappconfig.json --format json --separator : --connection-string {ConnectionString}