From d7c523537de7890dd2ed132f7c6084b82dd97224 Mon Sep 17 00:00:00 2001 From: Roger Torkelsen Date: Fri, 27 Sep 2024 13:39:44 +0200 Subject: [PATCH] test --- .../web-api/HandlenettAPI/Controllers/TestController.cs | 2 +- handlenett-backend/web-api/HandlenettAPI/Program.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handlenett-backend/web-api/HandlenettAPI/Controllers/TestController.cs b/handlenett-backend/web-api/HandlenettAPI/Controllers/TestController.cs index 00767d3..e38ec28 100644 --- a/handlenett-backend/web-api/HandlenettAPI/Controllers/TestController.cs +++ b/handlenett-backend/web-api/HandlenettAPI/Controllers/TestController.cs @@ -16,7 +16,7 @@ public class TestController : ControllerBase [HttpGet] public ActionResult Get() { - return Ok("Hello from Azure v10"); + return Ok("Hello from Azure v11"); } } } diff --git a/handlenett-backend/web-api/HandlenettAPI/Program.cs b/handlenett-backend/web-api/HandlenettAPI/Program.cs index 7158805..90ee045 100644 --- a/handlenett-backend/web-api/HandlenettAPI/Program.cs +++ b/handlenett-backend/web-api/HandlenettAPI/Program.cs @@ -49,15 +49,15 @@ .AddMicrosoftGraph(builder.Configuration.GetSection("MicrosoftGraph")) .AddInMemoryTokenCaches(); +builder.Configuration.AddAzureKeyVault( + new Uri($"https://{builder.Configuration["AzureKeyVaultNameProd"]}.vault.azure.net/"), + new DefaultAzureCredential()); builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); -builder.Configuration.AddAzureKeyVault( - new Uri($"https://{builder.Configuration["AzureKeyVaultNameProd"]}.vault.azure.net/"), - new DefaultAzureCredential()); //DefaultAzureCredential() is handled by enabling system assigned identity on container app and creating access policy in kv