Unable to ssh into app service

mlai 11 Reputation points
2020-02-29T13:24:05.767+00:00

I have created a Linux app service and deployed my app that uses sqlalchemy package but the application is throwing an error because sqlalchemy is not installed. If I try to ssh into the app service to install the package, the connection keeps erroring out. I have tried through the azure web console and also through azure cli on vs code. But same issue I would appreciate any help to resolve the issue.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,831 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,196 Reputation points
    2020-03-02T10:42:35.86+00:00

    Thanks for asking question! You may open a direct SSH session with your container, your app should be running.
    Paste the URL (https://{app-name}.scm.azurewebsites.net/webssh/host) into your browser and replace {app-name} with your app name.
    Also, you're required to authenticate with Azure subscription to connect. Once authenticated, you see an in-browser shell, where you can run commands inside your container.

    Additional links:

    SSH support for Azure Web App on Linux

    Azure App Service Web App on Linux FAQ

    1 person found this answer helpful.

  2. BTardif-[MSFT] 351 Reputation points
    2020-03-02T18:02:38.243+00:00

    In general it's not recommended to install stuff over SSH since App Service instances are ephemeral so any time there is a VM rotation your app would be broken in that new instance requiring you to SSH and install the component again.

    Since it sounds like you are using python for your app, the way to go would be to include sqlalchemy in your requirements.txt