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