Study guide

11.2 Azure Functions and Logic Apps Security

Microsoft Certified: Cloud and AI Security Engineer Associate SC-500

Track your progress as you read

Finished sections get a check mark.

1 Introduction & Exam Overview

1.1 Current Exam Facts 1.2 Skills Measured & Weightings 1.3 Study Path, Prerequisites & Exam Strategy

2 Microsoft Entra ID Secure Access

2.1 Privileged Identity Management (PIM) 2.2 Conditional Access Policies 2.3 MFA and Passwordless Authentication 2.4 Application Identities, OAuth Consent & Managed Identities

3 Azure Key Vault Secrets and Keys

3.1 Deploy and Configure Key Vault 3.2 Access Control and Firewall for Key Vault 3.3 Keys, Secrets, Certificates & Defender for Key Vault

4 Governance, Policy & RBAC

4.1 Azure Policy for Security Controls 4.2 Defender for Cloud Compliance & Security Standards 4.3 Resource Locks and Azure RBAC 4.4 Custom Roles, Overprivileged Access, Backup & IaC Security

5 Secure Storage Accounts

5.1 Storage Account Security Fundamentals 5.2 Storage Firewalls and Access Policies 5.3 Defender for Storage

6 Secure Databases

6.1 Azure SQL Platform Security 6.2 Database Auditing 6.3 Defender for Databases

7 Network Security Groups & Virtual Network Manager

7.1 Network Security Groups and Application Security Groups 7.2 Azure Virtual Network Manager Security Admin Rules 7.3 Virtual WAN and VPN Security

8 Private Access, Private Link & Azure Firewall

8.1 Microsoft Entra Private Access 8.2 Private Endpoints and Private Link 8.3 Azure Firewall 8.4 Network Watcher Diagnostics and Effective Rules

9 Security for AI Workloads

9.1 Purview DSPM for AI and Data Overexposure 9.2 Copilot Studio Protection and Agent Management 9.3 Microsoft Entra Agent ID Security 9.4 Defender for AI, Foundry Guardrails & AI Gateway

10 Secure Servers and Virtual Machines

10.1 Disk Encryption 10.2 Azure Bastion and JIT VM Access 10.3 Azure Arc and Defender for Servers 10.4 Trusted Launch, VM Security Features & Machine Configuration

11 Application Platform Security

11.1 Containers: AKS, ACR, ACI, Container Apps & Defender for Containers 11.2 Azure Functions and Logic Apps Security 11.3 Azure App Service Security 11.4 Web Application Firewall and API Management Protection

12 Defender for Cloud Security Posture

12.1 Defender CSPM and Secure Score 12.2 Workload Protection Plans and Multicloud Connectors 12.3 Vulnerability Management and Defender EASM

13 Microsoft Sentinel Activity and Event Collection

13.1 Workspaces, Roles & Content Hub 13.2 Data Connectors, Syslog/CEF & Windows Event Collection 13.3 Custom Tables, Retention & Purview Audit 13.4 Automation Rules and Playbooks

14 Microsoft Security Copilot & Final Review

14.1 Microsoft Security Copilot Workspaces and Roles 14.2 Plugins and Security Agents 14.3 Final Review and Exam-Day Strategy

11.2 Azure Functions and Logic Apps Security

Key Takeaways Explain This Topic AI

Azure Functions authentication ranges from function/host keys (shared secrets) to App Service Authentication (Easy Auth) with Microsoft Entra—prefer identity-based auth for production APIs.

Network security for Functions includes access restrictions, private endpoints for inbound isolation, and VNet integration for private outbound to PaaS.

Managed identity lets Functions and Logic Apps reach Key Vault, Storage, Service Bus, and other Azure resources without connection strings in code.

Logic Apps security emphasizes access control (who can invoke/manage), secure inputs/outputs in run history, and managed identity on connectors where supported.

SC-500 trap: a function key in a query string is not equivalent to Entra authentication with Conditional Access and least-privilege app roles.

Last updated: July 2026

11.2 Azure Functions and Logic Apps Security

Quick Answer: SC-500 skills measured include security controls for Azure Functions (authentication and network access) and Azure Logic Apps . Prefer Easy Auth / Microsoft Entra and managed identity over long-lived function keys and connection strings; lock inbound paths with private endpoints / access restrictions and outbound paths with VNet integration . For Logic Apps, control who can call and manage workflows and enable secure inputs/outputs so secrets do not appear in run history.

