Azure Function calling legacy executable failing is there a way to debug with the same version of windows locally?

Jacobsen, Darby (RIS-ORM) 1 Reputation point
2021-10-01T21:36:21.857+00:00

I have a legacy windows executable built using Delphi I am trying to move to Azure. I am currently testing calling it with an azure function in the D:\Home directory. I have other executables that work fine, but this one is just shutting down without an exception, in a seemingly random spot. Right now it is failing when I try to run it in the console halfway through a Console WriteLine debug message.

This exe works fine when testing the function locally.

Is there a VM or container that mimics the version of windows hosting the function, I can grab for better local debugging?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,264 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-10-04T06:01:16.197+00:00

    @Jacobsen, Darby (RIS-ORM) While not exactly the same, you could try testing your function in a functions windows container (one with nanoserver tags) and if it works, you can deploy the same into App Service.

    Unfortunately, containers are not supported in Consumption Plans yet.