Azure / Azure/Azure-Functions

Cannot run 64bit C# Azure Function on Azure Kubernetes Service

Open
#1,172 0 comments 0 reactions 0 assignees View on GitHub
area: documentation
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Please describe the documentation request or issue. Be as specific as possible.
I am working on an V2 Azure Function App that uses C# and .NET core that uses an x64 dll. For this reason I have set it up to only build and run as x64. I am able to run this function locally using 64 bit Azure Function Core tools and everything works as expected.

I deploy this to azure kubernetes using:
`func deploy --platform kubernetes --name MyFunctionName --registry nickjpurcell`
The deployment seems to succeed but when it has to run the code dependent on the x64 dll it fails.
I am ensuring we are publishing the project as x64 in the Dockerfile `dotnet publish -p:Platform=x64 *.csproj --output /home/site/wwwroot`.

Do I need to change the version of azure function I am using?
Is there a configuration I can do to switch the function runtime to use a 64 worker process?
(That is not the azure portal ui?)

Here is the [gist](https://gist.github.com/SpicySyntax/5c8484e3505ec5e753e787344bb389ea) containing the .csproj, Dockerfile, host.json for my Azure Function V2 project.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.