This issue—where your Azure Python Function Apps on Linux Consumption Plan suddenly stopped loading and returning 404s—is affecting others too and seems to stem from a combination of deployment and runtime configuration problems. Here's a consolidated analysis and solution path based on similar cases and Microsoft guidance:
🔍 Root Causes Identified
- Function Discovery Failure
- The message “No functions were found” typically means the Azure Functions host couldn't discover any valid function definitions during startup [1].
- This can happen if:
- The
function_app.py
file is incorrectly structured.- Required metadata like
function.json
is missing or malformed.- The
host.json
is present but not correctly referencing extensions.
- The
- Required metadata like
- The
- Deployment Package Issues
- If the deployment was done via the portal or manually, the package might be malformed.
- Azure expects a specific structure: /host.json /requirements.txt // └── function_app.py └── function.json
- Missing or Incorrect App Settings
Ensure these App Settings are configured in the Function App:
FUNCTIONS_WORKER_RUNTIME = python
FUNCTIONS_EXTENSION_VERSION = ~4
AzureWebJobsStorage = <your_storage_connection_string>
AzureWebJobsFeatureFlags = EnableWorkerIndexing
Missing or incorrect values here can prevent the host from starting properly[2].
- Sync Triggers Failure
- If trigger sync fails (especially for HTTP triggers), the functions won’t be registered.
- You can manually run:
az functionapp sync-functions --name <FunctionAppName> --resource-group <ResourceGroup>
- Storage Account Access
- If the Function App loses access to its linked Azure Storage Account, it can fail silently [3].
- Check that the storage account is active and accessible, and that the connection string is valid.
✅ Recommended Fixes
- Verify App Settings in the Azure Portal under Configuration.
- Redeploy using Zip Deploy or Azure CLI to ensure correct structure:
func azure functionapp publish <FunctionAppName> --python
- Check Logs in Application Insights or use:
traces
| where message contains "functions loaded"
to pinpoint when and why the functions stopped loading.
- Run Azure Functions Diagnostics from the portal to auto-detect issues.
- Create a fresh Function App and deploy the same code—this has worked for others when the original app was stuck in a broken state [1].
References
[1] Azure Function (Python) suddenly stopped getting loaded
[2] All my functions inside an Azure Function App disappeared in the UI but ...