microsoft / AzureTRE

An accelerator to help organizations build Trusted Research Environments on Azure.
https://microsoft.github.io/AzureTRE
MIT License
184 stars 141 forks source link

Querying Azure User authenticated on Guacamole from VM #3860

Open dusan-ilic-mhra opened 8 months ago

dusan-ilic-mhra commented 8 months ago

Description

From the VM, we have an ODBC connection set to the local admin user of the VM. Do you know if there is any way we can query which Azure user is logged in to Guacamole for that particular VM to get his Azure user and automatically configure ODBC with that user instead of using the local admin?

marrobi commented 8 months ago

As in just the username? (see https://github.com/microsoft/AzureTRE/pull/3770 which makes it the same on the VM as Azure)

Another option is potentially using Azure AD joined machines and AD auth.

dusan-ilic-mhra commented 8 months ago

This has not been tested yet from your side, right? As I see that is draft PR.

marrobi commented 8 months ago

It works as is, but probably needs a bit more thought and discussion as far as design before looking to merge. Might be we can pick it up again soon.

dusan-ilic-mhra commented 8 months ago

Great! And, one more question, is there a change in the payload for creating VM?

marrobi commented 8 months ago

Take a look at the PR... :)