Building a Cloud DMZ Without a Single VM, Firewall Appliance, or VPC
An architectural walkthrough of a cloud security perimeter constructed entirely from managed services.
In Part 1, we challenged a long-standing assumption in cloud security architecture: that a DMZ must contain a VPC, subnets, and network firewalls.
We concluded that a DMZ is fundamentally a security boundary, not necessarily a network segment.
Now comes the more interesting question.
Can we actually build a production-capable DMZ entirely from SaaS and PaaS services, without deploying any customer-managed networking infrastructure?
Yes, for suitable applications.
But building one requires more thought than simply connecting a WAF to a managed application.
Let’s construct an example using Cloudflare and Microsoft Azure.
1. The Architectural Challenge
Our objective is to create a public-facing web application with the following constraints:
- No customer-managed VPC or VNet.
- No virtual machines.
- No virtual firewall appliances.
- No traditional public or private subnets.
- No customer-managed routing infrastructure.
Despite these restrictions, we still need to provide the essential security capabilities of a DMZ.
External traffic must enter through controlled security services.
Users must be authenticated and authorized.
Applications must be protected against unauthorized access.
Backend data must not be exposed unnecessarily.
Security events must be logged and monitored.
The architecture must also remain scalable and manageable.
We will use managed services to satisfy these requirements.
2. Choosing the Building Blocks
Our reference architecture uses the following services.
| Security function | Managed service |
|---|---|
| Public DNS and security edge | Cloudflare |
| DDoS protection and WAF | Cloudflare |
| Identity provider | Microsoft Entra ID |
| API gateway | Azure API Management |
| Application hosting | Azure App Service |
| Database | Azure SQL Database |
| Secrets and cryptographic keys | Azure Key Vault |
| Logging and monitoring | Azure Monitor |
| Security analytics | Microsoft Sentinel |
All these components are available as managed services.
We are not deploying operating systems, configuring virtual firewall appliances, or creating customer-managed subnets.
However, the absence of a customer-managed VNet does not mean that networking has disappeared.
Every service still operates on infrastructure managed by its provider.
Our design transfers much of the underlying networking responsibility to those providers.
3. Following a Request Through the DMZ
Consider a customer accessing our application at https://app.example.com.
Step 1: The request reaches Cloudflare
The user’s HTTPS request first reaches Cloudflare.
Cloudflare provides the initial public security boundary.
Depending on configuration, it can enforce:
- Web Application Firewall rules.
- DDoS protection.
- Bot detection and mitigation.
- Rate limiting.
- Geographic or contextual access policies.
- TLS security requirements.
Malicious requests can be rejected before they reach the application infrastructure.
This is conceptually similar to the external firewall in a traditional DMZ, although the inspection capabilities and network coverage are different.
Step 2: The user authenticates
For an application requiring authentication, the user is redirected to Microsoft Entra ID through an OpenID Connect authorization flow.
Entra ID authenticates the user and may apply Conditional Access policies, including MFA and device requirements.
After successful authentication, the application establishes a secure session.
An important architectural distinction: Entra ID is an identity provider, not necessarily an inline network hop. The browser interacts with it during authentication, while the application and API gateway independently validate the relevant tokens or session credentials.
Step 3: API requests reach Azure API Management
The application makes API requests through the designated API gateway endpoint.
Azure API Management can apply policies such as:
- JWT validation.
- Issuer and audience verification.
- Rate limiting and quotas.
- Request validation and transformation.
- Header restrictions.
- API-level access policies.
Authentication establishes who the caller is.
Authorization determines what that caller is permitted to do.
The gateway must enforce appropriate policies, while the backend must independently enforce resource-level authorization.
An API gateway should never be the only place where sensitive business authorization decisions are made.
Step 4: The application executes in Azure App Service
The request reaches our application running on Azure App Service.
App Service provides a managed application runtime without requiring us to provision or maintain virtual machines.
The application validates the relevant security context and performs its business logic.
However, we must address a particularly important issue.
What prevents an attacker from bypassing the API gateway and accessing App Service directly?
If the App Service default hostname remains publicly reachable, an attacker may be able to send requests directly to the origin.
This is one of the most important security problems in a service-based DMZ.
We must configure an origin access restriction mechanism that ensures only authorized traffic paths can reach the application.
For example, App Service supports access restrictions, and certain Azure Front Door integration patterns allow restrictions based on service identity and request headers.
With third-party edge services, the architect must validate which origin-authentication and access-restriction mechanisms are supported.
A secret header alone should not be treated as a strong security boundary unless its protection, rotation, and bypass risks are carefully addressed.
Step 5: The application accesses Azure SQL Database
Our application now needs to retrieve customer information.
Azure SQL Database is a managed database service.
The application can authenticate using Microsoft Entra workload identity, avoiding long-lived database passwords.
Database permissions should follow least privilege.
A reporting service, for example, should not automatically receive privileges to modify every customer record.
For a VNet-less implementation, Azure SQL may use a publicly routable endpoint protected by tightly configured network access controls, encryption, and identity-based authentication.
This is an important compromise.
The database is not necessarily privately network-isolated simply because it is a managed PaaS service.
If the security requirement mandates disabling all public database access and using an Azure Private Endpoint, a VNet becomes necessary.
This is where the VPC-less architecture reaches one of its practical boundaries.
Step 6: Security events reach centralized monitoring
Cloudflare, Entra ID, API Management, App Service, and Azure SQL generate different security and operational events.
These events should be collected and correlated.
Azure Monitor and Microsoft Sentinel can support centralized investigation and detection.
Examples include:
- Repeated authentication failures.
- Unusual API access patterns.
- Excessive rate-limit violations.
- Suspicious database queries.
- Changes to application configuration.
- Attempts to bypass the designated entry point.
The goal is not simply to collect logs.
It is to reconstruct an attack path across multiple managed services.
4. Five Security Challenges That Cannot Be Ignored
Challenge 1: Origin bypass
A WAF is ineffective against traffic that never passes through it.
An attacker who discovers a directly accessible application endpoint may bypass edge security controls.
Origin restrictions, authenticated connections, and gateway-to-backend protections must therefore be part of the design.
Challenge 2: Publicly reachable backend services
A PaaS service can be publicly reachable even when authentication is required.
Public reachability and public accessibility are not the same thing.
Strong identity controls reduce risk, but private network isolation can provide an additional layer of protection.
The architect must document which backend endpoints remain publicly routable and why that exposure is acceptable.
Challenge 3: Service-to-service authentication
Every application-to-application interaction should use appropriately scoped credentials.
Prefer managed identities or workload federation where supported.
Avoid embedding shared secrets in source code or configuration files.
Validate token issuer, audience, expiration, and relevant permissions.
Short-lived credentials reduce exposure, but only when token issuance and authorization are correctly configured.
Challenge 4: Outbound traffic and data exfiltration
Traditional network firewalls can restrict outbound connections using destination IP addresses, ports, and network policies.
In a VNet-less PaaS design, equivalent egress restrictions may not be available.
This is a significant architectural limitation.
Application-level destination allowlists, managed security services, and service-specific controls can reduce risk, but they may not offer the same coverage as network-level egress inspection.
If strict outbound traffic control is mandatory, a VNet-based architecture may be preferable.
Challenge 5: Distributed security policy enforcement
A traditional firewall centralizes many traffic policies.
A service-based DMZ distributes enforcement across multiple systems.
Cloudflare controls edge traffic.
Entra ID controls identity.
API Management controls API requests.
App Service enforces application access restrictions.
Azure SQL enforces database permissions.
This creates flexibility, but it also creates configuration dependencies.
A mistake in one service can undermine protections provided by another.
Configuration management, policy testing, continuous posture assessment, and centralized monitoring become essential.
5. Is a VNet-less DMZ Truly Zero Trust?
Not automatically.
Zero Trust is not a product and does not result simply from removing traditional network infrastructure.
A Zero Trust architecture requires explicit verification, least-privilege access, and security decisions based on relevant context.
Our architecture can implement many Zero Trust principles through identity-aware access, token validation, workload authentication, and service-level authorization.
However, Zero Trust does not prohibit network segmentation.
In fact, network isolation can reinforce Zero Trust by limiting the consequences of compromised identities or applications.
The strongest architecture is not necessarily the one with the fewest network components.
It is the one with the clearest and most consistently enforced trust boundaries.
6. When Would I Recommend This Architecture?
A fully managed, VNet-less DMZ can be appropriate for:
- Public-facing SaaS applications.
- Stateless web applications.
- Serverless API platforms.
- Low-risk informational services.
- Applications with limited backend connectivity.
- Systems where service-level security controls satisfy organizational requirements.
I would be more cautious with:
- Applications processing highly sensitive regulated data.
- Systems requiring private connectivity to enterprise networks.
- Applications subject to strict egress inspection requirements.
- Workloads requiring network-level east-west segmentation.
- Systems with compliance requirements mandating private network isolation.
For these workloads, a hybrid DMZ may be more appropriate.
7. A Practical Security Review Checklist
Before approving a service-based DMZ for production, I would ask the architecture team to demonstrate the following:
| Control | Verification question |
|---|---|
| Edge enforcement | Can users bypass the WAF? |
| Origin protection | Can the backend be accessed directly? |
| Authentication | Are identity tokens and sessions validated correctly? |
| Authorization | Does every sensitive operation enforce least privilege? |
| Service identity | Are workload credentials short-lived and appropriately scoped? |
| Data protection | Are database access paths and permissions restricted? |
| Egress | Can a compromised application communicate with arbitrary destinations? |
| Secrets | Are secrets stored securely and rotated? |
| Logging | Can security events be correlated across services? |
| Configuration | Are policies continuously validated for drift? |
A failure in any of these areas should trigger additional design work before production deployment.
8. The Architectural Verdict
Can a cloud DMZ be constructed entirely from SaaS and PaaS services?
Absolutely.
Can it provide meaningful security without a customer-managed VPC, VNet, or firewall appliance?
Yes, for workloads whose requirements can be satisfied through managed security boundaries, identity controls, and service-level restrictions.
Is it automatically equivalent to a traditional network-isolated DMZ?
No.
And that distinction matters.
The most important question is not whether an architecture contains a VPC.
It is whether the architecture can demonstrate that untrusted requests are controlled, sensitive systems are protected, and a compromise in one component does not automatically expose everything behind it.
The modern DMZ is no longer defined solely by where traffic flows. It is defined by where trust is established, verified, restricted, and enforced.
Related reading: Security in the Public Cloud — Roll Your Own DMZ on AWS, Azure or Google Cloud.
This reference architecture is conceptual. Service-tier capabilities, origin restrictions, and private connectivity dependencies must be validated against current provider documentation before implementation.