I'm trying to use GMSA for SQL connection from AspNet core application. All the prep steps are done, but it appears it does not work. I guess the reason is that the application is started with "dotnet.exe myapp.dll" and it is not using LocalSystem or Network accounts, which are the only ones which are "proxied" trough the GMSA account.
Is there a way to start the app in the container under LocalSystem without resorting to windows service or using IIS?
I already tried to utilize sysinternal's "psexec64 -s" as an entry point, but it fails with:
Connecting to local system...Starting PSEXESVC service on local system...Connecting with PsExec service on
1B2887C13C61...Error establishing communication with PsExec service on 1B2887C13C61:
The handle is invalid.