Our web application is hosted with Azure App Service and the ‘Health check’ feature is enabled for this app.
I have noticed that every time I run a release pipeline (for deployment), this feature gets reset to Disabled settings.
How can I prevent this ‘resetting’ of health check setting? If it is impossible then is there a way to activate it during a pipeline?
2
Answers
I achieved it by using an Azure CLI task in the release pipeline. The task contains the following script:
You need to add the Configuration setting in Release pipeline to enable Health Check like below:-
After running the pipeline > Health check got enabled after adding the setting above in Release pipeline:-
In the pipeline Logs the Setting was applied successfully like below:-