Azure DevOps ASP.NET Core health checks extensionsAzure DevOps Release Gate for ASP.NET Core Health checksThis Release Gate allows you to add a new Gate based on Asp.Net Core Health Checks. More info on Release Gates for Azure DevOps PrerequisitesTo use this extension first you must configure Asp.Net Core Health Checks in your desired application, to install it follow this walk-through You also need the Health Check UI as the Release Gate needs to call the endpoint returning the json information on Health Checks. Once installed and deployed, you can start use this extenstion to use Health Checks as Release Gates ConfigurationBasic Health CheckWhen using int the basic mode, the Release Gate just checks the HTTP 200 OK result from the global Health Check. To configure the extension in its basic form,you need to provide following parameters:
Filter by particular Health CheckWith this, we can filter out for a particular Health Check from the configured ones, but this requires a little bit more configuration both in the tasks and in your application code. When configuring it, we also need to modify the HTTP responses for it, as the Release Gates always checks for the HTTP 200 OK code, and if some Health Checks fails, by default it returns an HTTP 503 Error, which will make the Release Gate fail no matter if the particular Health Check is Healthy or not. So we need to add this code when configuring Health Check UI:
The tasks configuration will be like this:
|