Share via

How to fix the connection with VS Code to an Azure ML workspace with the Azure Machine Learning Remote Extension

Tobias Fischer 90 Reputation points
2025-09-12T09:41:09.4333333+00:00

Hey,

I am trying to connect to an Azure Machine Learning workspace with VS Code via Azure Machine Learning - Remote extension. Every time I try it (on different workspaces and from different devices) the connections gets stuck at "Fetching subscription details...".

Steps are:

  1. Opening workspace in Browser
  2. Launching Studio
  3. Go to Notebooks
  4. Select a file from my project
  5. Select a compute instance that is running
  6. Select Edit in VS Code(Desktop)
    Now there should be a VS Code window opening that is trying to connect to the workspace and gets stuck at "Fetching subscription details...".

I already tried:

  1. Reinstall the extension(Azure Machine Learning
  2. Restarting my local machine
  3. Reinstalling extension again
  4. Restarting compute instance in workspace

The login via azure cli with "az login" works perfectly fine btw. But even logging out and logging in again does not help.

Thank you very much for your help! For future searcher:
The answer is to downgrade the extension version. For me it works with Azure Machine Learning - Remote 1.2.0. For small downgrade guide look into the answer of Nikhil Jha.
Thanks for all the answers

Azure Machine Learning
0 comments No comments

Answer accepted by question author
  1. Ioannis Mykelos Kioutsioukis 85 Reputation points
    2025-09-16T12:28:59.99+00:00

    I had the same error but I fixed.

    1st step, Just open your VSCode (local) and go to your extensions. Look for the extensions and downgrade them to the following versions.
    Azure Machine Learning - Remote == 1.4.3
    Azure Machine Learning == 1.2.0


    2nd step, Refresh the extensions

    3rd step, Open your VSCode from the Compute instances in your Azure ML workspace -> VSCode (Desktop)

    2 people found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. BV 30 Reputation points
    2025-09-12T14:53:34.8833333+00:00

    Newer 1.104 onwards is broken.

    This older version seems to be working

    Version: 1.103.1 (user setup)

    6 people found this answer helpful.

  2. Arturo Sánchez Pineda 22 Reputation points
    2025-09-19T09:57:18.3766667+00:00

    Hello everyone,

    Since last week, we have had a few users unable to deploy remote sessions from compute instances (Azure ML Studio) from VS Code. The issue is a compatibility problem with the newest VS Code version and the extensions. The fix that I applied in my CI is to downgrade to the following versions, which are confirmed to be working:

    • ms-toolsai.vscode-ai@1.2.0
    • ms-toolsai.vscode-ai-remote@1.2.0
    • ms-toolsai.vscode-ai-remote-web@1.0.0 (This extension is for `vscode.dev` and is likely not needed. If you don’t have it, please do not install it.)

    . How to Check Your Versions

    • Open your terminal and run: code --list-extensions --show-versions | grep "ms-toolsai.vscode-ai"

    . How to Downgrade

    1. In VS Code, open the Extensions view (Shift+command+X)
    2. Find the extension (e.g., “Azure Machine Learning”)
    3. Click the gear icon next to Uninstall
    4. Select “Install Another Version...”
    5. Choose the correct version from the list
    6. Restart VS Code

    Important: After downgrading, disable auto-updates for these extensions by clicking the gear icon and unchecking Auto Update Extension.

    1 person found this answer helpful.
    0 comments No comments

  3. Nikhil Jha (Accenture International Limited) 4,320 Reputation points Microsoft External Staff Moderator
    2025-09-17T08:27:12.26+00:00

    Hello Tobias Fischer,

    Apologies for delayed response. I understand your issue regarding the Azure Machine Learning Remote extension in VS Code getting stuck at "Fetching subscription details..." when connecting to a compute instance.

    Based on the details you shared, my observation is that you are unable to connect to your Azure ML workspace from VS Code using the Remote extension, despite the compute instance being active and Azure CLI login working correctly.

    This issue may be related to compatibility problems with newer versions of the Azure Machine Learning extensions or a mismatch between workspace and extension configurations.

    Recommended Steps and workarounds to try:

    1. Downgrade Extensions to Stable Versions:
      • Version: 1.103.1 works fine. As also suggested by other community members.
      • You can do this by opening VS Code → Extensions → Search for each extension → Click the gear icon → "Install Another Version".
    2. Refresh and Reconnect:
      • After downgrading, refresh the extensions.
      • Open VS Code from the Azure ML Studio → Compute Instances → "Open in VS Code (Desktop)".
    3. Use VS Code for the Web (Recommended):
      • If the desktop connection continues to fail, consider using VS code for web which offers a seamless browser-based experience without dependency issues.
    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.