AppOffline Rule Error w / Continuous Integration / Build

I connected Visual Studio Team Services to the Azure Website to enable automatic deployment. The new relic works as a system process, so it is NewRelic.Agent.Core.dllblocked, which prevents the deployment of successful assemblies.

I tried to add the wpp.targets file to the solution, to use MSDeploy to copy the app_offline document to the site before deployment, and then delete it when the deployment is complete, as shown. However, this does not seem to be true. I don't see anything in the build logs, and my deployments continue to fail.

How to disable the application when using the VS Team Services / Azure CI process?

+4
source share
2 answers

I came across this old post and now there are build tasks to start and stop the application service. See Azure App Service Managedeployment tasks in the build task directory .

0
source

A little different from what you are asking for, but what you can do is log in to your Azure site and set COR_ENABLE_PROFILINGto 0 before starting the build. Then you deploy as usual. After that you set COR_ENABLE_PROFILINGback to 1.

The act of changing the settings will cause IIS to reset and setting it to zero will disable the file from locking until publication is complete.

: https://discuss.newrelic.com/t/visual-studio-online-azure-website-continuous-integration-fails/3825

-2

Source: https://habr.com/ru/post/1547093/


All Articles