Forum Discussion
redar84
Nov 22, 2021Copper Contributor
Azure Cosmos DB Mongo API and Managed Identity
I am working on a project that hosts all its components in Azure.
My database is Cosmos DB Mongo API, and the Web app is ASP.NET Blazor WSAM that is hosted in Azure App Services. I will be also using the Azure AD for auth. I want to use an Azure user-managed identity to connect both my Web App and Cosmos DB so that I get rid of secrets and keys inside my appsettings.json file. I am using Mongo DB client for .net, and I am passing a connection string that is saved in my appsetting.json. Is there a way for me to use user-managed identity instead of appsettings.json?.
1 Reply
- RajHawaldarCopper Contributor
redar84 Did you find any solution for this ??