Azure / Azure/azure-cli

WebApp:App Service - SSH Tunnel Issue (preview feature)

Open
#16,713 12 comments 0 reactions 1 assignee Assigned to @seligj95 View on GitHub
act-observability-squad app-service-networking Service Attention Web Apps
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
I am attempting to remotely debug an linux container running in App Service using Visual Studio 2017/2019. I have enabled SSH inside my container and am using the cli command below to create an ssh tunnel to my app service:

`az webapp create-remote-connection --subscription --resource-group -n &`

Found here: https://docs.microsoft.com/en-us/azure/app-service/configure-linux-open-ssh-session#open-ssh-session-from-remote-shell

When using an remote ssh extension in VSCode, I am able to remotely attach to the container. When attempting in Visual Studio 2019 via the connection manager, I get an error. I have looked into Visual Studio and it appears it requires 2 concurrent connections (ssh & sftp). From looking at the logs inside my container, I can see Visual Studio connect and the disconnect but I cannot see 2 connections.

I also validated with putty that I am not able to make 2 concurrent SSH connections to my container.

**To Reproduce**
This same project: https://github.com/grtn316/BlazorAppContainerLinux

**Expected behavior**
Visual Studio should be able to remotely connect to the container for debugging.

**Environment summary**
-Latest version of Visual Studio 2019.
-App service hosting a linux container
more details found in github repo.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.