@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:
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.