Azure Function App (Consumption Plan - python, linux)
WEBSITE_RUN_FROM_PACKAGE = https://testfunc007.blob.core.windows.net/test123/HttpTrigger1.zip?sp=r&st=2025-05-28T02:39:29Z&se=2025-09-05T10:39:29Z&spr=https&sv=2024-11-04&sr=b&sig=zFH1y9KVNlibedwFVySop%2BbCnsSduX5UNrbwnVn7i8M%3D
I have a Python function that is supposed to appear in the list of available functions (or be recognized in the environment), but it’s not showing up, and I don’t know why. What might be going wrong?
I have shared the blob SAS URL here for reference. Please use it to download the blob and check its structure.
Below approach works for me:
Structure :
<root>/
├── .vscode/
├── .venv/
├── .funcignore
├── .gitignore
├── function_app.py
├── host.json
├── local.settings.json
├── requirements.txt
└── __pycache__/
Initailly before deployment, added :
"WEBSITE_RUN_FROM_PACKAGE":"1"
In Consumption plan WEBSITE_CONTENTAZUREFILECONNECTIONSTRING
this is also required.
Now after deployment functions are shown:
Later it changes to this:
function_app.py:
import azure.functions as func
import logging as chlg
cho = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
@cho.route(route="http_trigger")
def http_trigger(req: func.HttpRequest) -> func.HttpResponse:
chlg.info('Hello Rithwik')
return func.HttpResponse("Rithwik",status_code=200)
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
}
}