Serverless platforms shrink OS patching but expand identity and secret sprawl if teams default to keys and connection strings. This section is the SC-500 playbook for Functions and Logic Apps as first-class application platforms.

Azure Functions authentication models

Functions expose HTTP triggers and many other trigger types. Authentication choices determine who can invoke the app.

  • Model How it works Strengths Weaknesses
  • Anonymous No key or identity required Easy demos Never for sensitive production

Function key code query string or x-functions-key header for a specific function Simple shared secret Secret distribution, rotation, logging leaks

Host key Key valid across functions in the app Convenient for internal tools Broader blast radius if leaked

Master (admin) key Highest privilege host key; management operations Break-glass ops Extremely sensitive—treat like root

App Service Authentication (Easy Auth) Platform validates Entra (or other IdP) tokens before code runs Identity-based, Conditional Access possible Requires app registration / audience design

Front with APIM Gateway validates JWT, rate limits; backend may require Entra or keys Central policy, partner management Architecture complexity

Function keys vs Entra / Easy Auth (the exam trap)

Function keys are shared secrets. Anyone with the key can call the endpoint (subject to network path). Keys do not give you:

  • User or workload identity in Entra
  • Conditional Access , MFA, device compliance
  • Fine-grained app roles / scopes
  • Easy enterprise revocation without rotating secrets everywhere

Easy Auth (App Service Authentication) validates tokens at the platform layer. Typical production patterns:

Register an app in Microsoft Entra ID.

Configure Functions authentication to require Entra.

Callers present bearer tokens; optional authorization policies map roles.

For service-to-service, use managed identity of the caller (for example APIM or another Azure app) rather than a shared function key.

Exam phrasing: When a scenario says “no shared secrets,” “Conditional Access,” or “only Contoso’s APIM managed identity may call the function,” choose Entra/Easy Auth + managed identity , not “email the function key to partners.”

Keys still appear in some automation and legacy integrations. If used, store them in Key Vault , rotate, never commit to Git, and prefer least-privilege function-level keys over master keys.

Network access for Functions

Authentication is not enough if the data plane is open to the world.

Inbound controls

  • Control Purpose
  • Access restrictions Allow/deny by IP, service tag, or Virtual Network rules on the public endpoint

Private endpoints Place the site on a private IP in your VNet ( privatelink.azurewebsites.net DNS); disable public network access when fully private

SCM / Kudu restrictions Separately restrict the management/deployment endpoint (see App Service section themes)

Outbound controls

  • Control Purpose
  • Regional VNet integration Route outbound traffic through a delegated subnet
  • Private endpoints / service endpoints on dependencies Reach Storage, SQL, Key Vault, Service Bus privately
  • Route All (where applicable) Force app outbound through the VNet for consistent inspection

Combined pattern: Private inbound (only APIM or internal callers) + VNet integration outbound + managed identity to dependencies = no public function URL for attackers to spray keys against.

Hosting plan notes (exam awareness)

Networking features vary by plan (Consumption, Premium, Dedicated, Flex Consumption). SC-500 focuses on capability intent —private access, VNet integration, identity—not memorizing every SKU matrix cell. If a scenario requires private endpoints and VNet integration, choose a plan/configuration that supports them rather than arguing with Consumption limitations.

Managed identity for Functions

Enable system-assigned or user-assigned managed identity on the function app, then grant least-privilege RBAC:

  • Key Vault Secrets User on vaults
  • Storage data roles instead of account keys
  • Azure RBAC on Service Bus, Event Hubs, Cosmos DB as needed

Use Key Vault references in application settings ( @Microsoft.KeyVault(...) ) so secrets are not stored as plain app settings. For triggers that support identity-based connections (Service Bus, Event Hubs, and others), prefer identity over connection strings.

Code still matters: Even with Easy Auth, developers must not reintroduce secrets in source. Identity removes the need for many credentials but does not stop hardcoding if developers ignore platform features.

Logic Apps security

Logic Apps automate workflows across SaaS and Azure connectors. Security focuses on who can start and manage runs , what connectors can access , and what appears in logs .

