function app deployment issue

JK 1 Reputation point
2021-11-29T20:58:13.323+00:00

Hi.

I have a function app configured with storage account. I build the zip file from the GitHub. The zip file is zipped and seems to be successfully deployed. I see the zip file in the storage account under this directory C:\home\data\SitePackages of the function app and also files under C:\home\site\wwwroot. But when I click 'Functions' tab in the left navigation, I don't see any function name displayed. I checked the log streaming, but no error.

The weird thing is that when I deployed the function from visual studio code, it deploys and I see the function in the Function page. I compared both files. The zip file built from the GitHub contains all the files that I have in the repo. I have some workflow files (which I need to build in the GitHub), but these files are excluded when I deploy from the Visual Studio Code. I am not sure if these files make any difference.

Is there anything that I need to check or does anybody have this kind of issue?

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

2 answers

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2021-11-30T10:39:01.023+00:00

    @JK ,

    Thanks for reaching out to Q&A.

    In order to check if its a portal glitch or not. Please check if you are able to see the list of functions by invoking the Rest API call mentioned below

    1. open Azure Portal with private mode of a web browser.
    2. execute the following REST API, which is executed from Azure Portal also, with other HTTP tools (curl, etc)

    https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/list-functions

    If you are able to see the list of functions via Rest Api call, then it might be portal glitch else it is a problem with the deployment.

    Post deployment, please sync the triggers to see if that helps : https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies#trigger-syncing

    Also the contents in the zip file should be dlls and not .cs, .csproj files. So make sure the build step is not missing in the github deployment method.

    If all the above motioned steps doesn't help, try the deployment via the deployment center as shown below

    153703-image.png

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. JK 1 Reputation point
    2021-11-30T15:11:46.14+00:00

    Thanks for providing some information. I found an answer. I added 'respect-funcignore: true' to the workflow file and it worked. I don't think that there is any glitch between GitHub and azure, because the zip file built in the Github was deployed properly. I do not know how the azure function app recognizes the zip file and validates the zip file, but after adding a file ignoring some unnecessary files, i see my function in the Functions tab.

    Thanks anyway.

    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.