An Azure service that provides an event-driven serverless compute platform.
Hi @Ritwik Math,
Below approach worked and I am able to see my functions:
function_app.py:
import azure.functions as func
import logging as rilg
choapp = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)
@choapp.route(route="http_trigger")
def http_trigger(req: func.HttpRequest) -> func.HttpResponse:
rilg.info('Hello Rithwik')
return func.HttpResponse("Hello",status_code=200)
@choapp.schedule(schedule="*/30 * * * * *", arg_name="myTimer", run_on_startup=True,use_monitor=False)
def timer_trigger(myTimer: func.TimerRequest) -> None:
rilg.info('Hello Rithwik')
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "python",
"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
}
}
requirements.txt:
azure-functions
host.json:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}
Structure:
NEW_FOLDER2/
│── __pycache__/
│── .venv/
│── .vscode/
│── .funcignore
│── .gitignore
│── function_app.py
│── host.json
│── local.settings.json
│── requirements.txt
Deployed to Azure:


Output:
Azure Portal:

Locally:

Also refer Microsoft docs on Creating and Deploying Functions.
You will find Storage Account :

Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.