From 0c2cef4c58f8dd4725b6c1c7c1fbb2795d825d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Pilgaard=20Gr=C3=B8ndahl?= Date: Sun, 28 Apr 2024 20:42:11 +0200 Subject: [PATCH] Update WebApplicationBuilderExtensions.cs --- .../Extensions/WebApplicationBuilderExtensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/container_apps/Jordnaer.Chat/Extensions/WebApplicationBuilderExtensions.cs b/src/container_apps/Jordnaer.Chat/Extensions/WebApplicationBuilderExtensions.cs index 81bc318a..1c2c5ab3 100644 --- a/src/container_apps/Jordnaer.Chat/Extensions/WebApplicationBuilderExtensions.cs +++ b/src/container_apps/Jordnaer.Chat/Extensions/WebApplicationBuilderExtensions.cs @@ -23,7 +23,9 @@ public static WebApplicationBuilder AddDatabase(this WebApplicationBuilder build { var connectionString = GetConnectionString(builder.Configuration); - builder.Services.AddSqlServer(connectionString); + builder.Services + .AddSqlServer(connectionString, + optionsBuilder => optionsBuilder.UseAzureSqlDefaults()); builder.Services.AddHealthChecks().AddSqlServer(connectionString);