1

Using SSH to remote into the App Service I'm greeted with this message:

enter image description here

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

It would appear that Microsoft's new PowerShell Core is not installed on Azure's Linux containers.

Where do I define that I want PowerShell to be installed on my Linux deployment?

We have defined ubuntu-latest as our vmImage in our Azure DevOps CI.

RubbelDieKatz
  • 1,134
  • 1
  • 15
  • 32

1 Answers1

1

It usually can be done from App Service Extension under Development Tools line. But in this case it doesn't have any option for PowerShell, so I believe you would need to install it manually.

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

Oleh Tarasenko
  • 601
  • 5
  • 17
  • If I installed something manually, would it be persisted even after deploying a new version of my app? – RubbelDieKatz Sep 15 '20 at 14:28
  • 1
    @RubbelDieKatz nice question, don't have an answer for that. You should check, just try to restart your App, if pwsh is still present, you should be good to go with the upgrade. The main idea here is it to understand is it containerized. – Oleh Tarasenko Sep 15 '20 at 14:39
  • The app service is running Debian 9, which apparently does not have `libicu55` and `libssl1.0.0` pre-installed. These packages are a hard requirement for PowerShell Core. I'll take a look around. – RubbelDieKatz Sep 15 '20 at 14:50
  • 1
    @RubbelDieKatz did you tried this https://learn.microsoft.com/ru-ru/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7#installation-via-package-repository---debian-9 – Oleh Tarasenko Sep 15 '20 at 14:53
  • Yup. Tried that. But apparently the docs aren't up to date. – RubbelDieKatz Sep 15 '20 at 14:57