Azure Function App hanging or crashed on Code + Test

Handy 20 Reputation points
2023-09-26T09:28:38.03+00:00

Hi,

My Function App code for http-trigger unable to load after i added something inside the function.json. It is showing blank page, the 'now loading icon' disappeared.

Tried to download app content also cannot, keep 'downloading'.

I'm able to view the code for other triggers.

Is there a way to retrieve the code?

Thanks.

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

Accepted answer
  1. JananiRamesh-MSFT 27,176 Reputation points
    2023-09-26T12:18:51.75+00:00

    Hi
    Handy
    Thanks for reaching out. You can use Kudu to download the function code and inspect it locally. To access Kudu, go to your function app in the Azure portal, click on "Advanced Tools" in the left-hand menu, and then click on "Go" under "Kudu".

    • In the Kudu portal, click on "Debug Console" in the left-hand menu.
    • Select "CMD" to open a command prompt.
    • Navigate to the site/wwwroot directory by typing cd site\wwwroot
    • Type dir to list the contents of the directory. You should see the files and folders for your function app.
    • To download the code for your function app, you can use the "Download" button in the Kudu portal.

    or if you're using consumption/elastic premium plan you can download from file shares in the storage account if you're using dedicated plan, You can also try to FTP into the app service and download your source code.

    Reference: https://stackoverflow.com/questions/65406797/retrieve-source-code-files-from-azure-function-in-azure-portal

    Let me know incase of further queries, I would be happy to assist you.

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

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.