Thanks for reaching out to Q&A.
Answer for Question -1:
You can read the app settings by following the below approach
import logging
import os
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
# Get the setting named 'myAppSetting'
my_app_setting_value = os.environ["myAppSetting"]
logging.info(f'My app setting value:{my_app_setting_value}')
Question - 2:
what is the way to get the container name for function app ?
I think you are trying to get the zip file which contains the source code files. You can read the value of website_run_from_package setting, this SAS url should have the zip file name which present in the Function release container.
I hope this helps!
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.