Azure extension doesent work

You need to reinstall extensions after update? That shouldn’t be the case.

Are you sure step 1 + 2 are required every time, or just once?

For step 3, can you provide more details including error messages when cursor remote server installation fails.

Hi,

So, everytime cursor updates, I need to manually reinstall the microsoft authentication extension, while all my other extensions are still installed. I think the reason is because this extension is not publically available, it seems ‘built into’ vscode.

Here’s some logs. First is the extension host log before I manually install the Microsoft authentication extension.

Extension Host Log (pre step 1)

2024-12-20 11:22:43.241 [info] Extension host with pid 55644 started
2024-12-20 11:22:43.242 [info] Skipping acquiring lock for c:\Users\jsmith\AppData\Roaming\Cursor\User\workspaceStorage\6895d597fa955ce5d509e23925bff8e9.
2024-12-20 11:22:43.242 [info] $getCanonicalURI invoked for authority (amlext)
2024-12-20 11:22:43.249 [info] ExtensionService#_doActivateExtension ms-toolsai.vscode-ai-remote, startup: false, activationEvent: ‘onResolveRemoteAuthority:amlext’
2024-12-20 11:22:43.900 [info] [resolveAuthority(amlext,1)][0ms] activating remote resolvers amlext+2f737562736372697074696f6e732f65353739653335372d376133342d343237312d393036662d6366323731393235666439352f7265736f7572636547726f7570732f7265737375622d6465767265732d6d6c732d73612d72672f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f73616c6574696d6c732f636f6d70757465732f73616c6574692d7434
2024-12-20 11:22:43.901 [info] [resolveAuthority(amlext,1)][1ms] activating resolver for amlext+2f737562736372697074696f6e732f65353739653335372d376133342d343237312d393036662d6366323731393235666439352f7265736f7572636547726f7570732f7265737375622d6465767265732d6d6c732d73612d72672f70726f7669646572732f4d6963726f736f66742e4d616368696e654c6561726e696e6753657276696365732f776f726b7370616365732f73616c6574696d6c732f636f6d70757465732f73616c6574692d7434…
2024-12-20 11:22:43.901 [info] [resolveAuthority(amlext,1)][1ms] invoking final resolve()…
2024-12-20 11:22:44.914 [info] [resolveAuthority(amlext,1)][1013ms] waiting…
2024-12-20 11:22:45.915 [info] [resolveAuthority(amlext,1)][2015ms] waiting…
2024-12-20 11:22:46.916 [info] [resolveAuthority(amlext,1)][3016ms] waiting…
2024-12-20 11:22:47.922 [info] [resolveAuthority(amlext,1)][4022ms] waiting…
2024-12-20 11:22:48.927 [info] [resolveAuthority(amlext,1)][5027ms] waiting…
2024-12-20 11:22:49.958 [info] [resolveAuthority(amlext,1)][6058ms] waiting…
2024-12-20 11:22:50.960 [info] [resolveAuthority(amlext,1)][7060ms] waiting…
2024-12-20 11:22:51.968 [info] [resolveAuthority(amlext,1)][8068ms] waiting…
2024-12-20 11:22:52.976 [info] [resolveAuthority(amlext,1)][9076ms] waiting…
2024-12-20 11:22:53.990 [info] [resolveAuthority(amlext,1)][10090ms] waiting…
2024-12-20 11:22:55.009 [info] [resolveAuthority(amlext,1)][11110ms] waiting…
2024-12-20 11:22:56.013 [info] [resolveAuthority(amlext,1)][12113ms] waiting…
2024-12-20 11:22:57.019 [info] [resolveAuthority(amlext,1)][13119ms] waiting…
2024-12-20 11:22:58.029 [info] [resolveAuthority(amlext,1)][14129ms] waiting…
2024-12-20 11:22:59.039 [info] [resolveAuthority(amlext,1)][15139ms] waiting…
2024-12-20 11:23:00.049 [info] [resolveAuthority(amlext,1)][16149ms] waiting…
2024-12-20 11:23:01.058 [info] [resolveAuthority(amlext,1)][17158ms] waiting…
2024-12-20 11:23:02.072 [info] [resolveAuthority(amlext,1)][18172ms] waiting…
2024-12-20 11:23:03.089 [info] [resolveAuthority(amlext,1)][19189ms] waiting…
2024-12-20 11:23:04.106 [info] [resolveAuthority(amlext,1)][20206ms] waiting…
2024-12-20 11:23:05.120 [info] [resolveAuthority(amlext,1)][21220ms] waiting…
2024-12-20 11:23:06.129 [info] [resolveAuthority(amlext,1)][22230ms] waiting…
2024-12-20 11:23:07.143 [info] [resolveAuthority(amlext,1)][23243ms] waiting…
2024-12-20 11:23:08.153 [info] [resolveAuthority(amlext,1)][24253ms] waiting…
2024-12-20 11:23:09.153 [info] [resolveAuthority(amlext,1)][25253ms] waiting…
2024-12-20 11:23:10.154 [info] [resolveAuthority(amlext,1)][26254ms] waiting…
2024-12-20 11:23:11.169 [info] [resolveAuthority(amlext,1)][27269ms] waiting…
2024-12-20 11:23:12.171 [info] [resolveAuthority(amlext,1)][28271ms] waiting…
2024-12-20 11:23:13.177 [info] [resolveAuthority(amlext,1)][29278ms] waiting…
2024-12-20 11:23:14.180 [info] [resolveAuthority(amlext,1)][30280ms] waiting…
2024-12-20 11:23:15.185 [info] [resolveAuthority(amlext,1)][31285ms] waiting…
2024-12-20 11:23:16.191 [info] [resolveAuthority(amlext,1)][32292ms] waiting…
2024-12-20 11:23:17.198 [info] [resolveAuthority(amlext,1)][33298ms] waiting…
2024-12-20 11:23:18.204 [info] [resolveAuthority(amlext,1)][34304ms] waiting…
2024-12-20 11:23:19.214 [info] [resolveAuthority(amlext,1)][35315ms] waiting…
2024-12-20 11:23:20.219 [info] [resolveAuthority(amlext,1)][36320ms] waiting…
2024-12-20 11:23:21.231 [info] [resolveAuthority(amlext,1)][37332ms] waiting…
2024-12-20 11:23:22.236 [info] [resolveAuthority(amlext,1)][38336ms] waiting…
2024-12-20 11:23:23.242 [info] [resolveAuthority(amlext,1)][39343ms] waiting…
2024-12-20 11:23:24.251 [info] [resolveAuthority(amlext,1)][40351ms] waiting…
2024-12-20 11:23:25.255 [info] [resolveAuthority(amlext,1)][41356ms] waiting…
2024-12-20 11:23:26.264 [info] [resolveAuthority(amlext,1)][42365ms] waiting…
2024-12-20 11:23:27.267 [info] [resolveAuthority(amlext,1)][43368ms] waiting…
2024-12-20 11:23:28.274 [info] [resolveAuthority(amlext,1)][44374ms] waiting…
2024-12-20 11:23:29.284 [info] [resolveAuthority(amlext,1)][45384ms] waiting…
2024-12-20 11:23:30.292 [info] [resolveAuthority(amlext,1)][46393ms] waiting…
2024-12-20 11:23:31.299 [info] [resolveAuthority(amlext,1)][47400ms] waiting…
2024-12-20 11:23:32.301 [info] [resolveAuthority(amlext,1)][48402ms] waiting…
2024-12-20 11:23:33.308 [info] [resolveAuthority(amlext,1)][49408ms] waiting…
2024-12-20 11:23:34.315 [info] [resolveAuthority(amlext,1)][50416ms] waiting…
2024-12-20 11:23:35.326 [info] [resolveAuthority(amlext,1)][51426ms] waiting…
2024-12-20 11:23:36.335 [info] [resolveAuthority(amlext,1)][52436ms] waiting…
2024-12-20 11:23:37.347 [info] [resolveAuthority(amlext,1)][53448ms] waiting…
2024-12-20 11:23:38.354 [info] [resolveAuthority(amlext,1)][54455ms] waiting…
2024-12-20 11:23:39.359 [info] [resolveAuthority(amlext,1)][55460ms] waiting…
2024-12-20 11:23:40.367 [info] [resolveAuthority(amlext,1)][56468ms] waiting…
2024-12-20 11:23:41.369 [info] [resolveAuthority(amlext,1)][57470ms] waiting…
2024-12-20 11:23:42.377 [info] [resolveAuthority(amlext,1)][58478ms] waiting…
2024-12-20 11:23:43.382 [info] [resolveAuthority(amlext,1)][59481ms] waiting…
2024-12-20 11:23:44.390 [info] [resolveAuthority(amlext,1)][60489ms] waiting…
2024-12-20 11:23:45.400 [info] [resolveAuthority(amlext,1)][61500ms] waiting…
2024-12-20 11:23:46.405 [info] [resolveAuthority(amlext,1)][62504ms] waiting…
2024-12-20 11:23:47.412 [info] [resolveAuthority(amlext,1)][63512ms] waiting…
2024-12-20 11:23:48.416 [info] [resolveAuthority(amlext,1)][64516ms] waiting…
2024-12-20 11:23:49.417 [info] [resolveAuthority(amlext,1)][65517ms] waiting…
2024-12-20 11:23:50.418 [info] [resolveAuthority(amlext,1)][66518ms] waiting…
2024-12-20 11:23:51.429 [info] [resolveAuthority(amlext,1)][67529ms] waiting…
2024-12-20 11:23:52.432 [info] [resolveAuthority(amlext,1)][68532ms] waiting…
2024-12-20 11:23:53.434 [info] [resolveAuthority(amlext,1)][69534ms] waiting…
2024-12-20 11:23:54.450 [info] [resolveAuthority(amlext,1)][70550ms] waiting…
2024-12-20 11:23:55.455 [info] [resolveAuthority(amlext,1)][71555ms] waiting…
2024-12-20 11:23:56.462 [info] [resolveAuthority(amlext,1)][72562ms] waiting…
2024-12-20 11:23:57.470 [info] [resolveAuthority(amlext,1)][73570ms] waiting…
2024-12-20 11:23:58.477 [info] [resolveAuthority(amlext,1)][74577ms] waiting…

