Azure functions are not displaying in the function app.

Chidinma Okafor 0 Reputation points
2024-08-19T13:14:33.54+00:00

I created an Azure function using Terraform following the example in the azure_rm docs. I confirmed that it was correctly created by comparing the settings to a previously created Azure Function that works fine.

I then created 3 functions using the Azure VsCode extension, following the instructions in the docs (Typescript v4). On local, it works as expected and I can successfully test my functions (2 are http triggered and 1 is service bus triggered).

Then when I deploy the function app from the Local Project, the Azure tab shows that the deployment is successful, but there are no http triggers. I don't see my functions on the functions tab in the azure portal. I looked into the Kudu files (home/data/SitePackages) and I see that the latest zip file contains my functions, and other files I required. I have tried debugging my app, redeploying, and downgrading my azure extensions version, but it is still the same issue.

Could you please help me?

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

1 answer

Sort by: Most helpful
  1. Sina Salam 22,031 Reputation points Volunteer Moderator
    2024-08-20T09:34:32.8366667+00:00

    Hello Chidinma Okafor,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that your Azure functions are not displaying in the function app.

    If you are sure all the NOTEs in the document, you referenced is carefully noted.

    • Use Azure CLI or PowerShell to list functions and get more detailed information:
         az functionapp show --name <FunctionAppName> --resource-group <ResourceGroupName>
          az functionapp function show --name <FunctionName> --resource-group <ResourceGroupName> --function-name <FunctionName>
      
    • If your app is listed proceed to verify that the Function App is running on a plan that supports the features you're using. For example, some configurations might require a Premium Plan or App Service Plan rather than a Consumption Plan.
    • Ensure that you are using the latest version of Azure Functions tools in Visual Studio and updating these tools can resolve deployment issues.
    • Clear the Function App cache in Kudu, navigate to D:\home\site\wwwroot and manually clear out old function files before redeploying.
    • Re-deploy the Function App this can resolve inconsistencies. You can use the Azure CLI or Visual Studio Code to redeploy.

    NOTE: If your function app is not listed in state 1, jump to the last two.

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    0 comments No comments

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.