diff --git a/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs b/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs
new file mode 100644
index 000000000000..8ea35b8043ae
--- /dev/null
+++ b/src/Middleware/HealthChecks/src/Builder/HealthCheckEndpointRouteBuilderExtensions.cs
@@ -0,0 +1,71 @@
+// Copyright (c) .NET Foundation. All rights reserved.
+// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
+
+using System;
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Diagnostics.HealthChecks;
+using Microsoft.Extensions.Options;
+using Microsoft.AspNetCore.Routing;
+
+namespace Microsoft.AspNetCore.Builder
+{
+ ///
+ /// Provides extension methods for to add health checks.
+ ///
+ public static class HealthCheckEndpointRouteBuilderExtensions
+ {
+ ///
+ /// Adds a health checks endpoint to the with the specified template.
+ ///
+ /// The to add the health checks endpoint to.
+ /// The URL pattern of the health checks endpoint.
+ /// A convention builder for the health checks endpoint.
+ public static IEndpointConventionBuilder MapHealthChecks(
+ this IEndpointRouteBuilder builder,
+ string pattern)
+ {
+ if (builder == null)
+ {
+ throw new ArgumentNullException(nameof(builder));
+ }
+
+ return MapHealthChecksCore(builder, pattern, null);
+ }
+
+ ///
+ /// Adds a health checks endpoint to the with the specified template and options.
+ ///
+ /// The to add the health checks endpoint to.
+ /// The URL pattern of the health checks endpoint.
+ /// A used to configure the health checks.
+ /// A convention builder for the health checks endpoint.
+ public static IEndpointConventionBuilder MapHealthChecks(
+ this IEndpointRouteBuilder builder,
+ string pattern,
+ HealthCheckOptions options)
+ {
+ if (builder == null)
+ {
+ throw new ArgumentNullException(nameof(builder));
+ }
+
+ if (options == null)
+ {
+ throw new ArgumentNullException(nameof(options));
+ }
+
+ return MapHealthChecksCore(builder, pattern, options);
+ }
+
+ private static IEndpointConventionBuilder MapHealthChecksCore(IEndpointRouteBuilder builder, string pattern, HealthCheckOptions options)
+ {
+ var args = options != null ? new[] { Options.Create(options) } : Array.Empty