Azure function app stuck on deployment

siddharth bansal 346 Reputation points
2023-06-15T05:16:09.0866667+00:00

I am deploying Azure function from DevOPs but it stuck forever on release deployment. Please refer to screenshots for deployment logs .

earlier it was working fine , when i tried deploying again , then i started facing these issues

Checked using .zip package deployment the issue persists. 

Creation of new release pipeline was of no help.

kindly suggest how to resolve the issue .MicrosoftTeams-image (4)

MicrosoftTeams-image (5)

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

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,540 Reputation points Microsoft Employee Moderator
    2023-06-16T03:19:22.6666667+00:00

    @siddharth bansal Apologies for the late reply. Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I see that you are facing issue with the FunctionApp deployment with devops pipelines. Looking at the exception callstack, I could see that there is an Unauthorized exception being thrown:
    User's image

    So this issue seems to be permissions related. Since you confirmed that you the deployment was working earlier, Could you please re-check your deployment credentials that you are using? Does your Service Principal have enough permissions and it is not expired ? Also could you please re-check with a new service principal connection ? Please refer this article.

    Also we can isolate the issue once to confirm if there is a file lock being held on the C:\\home\\LogFiles\\kudu\\deployment path, by scaling up the function app, wait for 10 - 15 minutes and then Scale back down. Then you can check the deployment again.

    If you don't want to do the above scaling operation (and if the app is not in production), you could try restarting the function app to clear any locks on the above path, and then try the deployment again.

    Also on a side note, If the above step doesn't help, Could you please do a run from package deployment and check if that helps ?

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    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.