Home › Studies › SC-500 › Secure Compute › App Platform Security

App Platform Security

Functions · Logic Apps · App Service · Web Application Firewall · API Management policies

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Azure Functions: securing HTTP endpoints

Functions runs on App Service infrastructure. Microsoft lists these techniques for public HTTP endpoints, ordered from most basic to most secure and restrictive:

TechniqueWhat it does
Require HTTPSClients can use HTTP or HTTPS by default. Redirect HTTP to HTTPS so the connection is encrypted and authenticated.
Require access keysAnything except the anonymous level needs a key in the request.
App Service Authentication/AuthorizationSign in clients with Microsoft Entra ID or another identity provider and make authorization decisions on identity.
Azure API ManagementAuthenticate requests in API Management. You can configure the function app to accept requests only from the API Management IP address.
Deploy to a virtual networkUse a private endpoint (Flex Consumption, Elastic Premium or Dedicated plans).
Deploy in isolationUse an App Service Environment, a dedicated hosting environment.

HTTP trigger authorization levels

LevelKey required
anonymousNo access key
functionA function-specific key
adminThe master key

Access keys only make access harder. Microsoft says the only way to truly secure endpoints is positive authentication of clients, so use identity (App Service authentication or API Management) when you must know who called.

Network access for Functions and App Service

NeedFeatureRemember
Keep the public endpoint, allow or deny sourcesAccess restrictionsPriority-ordered allow/deny list. With one or more entries an implicit deny all ends the list. Lowest priority number is enforced first. Limit of 512 rules.
Restrict a subnetAccess restriction rule of type Virtual Network (service endpoint)Does not work for apps in an App Service Environment; control access there with IP rules.
Private IP inboundPrivate endpointDisable public network access to get isolation. Access restriction rules are not evaluated for private endpoint traffic.
Outbound to private resourcesVirtual network integrationOutbound only. Does not give private inbound access.
Block or filter outbound from integrationNSG on the integration subnetInbound NSG rules do not apply because integration provides no inbound access.

Functions hosting plans

PlanInbound access restrictionsPrivate endpointOutbound VNet integration
Flex ConsumptionSupportedSupportedSupported
ConsumptionSupportedNot supportedNot supported
Elastic PremiumSupportedSupportedSupported
Dedicated (App Service)SupportedSupportedSupported

App Service: authentication, identity and secrets

Azure Logic Apps

Plan typeBuilt-in roles named by Learn
ConsumptionLogic App Contributor (manage workflows, cannot change access), Logic App Operator (read, enable, disable; cannot edit), Contributor
StandardLogic Apps Standard Reader, Operator, Developer, Contributor

Azure Web Application Firewall

ItemFront Door WAFApplication Gateway WAF
Rule baseDefault Rule Set (DRS), Microsoft-managedOWASP Core Rule Set (CRS)
TiersPremium has full capabilities. Standard supports only custom rules.WAF_v1 and WAF_v2. Policy associations only on WAF_v2.
Policy scopeProfile, domain or route. The most specific scope wins (route, then domain, then profile).Whole gateway (global), a listener, or a path-based rule.
ModesDetection (log only) and PreventionDetection and Prevention. A new policy defaults to Detection.
Default block response403 with "The request is blocked." A custom status and message are policy-level.Not stated in the pages used

API Management: protecting the back end

PolicyUse it toKey details
validate-jwtEnforce a valid JWT from an identity providerToken from header, query parameter or value. Failed validation returns 401 by default. require-expiration-time defaults to true.
ip-filterAllow or deny callers by IP or rangeallow: unlisted callers are denied. forbid: unlisted callers are allowed. Inbound section.
rate-limitStop short usage spikes per subscriptionCaller gets 429 Too Many Requests. Window up to 300 seconds. Depends on the subscription key.
quota / quota-by-keyCap calls or bandwidth over longer periodsUse with rate limits for brute-force and resource-consumption threats.
authentication-managed-identityAuthenticate API Management to a back endSets a bearer token in Authorization. System-assigned identity if no client-id. resource is the target API application ID.
Client certificates (mTLS)Authenticate clients to API ManagementCertificate in CER or PFX. Key Vault references update within 4 hours of a vault change.

CLI and PowerShell

