Log Analytics / Application Insights connections truncate the full proxy URI to the bare hostname
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- azure, typescript, vscode
Línea de trabajo
Comienza en el flujo de add-connection, incluido el punto de entrada msKustoExplorer.addServer, y sigue cómo se analiza y almacena la URI de Log Analytics proporcionada. Reproduce el problema con la URI con ámbito de workspace del informe; se considera completado cuando se conserva la URI completa y el workspace puede usarse como su base de datos, en lugar de guardar solo ade.loganalytics.io.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
When adding a Log Analytics workspace connection, the extension truncates the full URI and stores only the hostname. The saved connection becomes ade.loganalytics.io instead of the full workspace-scoped endpoint:
https://ade.loganalytics.io/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>
ade.loganalytics.io is the Azure Data Explorer proxy front door, not a routable cluster endpoint on its own. Without the subscription/resource group/workspace path there is nothing for the proxy to route to, so the connection is unusable.
Steps to reproduce
- Add a connection using the full Log Analytics workspace URI above.
- Observe the stored connection is reduced to
ade.loganalytics.iowith no database.
Actual behaviour
The connection is saved as ade.loganalytics.io. Attempting to use it:
- Running a query →
Invalid host name ade.loganalytics.io .show databases→ returns nothing- Schema/database tree → empty
The same URI works correctly in Azure Data Explorer (web/desktop).
Expected behaviour
The full workspace-scoped URI is preserved so the workspace can be added as its own connection, with the workspace usable as a database.
Workaround
Proxy queries can be run by connecting to a working ADX cluster and scoping inline:
cluster('https://ade.loganalytics.io/subscriptions/<subscription-id>/resourcegroups/<resource-group-name>/providers/microsoft.operationalinsights/workspaces/<workspace-name>').database('<workspace-name>').SigninLogs
| take 5
Note the host connection must have a database selected, not just a cluster — otherwise the placeholder NetDefaultDB is sent and the query fails with Entity ID 'NetDefaultDB' of kind 'Database' was not found before reaching the proxy.
This works, but a separate first-class connection for the workspace would be much more useful.
Notes
- There is no settings-based override — the only connection-related settings contributed are
msKustoExplorer.defaultDomainandmsKustoExplorer.connections.suppressKustoExplorerImportPrompt. msKustoExplorer.addServerignores arguments passed programmatically, so the connection can't be injected as a workaround.
Environment
- Extension:
ms-kusto.kusto-explorer-vscodev1.0.1 - OS: Windows
Reference
https://learn.microsoft.com/en-us/azure/data-explorer/query-monitor-data
- Lenguaje dominante
- TypeScript
- Estrellas
- 6
- Forks
- 7
- Merge medio
- 1 d 6 h
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/Kusto-Explorer-VsCode
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Remote-SSH: browser sign-in on every query; prefer VS Code authentication before native authAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
-
Schema cache stores ~950KB in globalState, triggering VS Code's large-extension-state warningAbiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
-
Results grid: show Count/Sum/Avg/Min/Max for selected numeric cells in a status barPosiblemente ocupada @AsafMah la tomó hace 54 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/Kusto-Explorer-VsCode#143 · 1 comentario ·
-
Add a setting to scope the query CodeLens to the active queryPosiblemente ocupada @AsafMah la tomó hace 53 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
Todos los issues de microsoft/Kusto-Explorer-VsCode
Issues similares
-
level/task type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
wazuh/wazuh-dashboard-plugins#9508 ·
Los mantenedores suelen responder en 1 día
-
Testnet EOL page links Zonescan mainnetPosiblemente ocupada @napelvs la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Azure-Samples/azure-search-openai-demo#3249 ·
Los mantenedores suelen responder en 1 día
-
[Docs] docs/architecture.mermaid leaves out 21 of the 51 src/ directoriesPosiblemente ocupada @uyg7x la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
enhancement status:needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
dongdongbh/Mindwtr#1438 ·
Los mantenedores suelen responder en 1 día