5

I am trying to get the application settings values from azure function for python.

I used the below code to get the Data_AzureConnection value.

logging.info("OS Env")
logging.info("Env value")
test = os.environ["Data_AzureConnection"]
logging.info(test)

But I got below result

enter image description here

Why I am not able to see the Data_AzureConnection value?

Is there any way to get the values from azure function for python application settings? Please let me know if there is a solution.

Akshay Godase
  • 187
  • 1
  • 12

1 Answers1

4

It only shows Hidden Credential in the log, actually you can get it in the code by using os.environ["Data_AzureConnection"]. It returns the value in the reponse, see my test result below.

enter image description here

Tony Ju
  • 14,891
  • 3
  • 17
  • 31