The Simplest Way to Make Azure App Service and Fortigate Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running azure app service and fortigate together protects cloud web apps with strict firewall rules. Fortigate inspects network traffic while Azure App Service hosts and scales your web code. Teams link these two tools to filter incoming user requests and outgoing app calls. This setup stops bad traffic before it hits your web backend. It also controls how your cloud apps talk to private databases and internal servers. How traffic flows between azure app service and fortigate Your web app ru

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Running azure app service and fortigate together protects cloud web apps with strict firewall rules. Fortigate inspects network traffic while Azure App Service hosts and scales your web code.

Teams link these two tools to filter incoming user requests and outgoing app calls. This setup stops bad traffic before it hits your web backend. It also controls how your cloud apps talk to private databases and internal servers.

How traffic flows between azure app service and fortigate

Your web app runs inside Microsoft cloud servers. By default, this app sits on a shared public network. To put Fortigate in front of the app, you link the app to a virtual network.

First, incoming web traffic hits the public address on the Fortigate virtual machine. Fortigate checks the data packets against your security rules. It looks for known attack patterns and blocks bad requests right away.

If the request is safe, Fortigate forwards it to the web app private address. The app only accepts traffic from that specific virtual network path. It rejects any direct traffic from the open internet.

Outbound traffic follows a reverse path through the same virtual network. When your web app calls an outside system, a route table sends packets to Fortigate. The firewall checks the destination address and logs the event before letting data leave.

Identity checks also matter when admins manage both platforms. Cloud teams use central directory groups to log in to the Azure portal. Network teams map those same directory groups to admin roles on the Fortigate appliance.

Common failure modes and how to scope network paths

Many teams make mistakes when they first link these two tools. A common error is leaving public network settings open on the web app. Attackers can then skip the firewall by calling the default app address directly.

Another big risk comes from using shared admin accounts on the firewall. When five engineers share one login, you cannot tell who changed a rule. Broad API keys for deployment scripts create the same tracking problem.

Service-to-Service Authentication + Azure RBAC: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Overly wide firewall rules also break security between your cloud subnets. Teams often open all ports between the firewall subnet and the app subnet. If one app gets compromised, attackers can move across the network with ease.

Unlogged database calls from the web app create blind spots during security audits. The firewall sees network packets, but it cannot see which developer ran a manual query. You need clear logs that tie actions back to real people.

To fix these issues, lock down your network paths and user roles first. Turn off public access on the web app so only private links work. Set up route tables that force all outbound app traffic through the firewall internal port.

Next, write strict firewall rules that only allow web ports like HTTPS. Give each engineer a personal login tied to your central identity provider. Scope deployment tokens so they can only update one specific app slot.

Keeping operations fast across cloud and network teams

Splitting work between cloud developers and firewall admins often slows down releases. Developers want to deploy new web features fast. Network admins want to review every port change to keep the company safe.

You can avoid bottlenecks by using network tags and clear role boundaries. Group your web apps by business unit inside your cloud virtual network. Let the firewall read those tags so rules update when apps scale out.

Keep your audit logs in one central place for both tools. Send web app logs and firewall packet logs to the same security dashboard. When a request fails, engineers can check one screen to find the root cause.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How do we stop users from bypassing the Fortigate firewall?

Disable public network access on your Azure web app settings. Use private endpoints so the app only talks to your internal firewall subnet.

Can Azure App Service route outbound calls through Fortigate?

Yes, you can link the web app to a virtual network subnet. Then add a route table that sends all outbound traffic to the Fortigate internal IP.

How should admins log in to manage both tools?

Connect both platforms to your central single sign-on provider. Assign small, specific roles to each team member instead of using shared admin passwords.

The query runs. The emails stay hidden.