question

mlai-9324 avatar image
1 Vote"
mlai-9324 asked ·

Unable to ssh into app service

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SnehaAgrawal-MSFT avatar image
1 Vote"
SnehaAgrawal-MSFT answered ·

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


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

btardif avatar image
0 Votes"
btardif answered ·

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


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.