Next, after installing the extension, and trying to connect to Azure MLS, I get this log for the Azure ML extension:

Azure ML - Before manual install (pre step 3)


XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
PATH=/home/azureuser/bin:/home/azureuser/.local/bin:/home/azureuser/.pixi/bin:/anaconda/envs/azureml_py38/bin:/anaconda/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/azureuser/.dotnet/tools
MSI_ENDPOINT=http://127.0.0.1:46808/MSI/auth
CI_RESOURCE_GROUP=jsmith-devres-mls-sa-rg
OLDPWD=/mnt/batch/tasks/shared/LS_root/mounts/clusters/jsmith-t4/code
_=/usr/bin/printenv
d384c610-1761-412d-9ada-e0204e728706: start
exitCode==25==
listeningOn====
osReleaseId==ubuntu==
arch==x86_64==
tmpDir==/tmp==
platform==linux==
d384c610-1761-412d-9ada-e0204e728706: end
[Error - 2024-12-20 16:26:18.361] Server download failed
[Error - 2024-12-20 16:26:18.361] VS Code server installation failed with error: Downloading VS Code server failed. Please try again later. Retrying…
[Info - 2024-12-20 16:26:19.362] Using commit id “1d610252e6812bf33245763f0742a534fd0f1d90” and quality “stable” for server

