Azure Function App Deployment Issue

Parnika Mittal 0 Reputation points
2025-03-04T20:37:49.4066667+00:00

Hello Microsoft Azure Support Team,

My function app on the Azure Portal doesn't show the Azure Functions when I deploy the Function App project in my Visual Studio Solution file. They publish and work correctly on local. I have tried all ways of deployment, attempted setting up configuration variables for the Function app. Please, assist me with a solution.User's image

User's image

The Storage account with the File Share Location attached to the Function App shows the published files after deploying using Azure CLI.

User's image

Regards

Parnika

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 3,431 Reputation points
    2025-03-04T20:45:26.3666667+00:00

    Hello Parnika Mittal,

    I made a little guide for you to check quickly i hope this help you, this happened to me a long time ago...

    1. Check File Structure: Use the Kudu console (accessible via the Azure Portal by navigating to your Function App → Advanced Tools (Kudu)) to examine the contents of the site/wwwroot folder. Ensure that you see:
      • A host.json file.
      • One or more folders (or files) for your functions containing a corresponding function.json file.
      • Your compiled assemblies (DLLs) alongside these files.
    2. Include All Necessary Files: In Visual Studio, confirm that your project is correctly configured to include the function.json files. Sometimes if these files aren’t marked with the proper "Copy to Output Directory" setting, they may not get published.
    3. Review Deployment Methods
      • Publish Profile: Ensure you are using the correct publish profile in Visual Studio. When publishing to Azure, confirm that the target is indeed an Azure Function App and not a Web App or other resource.
      • Alternative Deployments: If you suspect an issue with Visual Studio’s deployment, try deploying with an alternative method such as using the Azure CLI or [GitHub Actions]. This can help determine if the problem is with the deployment package or with how the portal is reading it.

    Also check

    1. WEBSITE_RUN_FROM_PACKAGE: If you’re deploying via a package, check if the WEBSITE_RUN_FROM_PACKAGE setting is configured correctly. If this setting points to a URL for a package that either isn’t updated or isn’t accessible, your functions may not load. Tip: Try temporarily removing or updating this setting to see if it resolves the issue.
    2. Runtime Version: Verify that the Azure Function runtime version in your Function App settings matches what your project targets. Mismatches between your local runtime and the Azure runtime version (for example, Azure Functions ~3 versus ~4) could result in failures to load the functions.
    3. Other Configurations: Double-check any other configuration variables (like connection strings or environment variables) that your functions may depend on. Incorrect or missing configurations can sometimes cause the functions runtime to abort silently.

    If you found it helpful, could you kindly click the “Accept Answer and upvote” on the post.

    If you have any further queries, please let us know we are glad to help you.

    0 comments No comments

  2. Shireesha Eeraboina 3,435 Reputation points Microsoft External Staff Moderator
    2025-03-12T07:00:57.9966667+00:00

    Hi Parnika Mittal,

    Functions Not Appearing in Azure Portal Due to Missing function.json/DLLs After Deployment.

    Verify Build Output:

    • Ensure that Microsoft.NET.Sdk.Functions is updated in your .csproj file to automatically generate function.json during the build process.
    • Check the local build output (located in bin/Release/net6.0 for .NET) to confirm that both function.json and the necessary DLLs are present before deployment.

    Deployment Settings:

    • Use the command func azure functionapp publish <APP_NAME> --publish-local-settings -i to include local files in the deployment.
    • If you are using WEBSITE_RUN_FROM_PACKAGE=1, verify that the ZIP file contains all required files by checking through Kudu.

    Runtime Mismatch:

    • Ensure that the Azure Function Runtime version (v4) aligns with your project’s target framework (e.g., .NET 6 should correspond to v4).

    To help you better understand, kindly refer to the documentations below:

    Please refer to these details as well: https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies?tabs=windows

    If issues continue, consider redeploying using the Visual Studio Publish Profile instead of the CLI to ensure all necessary files are included.

    If you have any further queries, please let us know we are glad to help you.


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.