Hello @chaowen guo Welcome to Microsoft QnA. Thank you for the question.
did you already follow this https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-function-linux-custom-image?tabs=bash%2Cportal&pivots=programming-language-csharp ?
Also could you please confirm if you have any other windows application residing within the same resource group.