
Hi !
I was learning about Azure Vault and Azure Functions, and it’s been an interesting ride. This tweet summarizes this ride πππ
So while I a was using Functions, I realized that at the end, we are working with WebApps. So, we have access to standard App Configurations.
Note: I’ll call it standard, however this reveal how old I am, remembering Asp.Net apps and web.config files.
Moving On, in the Azure Portal, we can access the Function Configuration via Function // Settings // Configuration.

As the official documentation describes
In App Service, app settings are variables passed as environment variables to the application code.
So, it super easy to access this with a simple line of code. The next examples shows how to read an environment variable named “dbConnectionString” where I store a connection string.
var cnnString = Environment.GetEnvironmentVariable("dbConnectionString", EnvironmentVariableTarget.Process);
Super easy ! and it also have the checks for security:
App settings are always encrypted when stored (encrypted-at-rest).
My next step in my journey will be describe how to also do this with KeyVault. And share some insights on both scenarios.
References
- Configure an App Service app in the Azure portal
- Use Key Vault references for App Service and Azure Functions
Happy coding!
Greetings
El Bruno
More posts in my blog ElBruno.com.
More info in https://beacons.ai/elbruno
ΒΏCon ganas de ponerte al dΓa?
En Lemoncode te ofrecemos formaciΓ³n online impartida por profesionales que se baten el cobre en consultorΓa:
- Si tienes ganas de ponerte al dΓa con Front End (ES6, Typescript, React, Angular, Vuejs…) te recomendamos nuestros MΓ‘ster Front End: https://lemoncode.net/master-frontend#inicio-banner
- Si te quieres poner al dΓa en Backend (stacks .net y nodejs), te aconsejamos nuestro Bootcamp Backend: https://lemoncode.net/bootcamp-backend#bootcamp-backend/banner
- Y si tienes ganas de meterte con Docker, Kubernetes, CI/CD…, tenemos nuestro Bootcamp Devops: https://lemoncode.net/bootcamp-devops#bootcamp-devops/inicio