Running application in Interactive mode on Azure Batch

Peter Chillemi 1 Reputation point

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:

  1. Created my Pool with a custom user, with interactive login mode. "userAccounts": [
    "name": "customuser",
    "elevationLevel": "admin",
    "windowsUserConfiguration": {
    "loginMode": "interactive"
  2. Scheduled my task with the specified custom User Identity.
  3. 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.

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
309 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 25,041 Reputation points

    @Peter Chillemi

    Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

    The most common co-required technology is to force the task into special session using psexec.

    Found a similar issue here, please check this thread if it helps.

    0 comments No comments