Consumption vs Standard (high level)

  • Aspect Consumption Standard
  • Hosting Multi-tenant Single-tenant workflow runtime (App Service-like)
  • Networking / isolation More limited private options historically Stronger VNet / private patterns
  • Managed identity Available with constraints by connector First-class for many Azure connectors

SC-500 takeaway Still control access and secure I/O Prefer Standard when enterprise network isolation is required

Know that Standard is the usual answer when the scenario demands VNet integration , private endpoints, and deeper isolation similar to App Service.

Access control

Restrict who can manage the Logic App (Azure RBAC on the resource).

Restrict who can invoke HTTP request triggers (SAS/callback URLs are secrets; prefer Entra-authenticated patterns where available, or put APIM in front).

Treat trigger callback URLs like passwords—regenerate if leaked.

Secure inputs and secure outputs

Logic Apps run history can display action inputs and outputs. If a connector returns an API key, password, or personal data, that history becomes a sensitive data store .

  • Setting Effect
  • Secure inputs Hides action inputs in run history / designer views
  • Secure outputs Hides outputs and reduces downstream leakage into later actions’ visible history

Exam trap: Enabling managed identity does not automatically redact run history. You still configure secure inputs/outputs on sensitive actions.

Managed identity connectors

Many Azure connectors support managed identity authentication (Storage, Key Vault, Service Bus, Azure Resource Manager, and others depending on connector). Prefer identity over storing usernames/passwords or connection strings in the workflow definition.

For SaaS connectors that require OAuth user consent or API keys:

  • Use least-privilege accounts
  • Store secrets in Key Vault / secure parameters
  • Review connector permissions during access reviews
  • Scenario: invoice automation workflow

A Logic App receives invoices, reads a storage account, calls a custom API, and emails finance.

Hardened design:

Standard Logic App in VNet-integrated environment where required.

HTTP trigger not anonymously on the open internet—front with APIM + JWT or authenticated trigger pattern.

Storage and Key Vault connectors use managed identity .

Actions that handle bank account numbers mark secure inputs/outputs .

Azure RBAC limits editors; production changes require PIM-eligible roles.

Monitor failed authentication and unusual run volume in logs / Sentinel.

Functions + Logic Apps + APIM (reference chain)

A frequent SC-500 architecture:

External client obtains Entra token.

API Management validate-jwt , rate-limits, optional IP filter.

APIM calls Function backend with authentication-managed-identity .

Function Easy Auth accepts only APIM’s app identity.

Function uses its managed identity for Key Vault and data stores.

Logic Apps (if orchestration) use managed identity connectors and secure I/O.

No function host keys in partner emails; every hop is attributable.

Keys vs identity decision table

  • Scenario Prefer
  • Public partner API with user/app identities Easy Auth / APIM JWT
  • Internal automation with Azure resources Managed identity
  • Quick lab with throwaway data Function key acceptable temporarily
  • Compliance requirement: no shared secrets Entra + managed identity only
  • Workflow history may show PII Secure inputs/outputs
  • Function must never be on public internet Private endpoint + disable public access
  • SC-500 traps

Function key = MFA-backed user auth — False; keys are bearer secrets.

Private endpoint without DNS — Private Link requires correct private DNS or resolution fails.

Logic Apps “secure” because Premium connector — Connector SKU ≠ secret hygiene or run-history redaction.

Storing master key in app settings as plain text — Use Key Vault references and minimize master key use.

Assuming Consumption always supports every private networking feature — Match plan to network requirements.

Engineer checklist

Inventory Functions: anonymous vs key vs Easy Auth; eliminate anonymous on sensitive endpoints.

Move partner-facing APIs to Entra/Easy Auth and/or APIM JWT validation.

Enable managed identity ; replace connection strings where possible.

Apply access restrictions or private endpoints ; integrate outbound VNet when talking to private PaaS.

For Logic Apps: RBAC least privilege, protect trigger URLs, enable secure inputs/outputs , prefer identity connectors.

Send diagnostic logs to Log Analytics / Sentinel for auth failures and anomalous invocations.

Bottom line: On SC-500, Functions and Logic Apps security is mostly identity + network + secret hygiene . If the answer is “share the host key,” look for a better design using Entra, managed identity, and private access .