WebApp:can't recognize "|" character correctly in “az webapp create” command in powershell
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
following command works well in cmd window but fails in powershell
az login
az configure --defaults group="
run following command in powershell:
az login
az configure --defaults group="
Expected behavior
a webapp hosted .net core app should be created successfully. Environment summary
az --version
azure-cli 2.14.1
core 2.14.1 telemetry 1.0.6
Extensions: application-insights 0.1.11 azure-iot 0.10.3 Additional context
it looks like a powershell issue but my suggestion is not using "|" character in the string.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
webapp
hi @hanhsia could you pls does this https://github.com/Azure/azure-cli/blob/dev/doc/quoting-issues-with-powershell.md#workaround-the-stop-parsing-symbol work for you?
You can solve this by "double escaping" in powershell.
--runtime '"node|12-lts"'
Working example:
az webapp create --name "$FrontendAppName" --resource-group "$ResourceGroup" --plan $Plan --runtime '"node|12-lts"'
yes, i use this way to workaround it. The doc is great.
happy to see if works for you. :) is it ok to close the issue?
sure, please close it.