Skip to main content

Posts

Showing posts from April, 2020

.Net Framework 4.8: Azure SQL Database connection from App Service using a managed identity

Azure SQL Database connection from App Service using a managed identity Azure App Service(Web App) provides a highly scalable, self-patching web hosting accommodation in azure.  It offers a managed identity for your app, which is a turn-key solution for securing access to the Azure SQL database and other azure services.  Managed identities in-app provides a mechanism to your app more secure by eliminating secrets from your app, such as credentials in the connection strings.   Here we'll integrate managed identity to the sample web app and also with zero lines of code. we'll utilize full configuration capability to make a connection to the Azure SQL database. Prerequisites: Following resource are required to run/complete this demo Azure subscription Create an Azure web app Create a key vault resource Visual studio 2019 ready to use on your machine .Net Framework 4.8 installed You will learn followings: Enable managed identities Grant S...