Determine available runtimes on Azure App Service

April 12, 2019


Introduction

When deploying your .NET Core or Node application to Azure App Services, you may require a specific version of the .NET Core or Node runtimes being available. Here is how you can determine whether the required runtime version is available.

Determine available runtimes

In the Azure Portal, navigate you your Azure App Service. Search for and select “Advanced Tools” in the navigation sidebar. then click on the “Go” link.

Select Advanced Tools

This will open the Kudu Service page. Click on the link labelled “Runtime versions”.

Open Kudu Services

This will open a JSON file listing all of the available runtimes. This file will look similar to the one below:

{
    "nodejs": [
        {
            "version": "0.10.40",
            "npm": "1.4.28"
        },
        ...
        {
            "version": "8.5.0",
            "npm": "5.3.0"
        },
        {
            "version": "8.9.4",
            "npm": "5.6.0"
        }
    ],
    "dotnetcore32": {
        "shared": {
            "microsoft.netcore.app": [
                "1.0.12",
                ...
                "2.2.3"
            ],
            "microsoft.aspnetcore.app": [
                "2.1.7",
                ...
                "2.2.3"
            ],
            "microsoft.aspnetcore.all": [
                "2.1.7",
                "2.1.8",
                "2.1.9",
                "2.2.1",
                "2.2.2",
                "2.2.3"
            ]
        },
        "sdk": [
            "1.1.10",
            ...
            "2.2.105"
        ]
    },
    "dotnetcore64": {
        ...
    },
    "aspnetcoremodule": {
        "aspnetcoremodule": "12.2.18296.0",
        "aspnetcoremodulev2": "12.2.18296.0"
    },
    "system": {
        "os_name": "Windows Server 2016",
        "os_build_lab_ex": "14393.2791.amd64fre.rs1_release(bryant).181230-1202",
        "cores": 4
    }
}

Setting Node runtime

If you want to specify a specific Node version for your website, you can specify it using the WEBSITE_NODE_DEFAULT_VERSION Application Setting. In the screenshot below, you can see that the Node version for this App Service has been configured to version 8.9.4.

Configure the Node version in the Application Settings

This can be confirmed by opening the Azure Console and listing the Node version:

Confirming the Node version in the Console

PS: If you need assistance on any of your ASP.NET Core projects, I am available for hire for freelance work.