I am building a worker role built with Python (in a .pyproj) using the Azure SDK. I would like to be able to access settings defined in the role's .cscfg configuration file at runtime. The SDK readme implies that this can be done, but I cannot find a means to access this configuration data using the Python SDK.
Asked
Active
Viewed 92 times
1
-
Did you get anywhere with this? – Gordon Jan 19 '17 at 12:47
-
We ended up going a different route, but I did find this in the bowels of our repo. I believe it was as simple as accessing the environment, i.e. ``os.environ[SERVICE_BUS_CONNECTION_STRING_KEY]`` – Jason Dufair Jan 31 '17 at 15:44
-
i found this in the end which sounds similar: http://stackoverflow.com/questions/34591436/azure-environment-variables-in-python-cloud-service – Gordon Feb 01 '17 at 15:58