Thanks for asking question! You may want to know that during deployment of app, All the officially supported deployment methods make changes to the files in the /home/site/wwwroot folder of your app. These files are used to run your app. Therefore, the deployment can fail because of locked files. The app may also behave unpredictably during deployment, because not all the files updated at the same time.
So, there are a few different ways to avoid these issues:
• Run your app from the ZIP package directly without unpacking it.
• Stop your app or enable offline mode for your app during deployment. For more information, see Deal with locked files during
deployment.
• Deploy to a staging slot with auto swap enabled.
Also refer to Troubleshoot deployment for the error message and and check deployments logs from (Home/Site/Deployments folder) might be helpful.
Let us know if issue persists.