You can see it’s not able to install the server.

To fix this, I use the steps I detailed before to manually download the cursor server into the instance.

Then, the log, once the everything is working, looks like this:

Azure ML - After manual install (post step 3)

[Info - 2024-12-20 16:33:49.183] [Azure ML JS SDK]Workspace jsmithmls has a private endpoint connection
[Debug - 2024-12-20 16:33:49.183] Telemetry Event: azureml-js-sdk/isPrivateLink Measures: undefined Props: {
“consolidatedCode”: “true”,
“abexp.assignmentcontext”: “vsliv368:30146709;vspor879:30202332;vspor708:30202333;vspor363:30204092;binariesv615:30325510;vsaa593:30376534;c4g48928:30535728;6074i472:31201624;”,
“isPrivateLink”: “true”
}
[Debug - 2024-12-20 16:33:49.187] Telemetry Event: authentication/needsLogin Measures: undefined Props: {
“consolidatedCode”: “true”,
“abexp.assignmentcontext”: “vsliv368:30146709;vspor879:30202332;vspor708:30202333;vspor363:30204092;binariesv615:30325510;vsaa593:30376534;c4g48928:30535728;6074i472:31201624;”,
“result”: “false”
}
[Debug - 2024-12-20 16:33:49.187] Telemetry Event: authentication/needsLogin Measures: undefined Props: {
“consolidatedCode”: “true”,
“abexp.assignmentcontext”: “vsliv368:30146709;vspor879:30202332;vspor708:30202333;vspor363:30204092;binariesv615:30325510;vsaa593:30376534;c4g48928:30535728;6074i472:31201624;”,
“result”: “false”
}
[Debug - 2024-12-20 16:33:49.190] Telemetry Event: authentication/needsLogin Measures: undefined Props: {
“consolidatedCode”: “true”,
“abexp.assignmentcontext”: “vsliv368:30146709;vspor879:30202332;vspor708:30202333;vspor363:30204092;binariesv615:30325510;vsaa593:30376534;c4g48928:30535728;6074i472:31201624;”,
“result”: “false”
}
[Debug - 2024-12-20 16:33:49.190] Telemetry Event: authentication/needsLogin Measures: undefined Props: {
“consolidatedCode”: “true”,
“abexp.assignmentcontext”: “vsliv368:30146709;vspor879:30202332;vspor708:30202333;vspor363:30204092;binariesv615:30325510;vsaa593:30376534;c4g48928:30535728;6074i472:31201624;”,
“result”: “false”
}
[Debug - 2024-12-20 16:33:49.803] Socket 3 connected
[Debug - 2024-12-20 16:33:50.189] Socket 4 connected

Step 2 isn’t needed once you connect to the instance once, because the node will be saved in the previous history of connections. Also, it’s possible just to select the node or new nodes through the Azure ML extension.

Any update here - I really need this to just work

Awful stuff. I just wasted a day trying to figure this out before I had the sense to look here.

All this time I was relying on Cursor to debug my environment configuration files to figure out what’s wrong.

The confusing thing for me was that Azure functions and Azure LogicApps don’t report error, only when you do a full installation of the azure extensions things break down.

Cursor Version: 0.44.11
VSCode Version: 1.93.1
Commit: fe574d0820377383143b2ea26aa6ae28b3425220
Date: 2025-01-03T07:59:06.361Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 24.1.0

This issue is of top importance. I don’t believe Cursor should break fundamental tools that I rely on. I can work around it, but it’s almost a deal breaker.

1 Like

What works for me is coding in Cursor and deploying from VS Code. Not ideal but if it works it ain’t stupid right?