An application can be deployed from a trusted repository and still expose a vulnerable container image, an overly privileged Kubernetes identity or an unprotected backend API. Microsoft SC-500 covers Azure Kubernetes Service (AKS), Azure Container Registry (ACR), Container Apps, Functions, Logic Apps, App Service, Web Application Firewall and API Management. These controls apply at different boundaries: software supply chain, platform runtime, network exposure, workload identity and the authenticated business operation.
Consider a retailer using an AKS service to process orders, a Function to handle callbacks, and an API gateway facing mobile clients. The application needs approved images, separated environments, secret-free workload authentication where supported and network restrictions that preserve legitimate traffic. A WAF can reduce certain malicious HTTP requests; it does not decide whether one customer may read another customer’s order. Threat modeling should identify the control layer responsible for each unsafe operation.
Start at the container supply chain
An image may contain vulnerable libraries, unnecessary packages or leaked credentials. Limit who can push images to Azure Container Registry, use controlled build identities, scan supported artifacts and capture the image digest deployed to each environment. Tag names such as “latest” are convenient but insufficient for reproducing a release. Define which image sources are trusted and how emergency rebuilds are performed when a critical base-layer vulnerability is disclosed.
A scan result is not a patch. Determine whether the vulnerable component is reachable by the deployed code, whether a corrected dependency exists and how deployment can proceed safely. The team might rebuild and redeploy rather than patch a mutable running container. Protect the pipeline credentials and artifact signing or verification process where supported; don’t let a compromised CI job simply replace an approved image with an unreviewed one.
Configure AKS identity and network boundaries
For AKS, separate cluster administration from application workload identity. Use least-privilege Kubernetes RBAC, suitable Microsoft Entra integration and narrowly scoped service accounts. An application pod should not need cluster-admin privileges to read a queue or retrieve a secret. Review network policy, ingress exposure, outbound routes and the security posture of the nodes and control plane using the supported AKS capabilities.
Build a test in which a workload should reach its own database but not the secret store of another namespace or application. Verify access using both Kubernetes configuration and the downstream Azure resource’s authorization. A Kubernetes network policy controls permitted traffic paths but does not turn a leaked token into an invalid credential. For downstream Azure APIs, validate the workload identity, token audience and resource-specific role assignments: Kubernetes network policy cannot itself authorize an API request.
Use Defender for Containers to review runtime findings
Defender for Containers can provide supported misconfiguration, vulnerability and runtime threat signals across configured scopes. Verify the chosen plan, resource coverage and supported integrations; an onboarding notice does not prove every namespace or image is assessed. Correlate a suspicious activity alert with the container image digest, node, service account, outbound connection and deployment history before attributing it to an attacker.
Test the incident handoff process in a nonproduction cluster. Confirm that responders can identify an affected workload, suspend or redeploy it, preserve relevant logs and recover an earlier signed image without compromising the rest of the service. A policy that automatically deletes all flagged pods could interrupt a critical application on a false positive, so choose enforcement according to the organization’s recovery capacity and risk tolerance.
Secure Azure Container Apps and Container Instances
Container Apps and Container Instances have platform-managed elements and networking models that differ from AKS. Decide whether each service needs an internet-facing ingress, private ingress, access to virtual network resources or a trusted outbound route. Ensure environment variables and secret references do not expose credentials in deployment manifests or diagnostic traces. Determine which identity performs image pulls and which identity accesses runtime dependencies.
A Container Apps revision can be deployed successfully yet fail to serve requests because its downstream database is private or its managed identity lacks permission. Distinguish an unavailable network path from forbidden authorization. Test the deployment’s startup, health probe, expected HTTP responses and denied operations. Track the revision and image identifier in runtime telemetry for reliable rollback.
Protect serverless application triggers and connectors
Azure Functions and Logic Apps can receive events from HTTP, storage, messaging and supported connectors. Each trigger has a different trust surface. Decide whether authentication, private networking, access restrictions or a managed identity should apply. Do not rely solely on a hard-to-guess function URL or a connector key when stronger platform controls and an approved application design are available.
For an HTTP-triggered Function, validate request authenticity, allowed operations and replay behavior. For a Logic App that updates tickets, use a bounded connector identity and confirm that incoming event fields cannot redirect actions to an unauthorized tenant. If a workflow retries after timeout, idempotency checks should prevent duplicate order changes or notifications. A secure automation system must be able to explain each side effect independently of the text that triggered it.
Configure App Service network and identity controls
App Service offers authentication and access restrictions that can protect supported application deployments, but the underlying application still owns its authorization logic. Choose appropriate TLS settings, private endpoints or outbound integration, identities and secret references. When traffic must reach a private database, confirm both the egress path and the database’s actual principal permissions. A green application health check does not validate the security of its administrative endpoints.
Stage configuration changes and verify responses from allowed and forbidden clients. If a new access restriction prevents legitimate monitoring, redesign the monitoring source or policy rather than allowing the entire internet. Review whether deployment slots, test environments and scheduled jobs use the same identity configuration as production, especially during slot swaps or rollbacks.
Distinguish WAF filtering from API authorization
A Web Application Firewall helps inspect supported HTTP traffic and mitigate certain known request patterns when configured with appropriate policies. It cannot guarantee protection against a valid-looking request sent by an authenticated user who asks for another user’s record. Back-end authorization must validate object ownership and operation eligibility, independent of what the WAF allowed.
Use Azure API Management to authenticate clients, apply scoped policies, validate or transform requests where supported, and observe API usage. Test a case where a valid access token lacks the correct business entitlement. The response should be denied by the application or policy layer; adding an IP allowlist is not an adequate substitute. For AI-backed endpoints, the AI gateway and agent security implementation extends the same principle to model and tool calls.
Defender for Containers and API Management protection depend on enabled plans, resource scope and configuration. A recommendation or finding does not prove a specific AKS node was covered or a malicious request was blocked. Validate in an authorized test tenancy.
Release the service with a failure-focused test suite
A meaningful release suite includes an unapproved container image, a pod with excess privileges, a forbidden east-west connection, an expired API credential, an unavailable private database, a malicious HTTP payload, and a retry of a previously committed transaction. Observe both prevention and safe failure responses. Maintain a traceable deployment of source revision, build artifact, image digest and application configuration.
SC-500 implementation is about deciding which service-level and application-level protections jointly contain an exploit. Engineers should be able to demonstrate that the system still fulfills authorized business requests while unnecessary tool, network and data permissions are unavailable to a compromised application component.