The Simplest Way to Make Azure Functions and Zerto Work Like They Should
Teams pair azure functions and zerto to automate disaster recovery checks and site failovers. An event triggers a cloud function, and that function sends commands to the recovery manager. Manual failover steps take too much time during a real outage. By linking these two tools, your team can test backups on a set schedule. You can also run recovery tasks right when an alert fires. This setup cuts human error and keeps recovery time goals on track. How logins and data flow between azure functi
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.
Teams pair azure functions and zerto to automate disaster recovery checks and site failovers. An event triggers a cloud function, and that function sends commands to the recovery manager.
Manual failover steps take too much time during a real outage. By linking these two tools, your team can test backups on a set schedule. You can also run recovery tasks right when an alert fires. This setup cuts human error and keeps recovery time goals on track.
How logins and data flow between azure functions and zerto
The workflow starts when a timer or webhook wakes up the cloud function. The function needs to log in to the recovery manager API before taking action. To do this, the function fetches a stored secret from a cloud vault. It sends that secret to the recovery API to get a session token.
Once the API returns a valid token, the function can read or write data. It might check the health status of protected virtual machine groups. It can also start a test failover in an isolated bubble network. The recovery manager runs the job and sends status updates back to the function.
Finally, the function writes the job results to a central log store. If a backup check fails, the function can send an alert to the on-call team. Every step relies on fast network paths and valid permissions between both systems.
Common failure modes and how to scope roles
Many teams make the mistake of using one shared admin account for all functions. If that key leaks, an attacker can wipe replicas or trigger a bad failover. Broad tokens also make it hard to see which function ran a specific change. Audit logs only show the shared account name, not the real trigger.
Another common issue is leaving the recovery manager API open to the public web. Cloud functions often run on shared IP ranges that change over time. Opening the firewall to all cloud addresses puts your backup system at risk.
Azure RBAC + Cloud Functions IAM: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix network paths, place your function app inside a private virtual network. Link that network to your recovery site using a private tunnel or peering link. Now the function can reach the API over private IP addresses only.
To fix role issues, stop using full admin accounts for simple tasks. Create separate service accounts for each function task. A function that only checks replication status should have a read-only role. A function that starts a test failover should only control test groups, not live apps.
You should also rotate the API secrets on a strict schedule. Store those keys in a managed vault and let the function read them using a managed identity. Never hardcode passwords or tokens inside the function app settings or source files. Log every API call with a unique request ID so your team can trace actions later.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
How should a function app store recovery API secrets?
Store all API passwords in a dedicated cloud key vault. Grant the function a managed identity so it can read the secret at runtime.
Can cloud functions reach an on-premises recovery manager?
Yes, you can link the function app to a virtual network. That network can route traffic through a site-to-site VPN or private circuit to your data center.
How do we stop a rogue function from triggering a live failover?
Give the function service account a restricted role in the recovery tool. Scope that role so it can only run test failovers or read status data.
Related guides
In this post