Python Forum
Azure Function App Configuration Settings - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Azure Function App Configuration Settings (/thread-30315.html)



Azure Function App Configuration Settings - jdb1234 - Oct-15-2020

I'm fairly novice with Python, but looking for examples of how to retrieve a value in the configuration settings within an Azure Functions App. This python code will be deployed as a function of this functions app and I want to retrieve a connection string from a configuration setting.


RE: Azure Function App Configuration Settings - ndc85430 - Oct-16-2020

I'm not an Azure user, but generally the way these platforms expose settings to your application is via environment variables (see, e.g. this that I found for Azure). The variable environ in the os module (docs here) is basically a dict containing the environment variables and their values that are passed to an application.