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

Commit

Permalink
Merge pull request #508 from DFE-Digital/healthcheck
Browse files Browse the repository at this point in the history
add health check for azure monitoring
  • Loading branch information
jordan-beard authored Feb 3, 2023
2 parents 52df3d4 + cbd0667 commit e6c1dfa
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 e6c1dfa

Please sign in to comment.