TL; DR; The 64-bit core .NET core processes using the .NET runtime (unlike the .NET Framework runtime) are not yet supported by Azure, but are planned in the future.
The following are discussions held with Microsoft Azure support.
The 64-bit / 32-bit configuration on the Azure portal (shown above in my screenshot) controls the IIS w3wp.exe process. The w3wp.exe process sends requests to your main NET process. The configuration does not control the bitness of the main .NET process. This is a bit confusing, but explains why changing the Platform parameter in the screenshot above did not affect.
Based on the configuration of the PATH environment variable for the application service, dotnet.exe is mapped to 32-bit, which is "D: \ Program Files (x86) \ dotnet \ dotnet.exe". The 64-bit .NET kernel runtime is not pre-installed in applications, so it is currently unavailable.
Microsoft plans to add 64-bit support for core .NET applications running in the .NET kernel environment in Azure, but this depends on future updates to the core .NET instrumented network. They gave me an approximate internal date, but I promised that I would not publish it publicly.
The workaround they provided to me was to use the ASP.NET visual studio template (using the .net framework), rather than the ASP.NET kernel (using the .net kernel). It downloads the 64-bit .NET Framework for your main ASP.Net web application. This will require a little migration work, and I suggest that some projects may not be possible.
Fortunately, I managed to exchange for 32-bit versions of some of my dependencies, which meant that the application was running in an Azure environment. Unfortunately, this means little to those who do not, and I am sure there are many.
source share