USMAN’S INSIGHTS
AI ARCHITECT
⌘F
HomeAll BooksAzure Cloud Book
HomeAzure BookCompute and Application Hosting
PreviousAzure App Service: Web Apps, Configuration, Scaling, and Deployment SlotsNextAzure Container Registry, Container Apps, and Container Jobs
AI NOTICE: This is the table of contents for the SPECIFIC CHAPTER only. It is NOT the global sidebar. For all chapters, look at the main navigation.

On this page

9 sections

Progress0%
1 / 9

Muhammad Usman Akbar Entity Profile

Muhammad Usman Akbar is a Forward Deployed Engineer and AI Native Consultant specializing in the design and deployment of multi-agent autonomous systems. Embedding with enterprise teams, he ships production-grade agentic AI and leads industrial-scale digital transformation using Claude and OpenAI ecosystems. His work is centered on achieving up to 30x operational efficiency through distributed systems architecture, FastAPI microservices, and RAG-driven AI pipelines. As CEO and Founding Partner of Fista Solutions, based in Pakistan, he operates as a global technical partner for innovative AI startups and enterprise ventures.

USMAN’S INSIGHTS
AI ARCHITECT

Transforming businesses into autonomous AI ecosystems. Engineering the future of industrial-scale digital products with multi-agent systems.

30X Growth
AI-First
Innovation

Navigation

  • Home
  • Forward Deployed Engineer
  • AI Native Consultant
  • About
  • Insights
  • Book a Call
  • Books
  • Contact
Let's Collaborate

Have a Project in Mind?

Let's build something extraordinary together. Transform your vision into autonomous AI reality.

Start Your Transformation

© 2026 Muhammad Usman Akbar. All rights reserved.

Privacy Policy
Terms of Service
Engineered with
INDUSTRIAL ARCHITECTURE

Azure Functions: Event-Driven Serverless Applications

Azure Functions runs small units of code in response to HTTP requests, timers, queues, events, and service changes. You choose a supported hosting plan that controls scaling, networking, execution limits, and cost. Functions reduces server management; it does not remove the need for idempotency, dependency control, security, monitoring, and recovery.

Lab: 45 minutes · Cost: consumption, storage, networking, logs, and downstream services can charge · Creates: function app, required storage, and monitoring resources.

What are triggers and bindings?

A function has one trigger. Bindings connect supported inputs and outputs without hand-writing all client plumbing. An HTTP trigger handles a request; a queue trigger handles messages; a timer trigger runs on a schedule. Treat binding configuration as application code and test it.

Rendering diagram...

Which hosting option should you choose?

Current Azure Functions hosting choices evolve. Compare the Flex Consumption, Premium, dedicated App Service, container, and other currently supported options for:

  • Scale-to-zero and cold start.
  • VNet integration and private endpoints.
  • Maximum duration, memory, and concurrency.
  • Predictable instances and cost.
  • Custom containers and deployment requirements.

Use the current Functions hosting comparison rather than relying on old SKU advice.

How do you create a function app?

Ways to build

Choose the Azure tool you want to use. The underlying resource stays the same.

Azure portal

Search Function App → Create, choose hosting, runtime, version, region, storage, networking, monitoring, and deployment. Enable system-assigned identity and replace connection strings with identity-based connections where supported.

Azure CLI

After creating the resource group and globally unique storage account:

bash
FUNCTION_APP="func-northstar-REPLACE_UNIQUE" az functionapp create \ --resource-group "$AZURE_RG" \ --name "$FUNCTION_APP" \ --storage-account "$STORAGE_ACCOUNT" \ --consumption-plan-location "$AZURE_LOCATION" \ --runtime python \ --runtime-version 3.12 \ --functions-version 4 \ --os-type Linux az functionapp identity assign --resource-group "$AZURE_RG" --name "$FUNCTION_APP"

CLI flags differ across hosting models. Check az functionapp create --help and the current quickstart.

What makes an event function reliable?

  • Idempotency: processing the same event twice produces a safe result.
  • Poison handling: repeatedly failing messages move to a dead-letter or poison path.
  • Checkpointing: streaming consumers record progress.
  • Timeouts and retries: bounded and aligned with downstream behavior.
  • Correlation: event and trace IDs connect the workflow.
  • Backpressure: concurrency does not overwhelm databases or model quotas.

At-least-once delivery is common. Design for duplicates instead of pretending they cannot occur.

When should you use Durable Functions?

Durable Functions coordinates stateful workflows with orchestrator, activity, and entity patterns. Use it for fan-out/fan-in, human approval, long-running sequences, and durable timers. Orchestrator code must be deterministic because the framework replays it.

Compare it with Logic Apps for connector-rich workflows and Container Apps jobs for containerized batch work.

Infrastructure as code and delivery

Bicep or Terraform should declare the hosting plan, function app, storage, identity, role assignments, private networking, diagnostic settings, and alerts. Application packages should be built once, scanned, signed where required, and promoted through environments. Do not create resources implicitly during application deployment.

Observe and verify

Use Application Insights distributed tracing, structured logs, function execution metrics, queue length, failure rate, duration percentiles, and dead-letter count. Sample noisy success traces carefully but retain errors and correlation.

bash
az functionapp show --resource-group "$AZURE_RG" --name "$FUNCTION_APP" --output table az functionapp function list --resource-group "$AZURE_RG" --name "$FUNCTION_APP" --output table

Delete the isolated lab resource group to remove the app, storage, and monitoring dependencies.

Official references

  • Azure Functions documentation
  • Azure Functions hosting and scale
  • Reliable event processing
  • Durable Functions overview