1

使用 SSH 远程访问应用服务我收到以下消息:

在此处输入图像描述

root@05831a60f815:/home# pwsh
-bash: pwsh: command not found

微软的新 PowerShell Core 似乎没有安装在 Azure 的 Linux 容器上。

我在哪里定义我希望 PowerShell 安装在我的 Linux 部署中?

我们在 Azure DevOps CI 中定义ubuntu-latest为我们的。vmImage

4

1 回答 1

1

它通常可以App Service Extension开发工具行下完成。但在这种情况下,它没有任何 PowerShell 选项,所以我相信您需要手动安装它。

https://docs.microsoft.com/ru-ru/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7

于 2020-09-15T14:11:45.780 回答