Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to SSH to Azure Function Linux

I have created a Consumption based Azure Function (LINUX) - B1. Now, I need to access SSH of this function.

However, under development tools I am not able to find SSH.

I also tried https://<app-name>.scm.azurewebsites.net/webssh/host That too doesn't work nor az webapp create-remote-connection --subscription <subscription-id> --resource-group <resource-group-name> -n <app-name> & .

Note: Both the above 2 commands were taken from MS.

enter image description here

like image 283
Illep Avatar asked Oct 20 '25 05:10

Illep


2 Answers

I tried to reproduce the issue as I created the 3 function apps in azure in each hosting plan and observed that.

1) Created function app in consumption plan - SSH not visible in development tools

enter image description here

2) Created function app in app service plan - SSH visible in development tools

enter image description here

3) Created function app in function plan - SSH visible in development tools

enter image description here

As per provided MS Document, SSH is visible on Function Premium and App service hosting plan of the Azure Function App.

This is unsupported on Linux consumption plan. If you want SSH you should deploy function in non consumption plan, either in app service plan or in elastic plan.

However SSH is not an option on consumption plan you can always go to Kudu (Advanced Tools) and refer environment details or deployment. https://github.com/projectkudu/kudu

like image 41
Rohit Tatiya Avatar answered Oct 21 '25 21:10

Rohit Tatiya



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!