I am locally developing and testing an Azure function in Python. I have these entries added to my local.settings.json file -
{
"IsEncrypted": false,
"Values": {
"CONNECTION_STRING": "Connection String",
"DEFAULT_AVATAR_URL": "Test-avatar"
}
}
When I access the bottom value from another section of the code I get KeyError. The imports have been properly added as I do get to access other environment variables.
Below is how I use it -
import os
url = os.environ["DEFAULT_AVATAR_URL"]
Please advise!