【问题标题】:How do you escape pipes '|' when using azure-cli from git bash你如何逃脱管道'|'从 git bash 使用 azure-cli 时
【发布时间】:2020-10-12 12:52:35
【问题描述】:

在 Git Bash 中使用 azure-cli 时遇到问题

命令:

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

错误:

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

更新:发现相关问题https://github.com/Azure/azure-cli/issues/13866

【问题讨论】:

  • 你的问题解决了吗?
  • 不,我上次尝试仅适用于命令提示符。 Git Bash 和 PowerShell 失败。
  • 可以试试 Azure 云壳吗?可能是你的工作环境有问题。您能否完全卸载 PowerShell,然后重新安装 az.powershell 和 Az cli 命令?

标签: windows pipe escaping git-bash azure-cli


【解决方案1】:

这是一件奇怪的事情。我在 Windows 10 上的 Azure Cloud Shell 或 WSL 或 Git Bash 的 Bash 中尝试了此命令。一切正常。

云壳

Git 重击

在这种情况下,您可以考虑使用 az upgrade 更新您的 CLI 安装或重新安装您的 Azure CLIgit bash。此外,您可以在输入"node|10.14" 时检查您的字符格式是否正确。

【讨论】:

  • 非常感谢南希,不确定什么有效,但我注意到重新安装的 Git Bash 与旧版本略有不同。现在一切正常,干杯!
猜你喜欢
  • 2021-08-24
  • 2017-08-15
  • 2020-01-11
  • 2012-01-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-08-31
相关资源
最近更新 更多