This tutorial will discuss the quick steps to add a connection string in Azure.
How to add connection string in Azure
One of the best ways is, You add a connection string for your Azure Function App. To do that, you can follow the below steps
- Log in to the Azure Portal.
- Navigate to your Azure Function App
3. On the function App page, you can click on the Configuration from the left side menu —> Click on the Application Settings tab from the top and Now click on the + New connection string button as highlighted below to create the new connection string.
Now, you have created the Connection string for your Azure Function. To read that from your code, you can use the code format below
var myconn = System.Configuration.ConfigurationManager
In this case, if you are trying to use other than the .Net language, then you can use the Application settings With the help of the Environment variable, you can easily able to access the App settings from your code.
You may also like following the articles below
This article discussed how to add a connection string in Azure. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.