microsoft / vscode-tools-for-ai

Azure Machine Learning for Visual Studio Code, previously called Visual Studio Code Tools for AI, is an extension to easily build, train, and deploy machine learning models to the cloud or the edge with Azure Machine Learning service.
Other
321 stars 91 forks source link

Port issue while connecting to Compute Instances #2272

Open Uranium2 opened 5 months ago

Uranium2 commented 5 months ago

I work in a very strict network environment, where each IP/Port must be open in Azure Firewall. In theory we should open the port 18881 from official documentation. But in reality it does not work.

From this issue https://github.com/microsoft/vscode-tools-for-ai/issues/1572, it says that the extention start to use port 8888 and increases one by one. Which is not true for me. I've opened port 8888, but it did not work. So I looked up logs and found out it used port 8889. I retried an hour later, it used port 8891.

I am not allowed to asked to open a range of ports, I need a specific port to be opened.

Is there a way to force the port of the remote server in the vscode extension? Just like an ssh configuration. Like this, I could force one port to be used and open this port on the firewall.

logs.txt

Specifications