Azure Functions are not visible in the function list after my deployment from GitHub/Kudu

Isark-9717 6 Reputation points
2021-01-28T21:50:13.57+00:00

I'm trying to deploy my first http trigger Function App to Azure.

It was created with the Azure Function extension in VS Code with typescript template. I use my GitRepo as a source and the Kudu build App Service.

My functions are working well locally : I can see them in VS Code > Azure tab, Local Project > Functions.

I have no error on the deployment itself but I cannot see my two functions in the Azure Functions list :
61529-azurescreenshot.jpg

In the kudu UI, I see that all my files are correctly deployed :
61587-kudu-2.jpg

Where can I find some logs on what went wrong ? Any idea of other things to check ?

Any help will be appreciated.

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

8 answers

Sort by: Most helpful
  1. Kaine Varley 21 Reputation points
    2023-03-22T14:31:55.4666667+00:00

    Hi all,

    After contacting MS Support, their troubleshooting helped me isolate the problem down to my Build pipeline. It had nothing to do with the Release pipeline nor the Function App setup. I'd had so many issues rolling out Function App (and supporting resources) private endpoints around permissions and whatnot, that I'd assumed this was the case here too.

    One thing that was annoying was that both Build and Release pipelines reported successes with no errors.

    The clincher was that the deployed zip file was empty (a defect with my Build pipeline had generated an empty deployment artifact file). Once I'd spotted that, I traced it back to the build server to verify it was empty there too, and then found the defect in Build pipeline. Once corrected, the whole process worked fine.

    Here are the diagnostic steps given my MS Support:

    • Go to advanced tools and debug console: https://<APPNAME>.scm.azurewebsites.net/DebugConsole, browse to C:\home\site\wwwroot and check if the Functions are there
    • Go to C:\home\data\SitePackages and check if the latest zip file contains the Functions and the packagename.txt is updated.

    Remember to check the contents of your zip file above.

    Hope this helps get someone out of a jamb.

    Kaine

    3 people found this answer helpful.

  2. Isark-9717 6 Reputation points
    2021-02-08T15:58:50.113+00:00

    Hello @JayaC-MSFT , thanks for the follow up.
    To answer your question, I had the configuration WEBSITE_RUN_FROM_PACKAGE set to 1. And I tried to redeploy several times.
    As I suspected an issue with the Kudu deployment configuration, I changed my deployment settings : I'm now using Azure Pipelines (with a npm build task). It's now working well.
    Thanks for the help.

    1 person found this answer helpful.

  3. Kaine Varley 21 Reputation points
    2023-01-12T11:22:33.99+00:00

    @Isark-9717 / @Sadique Arrvi , did either of you manage to find the cause of this? I'm experiencing exactly the same issue. I am publishing from VS2022 and the publish appears to have been successful, but I see no functions listed.

    Thx

    1 person found this answer helpful.

  4. JayaC-MSFT 5,516 Reputation points
    2021-01-29T10:16:46.94+00:00

    Hello @Isark-9717 , I would recommend to do the following :

    • Restart your function app in the Azure portal
    • Send an HTTP POST request to https://{functionappname}.azurewebsites.net/admin/host/synctriggers?code=<API_KEY> using the master key.
    • Send an HTTP POST request to https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP_NAME>/providers/Microsoft.Web/sites/<FUNCTION_APP_NAME>/syncfunctiontriggers?api-version=2016-08-01. Replace the placeholders with your subscription ID, resource group name, and the name of your function app.

    You can also find the same in our official document.

    Please let me know if this helps!


  5. Isark-9717 6 Reputation points
    2021-01-29T11:22:29.77+00:00

    Hi,

    Thanks @JayaC-MSFT for your suggestions.
    Unfortunately, I still have the issue.

    Restart and the first POST request were successful.
    But the second POST had an 401 error (Unauthorized).

    From the documentation, it seems that I should not have to manually sync the triggers since i'm using the continuous deployment from GitHub and Kudu.

    On the Kudu UI, I noticed that I don't have a dist folder in /wwwroot
    Could this be the rootcause ?
    How do I make the Kudu deploy script to create the dist folder ?

    Thanks !