The Simplest Way to Make Azure Functions and Commvault Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure functions and commvault to run automated data backups from cloud events. An event triggers a serverless app, which tells the backup tool to save files. This workflow removes manual backup work for engineering teams. Storage changes or database updates can start a backup job right away. Teams also use this setup to check job status or restore test data on a schedule. Without clear rules, though, linking these tools can expose broad backup rights to many apps. How azure function

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 use azure functions and commvault to run automated data backups from cloud events. An event triggers a serverless app, which tells the backup tool to save files.

This workflow removes manual backup work for engineering teams. Storage changes or database updates can start a backup job right away. Teams also use this setup to check job status or restore test data on a schedule. Without clear rules, though, linking these tools can expose broad backup rights to many apps.

How azure functions and commvault pass identity and data

First, an event in your cloud account wakes up the serverless app. The app needs to log in to the backup server to start a job. It fetches a stored secret or identity token from a safe key store. Then, the app sends an HTTPS request to the backup server API.

The backup server checks this token against its own role list. If the role matches, the backup server runs the requested task. It sends a short status reply back to the serverless app. The serverless app writes that status to a central log and shuts down.

Data itself does not flow through the serverless app during a backup. The app only sends control commands and reads job status numbers. The backup server moves the actual files between storage targets on its own.

Common failure modes and how to scope roles

Many teams make the mistake of using one shared admin account for all apps. If a bad actor gets that key, they can delete every backup. Long-lived tokens also cause trouble when someone forgets to rotate them on time. Unlogged API calls make it hard to see which app triggered a big restore.

To fix this, give each serverless app its own narrow role. An app that starts daily backups should never have rights to delete old archives. An app that only checks job health needs read rights and nothing else.

Azure Key Vault + Cloud Functions IAM: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You should also lock down the network path between the two tools. Place the serverless app inside a private virtual network. Set the backup server firewall to accept calls only from that specific subnet. Turn on detailed logging on both sides so every API call leaves a clear trail.

Keeping backup workflows fast and safe at scale

As your team grows, you will add more serverless apps for new tasks. Managing keys and network rules by hand for each app takes too much time. Teams do best when they use a standard pattern for every new app.

Start by grouping backup tasks by risk level. Read-only status checks sit in the lowest risk group. Apps that trigger new backups sit in the middle group. Apps that restore data or change retention rules sit in the highest risk group.

Review these groups every quarter with your security team. Check the logs to find unused apps and remove their keys right away. When you keep roles small and logs clear, your backup automation stays safe and reliable.

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 an Azure Function store credentials for Commvault?

Store all API keys or certificates in a managed cloud key store. Give the serverless app a managed identity so it can read that specific secret at runtime.

Can Azure Functions move backup data directly?

No, the serverless app should only send small API requests to start or check jobs. Let the backup server handle the heavy data transfer between storage nodes.

How do we limit the blast radius of a compromised function?

Create a custom role in the backup tool that only allows one specific task on one client group. Pair this with private network rules so outside systems cannot reach the API.

The query runs. The emails stay hidden.