Microsoft Azure

Azure App Service and Functions

Choose Azure App Service or Azure Functions by comparing request handling, events, runtime configuration, identity, scaling, deployment, and observability.

Intermediate14 min read
Microsoft Azure lessonCloud foundationsLearn

Choose Azure App Service or Azure Functions by comparing request handling, events, runtime configuration, identity, scaling, deployment, and observability.

What you will be able to do

  • Explain the five core cloud decisions involved in azure app service and functions.
  • Choose a cloud resource or configuration that matches a stated workload requirement.
  • Interpret provider state, workload behavior, and operational evidence before changing broader cloud state.
  • Apply an inventory, select, configure, verify, recover, and document workflow to a realistic cloud decision.

01

Build the Cloud Decision Map

Choose Azure App Service or Azure Functions by comparing request handling, events, runtime configuration, identity, scaling, deployment, and observability.

Cloud services combine provider-managed layers with customer-controlled configuration. A useful design keeps workload need, resource scope, identity, network path, data, health, cost, and recovery visible instead of relying on a product name.

Start with an inventory and read-only evidence. Record the account or project, location, resource identifier, owner, configuration source, dependencies, expected behavior, and current observation before changing state.

02

App Service app

Azure App Service hosts supported web applications and APIs on a managed application platform. It answers one distinct architecture or operating question within azure app service and functions.

Choose it for a continuously addressable web workload with supported runtime needs. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not assume the platform owns application code, data, identity, or safe configuration. The expected evidence is the deployed app serves the expected endpoint and health path.

03

App runtime

Runtime, operating plan, configuration, deployment slot, and scale settings shape how an App Service application executes. It answers one distinct architecture or operating question within azure app service and functions.

Pin supported runtime settings and separate secrets from ordinary application configuration. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not modify production configuration without a tested rollback path. The expected evidence is the active deployment maps to one version and configuration source.

04

Function event

Azure Functions runs bounded code in response to supported triggers such as HTTP requests, schedules, messages, or data changes. It answers one distinct architecture or operating question within azure app service and functions.

Define event schema, retry behavior, idempotency, timeout, and failure handling. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not rely on local instance state as durable function data. The expected evidence is repeated event delivery produces one safe outcome.

05

Managed identity

A managed identity lets an Azure-hosted workload request tokens without storing ordinary application credentials. It answers one distinct architecture or operating question within azure app service and functions.

Grant the identity only the roles required by the application path. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Do not attach broad roles to avoid diagnosing one missing permission. The expected evidence is required resource access succeeds and excess access is denied.

06

Application evidence

Useful platform evidence joins deployment state, application health, metrics, structured logs, traces, and dependency results. It answers one distinct architecture or operating question within azure app service and functions.

Trace one request or event from entry to application outcome. Keep the target, location, identity, configuration, and observed outcome together so another person can reproduce the reasoning.

Respect this boundary: Stop when diagnostic logging would expose secrets or protected payload data. The expected evidence is the outcome is attributable to a version, identity, and dependency path.

07

Verify One Cloud Change

Before changing cloud state, name the exact resource, required authorization, user impact, expected signal, cost effect, and recovery path. Preview the scope with an inventory or policy view and protect data or configuration that cannot be recreated safely.

Make one narrow change and stop. If the provider response, location, identity, dependency, or effective configuration differs from the plan, preserve that evidence and reassess instead of adding unrelated changes.

A successful API response or portal notification proves only that an operation was accepted. Repeat the original workload path, inspect health and security signals, verify the resulting resource state independently, and remove temporary access or test resources.

08

Recap Before Practice and Prove

Start with app service app. Choose it for a continuously addressable web workload with supported runtime needs. Confirm that the deployed app serves the expected endpoint and health path.

Keep app runtime separate. Pin supported runtime settings and separate secrets from ordinary application configuration. Respect this boundary: do not modify production configuration without a tested rollback path.

Use function event as its own decision. Define event schema, retry behavior, idempotency, timeout, and failure handling. Preserve the resulting evidence.

Before a broader change, review managed identity. Grant the identity only the roles required by the application path. Stop when do not attach broad roles to avoid diagnosing one missing permission.

Finish with application evidence. Trace one request or event from entry to application outcome. Record the final state, health signal, recovery boundary, owner, and next decision.

NEXT STEP

Turn reading into recall

Practice the concepts without a timer, with coaching and retry available after every answer.

Open guided practice