How to Install MATLAB Runtime on Azure App Service

Anonymous
2023-04-25T21:50:10.9066667+00:00

Hello, I have published an ASP.NET core web API to the Azure App service. The API is dependent on a MATLAB dll for calculations. In order for the API to function on the cloud, I need to install the MATLAB 2020b Compiler on the Azure App service. What have I tried so far:

What do I need help with:

Thanks.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2023-04-27T19:38:12.3266667+00:00

    @Anonymous , Just checking if you had a chance to see the previous response by Lex Li.

    Just to highlight, the standard/native Azure Web Apps run in a secure environment called a sandbox. Each app runs inside its own sandbox, isolating its execution from other instances on the same machine as well as providing an additional degree of security and privacy which would otherwise not be available.

    Additional information on this, Azure App Service provides pre-defined application stacks on Windows like ASP.NET or Node.js, running on IIS. The preconfigured Windows environment locks down the operating system from administrative access, software installations, changes to the global assembly cache, also it does not allow the registration of COM components on the platform. and so on.
    In this case, you may leverage custom container.

    Checkout these docs:

    Operating system functionality on Azure App Service

    Run a custom container in Azure

    0 comments No comments

  2. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-04-27T19:52:25.07+00:00

    as you are using asp.net core, you should probably switch to linux docker containers.

    https://hub.docker.com/r/mathworks/matlab

    you can add the asp.net core runtime, and test locally.

    Your other option is to use a windows VM if windows hosting is required, but this will cost more and not as easy to scale.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.