Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login with Managed Identity not possible #2542

Open
jjindrich opened this issue Jan 22, 2025 · 4 comments
Open

Login with Managed Identity not possible #2542

jjindrich opened this issue Jan 22, 2025 · 4 comments

Comments

@jjindrich
Copy link

I need to login into Cosmos with Managed Identity MSI (of VM where VS Code is running).
Usecase: connection to Cosmos from jump station running in Azure for troubleshooting. Access into Cosmos has MSI only.

@jjindrich jjindrich changed the title Login with Managed Identity Login with Managed Identity not possible Jan 22, 2025
@tnaum-ms
Copy link
Collaborator

Dear Jaroslaw,
Could you please let us know which API is in use here? Is it Core/NoSQL, Mongo (RU), or MongoClusters/vCore?

@jjindrich
Copy link
Author

SQL(noSQL)

@tnaum-ms
Copy link
Collaborator

@sevoku could this possibly be related to our RBAC support?

@sevoku
Copy link
Member

sevoku commented Jan 28, 2025

@jjindrich This is currently not supported, since the extension is using VS Codes integrated Entra ID API and it requires VS Code to be signed in using Entra ID manually. You can also attach an account to the "Workspace" section, however it currently supports only connection strings with an account key or password combination besides Entra ID.
That said, it should be easy to add support for managed identities since the JS SDK supports that already: https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/tutorial-vm-managed-identities-cosmos?tabs=azure-portal#javascript, let's add it to the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants