The Simplest Way to Make Azure Resource Manager and Fortigate Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You pair azure resource manager and fortigate to build and run cloud firewalls with templates. The Azure plane sets up virtual networks and machines, while the firewall filters network traffic. Teams use this pair to keep cloud networks safe and consistent across many regions. When a team updates a template, the cloud builds the right network paths right away. How azure resource manager and fortigate share roles and data First, the Azure control plane reads your template and creates the virt

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.

You pair azure resource manager and fortigate to build and run cloud firewalls with templates. The Azure plane sets up virtual networks and machines, while the firewall filters network traffic.

Teams use this pair to keep cloud networks safe and consistent across many regions. When a team updates a template, the cloud builds the right network paths right away.

How azure resource manager and fortigate share roles and data

First, the Azure control plane reads your template and creates the virtual network. Next, it starts the firewall virtual machines and attaches the right network cards to them.

The firewall also needs to read cloud tags to update its own address lists. To do this, the firewall uses a managed identity or a service principal account.

That account logs in to the Azure API and reads the current list of servers. When a new server starts, the firewall sees the tag and updates its traffic rules.

For high availability, the firewall also needs to move public IP addresses during a failover. The firewall calls the Azure API to move the secondary IP to the healthy node.

This flow keeps traffic moving when a single virtual machine goes down for updates. Your team does not need to log in and change routing tables by hand.

Common failure modes and how to scope permissions

Many teams make the mistake of giving the firewall a broad owner role in Azure. If an attacker takes over the firewall, they can delete servers across the whole account.

Another common issue is sharing one admin password across the whole network team. When five people use the same login, your audit logs cannot show who changed a rule.

Azure RBAC + GCP Access Context Manager: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Static API keys also create risk when they sit in plain text inside deployment files. If someone leaks a template repo, outsiders can read those keys and enter your cloud.

To fix this, give the firewall a custom role with only read and network rights. Scope that role to the single resource group that holds your network cards and routes.

Do not let the firewall read storage accounts or database settings in other groups. Use managed identities instead of static keys so you never store secrets in your files.

Lock down the management port on the firewall so it never faces the public internet. Force admins to come through a private network path before they can change any rules.

Keeping day-two changes safe and easy to audit

Once the firewall is running, teams still need to run checks and fix routing bugs. Doing all changes by hand in the web console leads to drift between regions.

Keep your base network setup in templates and test every change in a staging group. Send all login events and rule changes to a central log workspace for daily review.

When you pair clear logs with tight roles, audits take minutes instead of weeks. Every network change ties back to a real person and a specific ticket.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Why does my firewall fail to move the public IP during a failover?

The firewall identity often lacks permission to update network interfaces in that resource group. Check the role assignments and make sure the identity can write to those network resources.

Should I use a service principal or a managed identity for the firewall?

Use a system-assigned managed identity whenever your setup supports it. Azure rotates those credentials for you, so your team does not have to track expiring keys.

How do I stop admins from exposing the firewall management port to the internet?

Put a network security group on the management subnet to block public traffic. Only allow traffic from your internal management network and check this rule on every deploy.

The query runs. The emails stay hidden.