Share via

Issue running java azure function locally

A A 1 Reputation point
2022-01-06T17:18:06.21+00:00

I have an azure function written in java but after building the package and then running mvn azure-functions:run it just hangs at the staging directory:

Azure Function App's staging directory found at: C:\development\functions\target\azure-functions\Functions

I havent found anything online regarding this specific issue so hoping someone will have some info.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,511 Reputation points
    2022-01-07T11:18:08.693+00:00

    @A A ,

    Thanks for reaching out to Q&A.

    In order to answer I will need more information such as logs etc.

    Initially you can try the following:

    -- Upgrade the func core tools to latest V4 : https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash%2Ckeda

    -- Check pre-requisites here: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-cli-java?tabs=bash%2Cazure-cli%2Cbrowser#configure-your-local-environment

    Please answer the below queries so that I can help you with this issue,

    -- After running mvn azure-functions:run command from project root, do they see any log? at which step does it get stuck?

    -- Is it getting stuck even with a hello-world app?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.