Open sevensolutions opened 11 months ago
Ok, after some research it's not that easy to run another app as the AppPool's identity because it's a gMSA or virtual account :/
An idea would be to co-host a separate web app in the same AppPool which acts as a proxy, runs the command and forwards stdio/stderr to the task driver. Similar to "Kudu" in Azure. Seems like Kudu is open-source: https://github.com/projectkudu/kudu
Try to implement the exec functionality if it is possible to do that under the AppPool identity.