Can you please add some clarification on the format of key=value on the command line. How would I add the following:
message=Hello World
or
items=one;two;three
connection-string allows use of apostrophes on the value portion, but this does not work in appsettings. I have tried the following and all fail with 400 Client error.
az webapp config appsettings set -g MyGroup -n servername --settings ...
message=Hello World
message='Hello World'
"message=Hello World"
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
On windows use "name=value".
On nix, use 'name=value'
@yugangw-msft should this be added to the docs? I'm taking this up if nobody else is.
Can you also clarify the escape characters to use ? For example this doesn't work :
--settings "server-password=abcdexyz" -> Operation returned an invalid status code 'Bad Request'
Any idea ??
We have documented this, please see this, particularly the point 6, also the same command support to take json file through syntax of @<file>
We have documented this, please see this, particularly the point 6, also the same command support to take json file through syntax of
@<file>
Unfortunatly, it's not answering my question. I do use quotes for the settings argument, but what doesn't work is the '-' character. Maybe there is more characters making trouble, and using quotes doesn't help at all.
can you please run with --debug and tell me about the payload on the wire?
Most helpful comment
@yugangw-msft should this be added to the docs? I'm taking this up if nobody else is.