piouson
piouson

Reputation: 4555

How do you escape pipes '|' when using azure-cli from git bash

Ran into a problem when using azure-cli in Git Bash

The command:

az webapp create --name app-name --resource-group rg-name --plan plan-name --runtime "node|10.14"

Error:

'10.14' is not recognized as an internal or external command, operable program or batch file.

illustration shows error results as seen on Git Bash

Update: Found related issue https://github.com/Azure/azure-cli/issues/13866

Upvotes: 0

Views: 476

Answers (1)

Nancy Xiong
Nancy Xiong

Reputation: 28224

It's an odd thing. I tried this command in Bash of Azure Cloud Shell or WSL or Git Bash on my windows 10. All worked fine.

Cloud Shell enter image description here

Git Bash enter image description here

In this case, you could consider updating your CLI installation with az upgrade or re-install your Azure CLI or git bash. Also, you could check if you have the correct character format when typing the "node|10.14".

Upvotes: 1

Related Questions