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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure backup and step functions to run backup jobs across two clouds. Step Functions acts as the boss, while Azure Backup saves the data. Many shops run apps on both AWS and Azure at the same time. A central state machine in AWS can trigger snapshots in Azure on a set schedule. It can also pause app traffic, check backup status, and alert the team on errors. This setup keeps cross-cloud disaster recovery tasks in one clear workflow. How azure backup and step functions share data and

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 backup and step functions to run backup jobs across two clouds. Step Functions acts as the boss, while Azure Backup saves the data.

Many shops run apps on both AWS and Azure at the same time. A central state machine in AWS can trigger snapshots in Azure on a set schedule. It can also pause app traffic, check backup status, and alert the team on errors. This setup keeps cross-cloud disaster recovery tasks in one clear workflow.

How azure backup and step functions share data and roles

Linking these two tools requires a safe trust bridge between AWS and Azure. The AWS state machine needs a valid way to log in to Azure. Teams often use workload identity federation to avoid long-lived static secrets. An AWS compute task requests a local token from its own cloud role. Then it trades that token for a short-term Azure active directory token.

Once logged in, the workflow sends a web request to the Azure management endpoint. Azure starts the backup job and returns a job tracking ID right away. Backups take a long time, so the state machine should not just sit idle. Instead, the workflow enters a wait loop and checks the job ID every few minutes. When Azure marks the job as done, the state machine moves to the next step. If the job fails, the state machine sends an alert to the on-call team.

Common failure modes and how to scope roles

Cross-cloud setups often fail when teams take shortcuts with shared service accounts. An engineer might create one broad Azure key and store it in AWS. If that key leaks, an attacker can delete backups across the whole Azure account. Broad permissions also let a broken script wipe out production recovery vaults by mistake.

To fix this, scope every role down to a single recovery vault. Create a custom Azure role that can only start and read backup jobs. Never give the workflow role the power to delete snapshots or change vault rules. Separate the role that triggers backups from the role that restores data.

Azure RBAC + Cloud Functions IAM: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged requests and timeouts cause another big headache for operations teams. A state machine might retry a slow web call and start duplicate backup jobs. Azure will reject the second request, which makes the workflow fail with a vague error. Always log the exact job ID and request ID in your central log store. Set clear retry limits on the state machine so it backs off during network drops. Restrict network paths so only your specific AWS subnets can reach the Azure endpoints.

Managing manual recovery and audit logs across clouds

Automated workflows handle daily snapshots well, but human engineers still run recovery drills. During an outage, an engineer often needs to trigger a restore or check vault states. Giving every team member full console rights in both clouds creates a huge security risk. Teams need a clear way to approve and log these manual actions.

Good audit logs must show who ran a backup task and why they did it. Native logs split this story between AWS state logs and Azure activity logs. Tying those two log streams together during a fast outage takes too much time. Standardizing how people and scripts touch cloud endpoints solves this gap.

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 does Step Functions know when an Azure Backup job finishes?

The state machine saves the job ID when it starts the backup task. It then runs a polling loop to check the Azure job status until completion.

Can we connect AWS and Azure without storing static client secrets?

Yes, you can set up federated identity trust between your AWS role and Azure. The AWS task trades its native token for a short-term Azure token at runtime.

What permissions does the workflow need inside Azure?

Give the role rights to start backup jobs and read status on one vault. Never grant permissions to delete recovery points or change vault lock settings.

The query runs. The emails stay hidden.