TaskAzure CLIPowerShell
Add an App Service access restriction ruleaz webapp config access-restriction add --resource-group ResourceGroup --name AppName --rule-name 'IP example rule' --action Allow --ip-address 122.133.144.0/24 --priority 100Add-AzWebAppAccessRestrictionRule -ResourceGroupName "ResourceGroup" -WebAppName "AppName" -Name "Multi-source rule" -IpAddress "192.168.1.0/24,192.168.10.0/24,192.168.100.0/24" -Priority 100 -Action Allow
Allow Azure Front Door only (service tag rule)az webapp config access-restriction add --resource-group ResourceGroup --name AppName --rule-name "Azure Front Door example" --action Allow --priority 200 --service-tag AzureFrontDoor.Backend --http-header x-azure-fdid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-
Assign a system-assigned managed identity to an appaz webapp identity assign --resource-group <group-name> --name <app-name>Set-AzWebApp -AssignIdentity $true -ResourceGroupName <group-name> -Name <app-name>
Route all outbound traffic through the virtual network (Key Vault reference to a restricted vault)az webapp config set --resource-group <group-name> --subscription <subscription> --name <app-name> --generic-configurations '{"vnetRouteAllEnabled": true}'Update-AzFunctionAppSetting -Name <app-name> -ResourceGroupName <group-name> -AppSetting @{vnetRouteAllEnabled = $true}

Exam Tips

Tick each tip once you can answer it without looking.

“HTTP trigger must need the master key” → authorization level admin. Trap: function needs only a function-specific key; anonymous needs none.

“Function endpoint must identify the caller, not just hold a key” → App Service authentication or API Management; keys only make access harder. Trap: An access key says the caller has the key, not who the caller is.

“Consumption-plan function must be reachable on a private IP only” → Move to Flex Consumption, Elastic Premium or Dedicated and add a private endpoint. Trap: Consumption supports no private endpoint and no outbound virtual network integration.

“Turn off the function /admin endpoints” → Set functionsRuntimeAdminIsolationEnabled to true. Trap: Exposed admin endpoints take the app's master key.

“App with a private endpoint is still reachable from the internet” → Disable public network access. Trap: Private endpoints and public access coexist. Access restrictions are not evaluated for private endpoint traffic.

“Give an app private inbound access from a virtual network” → Private endpoint. Trap: Virtual network integration is outbound only and cannot share the private endpoint's subnet.

“Request matches no access restriction rule” → Denied (implicit deny all once any rule exists); lowest priority number is enforced first. Trap: The default with no rules is to accept traffic from any address.

“Easy Auth on a REST API: what to return to anonymous callers” → HTTP 401 Unauthorized. Trap: 302 redirect is recommended for websites. Authentication alone does not authorize; check claims in your app.

“App setting must read a secret from Key Vault with Azure RBAC” → Key Vault Secrets User on the app's managed identity; a rotated secret arrives within 24 hours. Trap: Get secrets is the access-policy model equivalent.

“Consumption Request trigger must accept only Entra OAuth” → Add an authorization policy and disable SAS authentication. Trap: Both schemes together raise an error.

“Hide one action's output in run history and keep it out of Log Analytics” → Secure inputs or outputs on that action. Trap: An IP range of 0.0.0.0-0.0.0.0 hides all inputs and outputs from everyone.

“Standard logic app behind a private endpoint, Event Grid trigger fails” → Managed API webhook triggers run in the public cloud and cannot call a private network. Trap: Private Link does not affect outbound traffic.

“Front Door WAF needs the managed Default Rule Set” → Premium tier. Trap: Standard supports only custom rules.

“Different WAF rules for one site on Application Gateway” → A policy associated with that listener (WAF_v2). Trap: A global policy applies to every site; policy associations are not supported on WAF_v1.

“WAF custom rule that logs but must not stop evaluation” → Action Log; lower priority numbers run first and custom rules run before the Default Rule Set. Trap: Allow, Block and Redirect all exit.

“WAF blocks a legitimate Entra token header” → Per-rule exclusion for that header, as narrow as possible. Trap: A rule-set-wide exclusion leaves more room for attackers.

“API Management calls a Microsoft Entra back end without secrets” → authentication-managed-identity with resource = the API's application ID. Trap: validate-jwt checks inbound tokens; it does not authenticate to the back end.

“API Management: allow only a partner's address range” → ip-filter with action allow. Trap: With forbid, unlisted callers are allowed.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Container SecuritySecure Compute overview →