Azure Functions Cheat Sheet
Reference for building, triggering, and deploying Azure Functions using bindings, triggers, and the Azure Functions Core Tools.
2 PagesIntermediateFeb 2, 2026
Python HTTP Trigger
Basic HTTP-triggered function.
python
import azure.functions as funcimport jsonapp = func.FunctionApp()@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS)def hello(req: func.HttpRequest) -> func.HttpResponse: name = req.params.get('name', 'World') return func.HttpResponse( json.dumps({"message": f"Hello, {name}!"}), mimetype="application/json", status_code=200 )
Azure Functions Core Tools
Local development and deployment commands.
bash
func init MyFunctionApp --python # Scaffold projectfunc new --name HttpExample --template "HTTP trigger"func start # Run locallyfunc azure functionapp publish myFuncApp # Deploy to Azure
Provisioning with az CLI
Create the Function App resource in Azure.
bash
az functionapp create \ --resource-group myRG \ --consumption-plan-location eastus \ --runtime python --runtime-version 3.11 \ --functions-version 4 \ --name myUniqueFuncApp \ --storage-account mystorageacct
Triggers & Bindings
Key triggers & bindings to know.
- HTTP Trigger- Invokes the function on an incoming HTTP request
- Timer Trigger- Runs on a CRON schedule (e.g. "0 */5 * * * *")
- Blob Trigger- Fires when a blob is created/updated in Azure Storage
- Queue Trigger- Processes messages from Azure Storage Queue or Service Bus
- Output Binding- Declarative way to write data (e.g. to Cosmos DB) without SDK boilerplate
Hosting Plans
Key hosting plans to know.
- Consumption Plan- Pay-per-execution, auto-scales, has cold starts
- Premium Plan- Pre-warmed instances, VNet integration, no cold starts
- Dedicated (App Service) Plan- Runs on reserved VMs, predictable cost, no auto-scale to zero
- Container Apps hosting- Run functions as containers on Azure Container Apps
Pro Tip
Use the Premium plan (not Consumption) for latency-sensitive production workloads — it keeps pre-warmed instances ready and eliminates the cold-start penalty that Consumption plans incur after idle periods.
Was this cheat sheet helpful?
Explore Topics
#AzureFunctions#AzureFunctionsCheatSheet#CloudComputing#Intermediate#PythonHTTPTrigger#AzureFunctionsCoreTools#ProvisioningWithAzCLI#TriggersBindings#Functions#CheatSheet#SkillVeris
Advertisement
Sri Hayavadhana Info-Tech
Professional Web Designing Services
- Responsive Websites
- E-commerce Solutions
- SEO Friendly Design
- Fast & Secure
- Support & Maintenance