Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
add health check for azure monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-beard committed Feb 3, 2023
1 parent 52df3d4 commit cbd0667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dfe.PrepareTransfers.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void ConfigureServices(IServiceCollection services)
services.Configure<RouteOptions>(options => { options.LowercaseUrls = true; });
services.Configure<AzureAdOptions>(GetConfigurationSection<AzureAdOptions>());

services.AddHealthChecks();
AddServices(services, Configuration);

AuthorizationPolicyBuilder policyBuilder = SetupAuthorizationPolicyBuilder();
Expand Down Expand Up @@ -167,6 +168,8 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)

app.UseStaticFiles();

app.UseHealthChecks("/health");

app.UseRouting();

app.UseSentryTracing();
Expand Down

0 comments on commit cbd0667

Please sign in to comment.