I'm having difficulty getting a desktop application to run in UserInteractive mode on Azure Batch.
The application is a standard .NET Framework WinForms application which I've automated to generate outputs. The application works as expected on my local desktop, but fails when running in Azure Batch.
So far I've taken the following steps:
- Created my Pool with a custom user, with interactive login mode. "userAccounts": [
{
"name": "customuser",
"elevationLevel": "admin",
"windowsUserConfiguration": {
"loginMode": "interactive"
}
}
],
- Scheduled my task with the specified custom User Identity.
- When my application runs, it throws the following exception when it tries to spawn a modal dialog as part of it's normal execution.
"Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."
I'd appreciate any guidance on how to actually get this executable to run on an interactive profile. Thanks.