Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH into scaled out Azure app service for container

How to get access to the specific instance of the scaled out to N instances Azure web app running a Linux container? Portal allows to SSH into one of the existing instances but never tells which one you are in.

like image 728
A T Avatar asked Oct 24 '25 15:10

A T


1 Answers

If you are using the Kudu-based web SSH (e.g. https://[appname].scm.[ase-name].p.azurewebsites.net/webssh/host):

There is an "ARRAffinity" cookie used by Kudu to decide what instance to connect to, you can manually change it to force a specific instance, it's a bit cumbersome but it does work, here are the instructions: https://blogs.msdn.microsoft.com/kaushal/2016/11/21/azure-app-service-how-to-connect-to-the-kudu-site-of-a-specific-instance/

like image 60
Isaac Rosado Avatar answered Oct 26 '25 06:10

Isaac Rosado



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!