The Simplest Way to Make Azure Data Factory and Cloud Run Work Like They Should
Teams use azure data factory and cloud run to run cross-cloud data jobs. Azure schedules the data pipeline, and Google runs custom code inside containers. This setup lets data engineers trigger serverless apps during a pipeline run. You can clean data, call external APIs, or score machine learning models. Each tool handles the work it does best across both clouds. How azure data factory and cloud run share data and keys Data flows between these two services over standard web requests. Azure
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 data factory and cloud run to run cross-cloud data jobs. Azure schedules the data pipeline, and Google runs custom code inside containers.
This setup lets data engineers trigger serverless apps during a pipeline run. You can clean data, call external APIs, or score machine learning models. Each tool handles the work it does best across both clouds.
How azure data factory and cloud run share data and keys
Data flows between these two services over standard web requests. Azure Data Factory uses a web activity to call the container endpoint. The pipeline sends a small JSON payload with job details and file paths. It does not send raw data files inside the web call.
Instead, the container reads and writes files in cloud storage buckets. The container finishes its task and sends a status code back to Azure. If the job takes a long time, Azure polls a status endpoint.
To log in across clouds, both platforms need a trust link. Many teams use workload identity federation between Microsoft Entra ID and Google Cloud. Azure requests an identity token from its own managed identity service. It exchanges that token with Google for a short-lived Google service token. Then Azure puts that token in the web request header. Google checks the token and checks the caller role before running the container.
Common failure modes and how to scope roles
Cross-cloud pipelines often fail because teams use static service account keys. Engineers download a JSON key file from Google and paste it into Azure. That static key never expires unless a human rotates it by hand. If a key leaks in a pipeline log, attackers gain broad access.
Shared service accounts create another big problem for data teams. When ten pipelines share one Google service account, audit logs lose clarity. You cannot tell which pipeline triggered a specific container run. If one pipeline breaks a rule, revoking the role breaks nine other jobs.
Azure RBAC + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged requests and broad network rules also cause outages and security gaps. Some teams make the container endpoint public to skip token setup. Anyone who finds the URL can trigger the container and drive up bills.
To fix this, give each Azure pipeline its own managed identity. Map each identity to a single Google service account with one invoker role. Scope storage roles so the container only reads the exact bucket it needs. Set up private network paths or strict ingress rules on the container side. Log every web call and payload ID in both cloud logging tools. Mask emails, phone numbers, card numbers, and national IDs in those logs. Masking rewrites matched fields in results so sensitive data stays safe during debugging.
Handling timeouts and retries across clouds
Web tasks in Azure have strict timeout limits for single requests. If a container takes twenty minutes, a normal web call will drop. This causes the pipeline to mark the step as failed while it runs. On a retry, Azure might start a second container run by mistake. That leads to duplicate rows in your output tables and higher cloud bills.
Use an asynchronous webhook pattern for jobs that run over a few minutes. The container accepts the job, returns a tracking ID, and works in the background. When the container finishes the data task, it calls the Azure callback URL. Make your container code idempotent by checking the job run ID first. If the same job ID arrives twice, the app skips the repeat work.
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
How does Azure Data Factory trigger a private Cloud Run service?
Azure uses a web activity or webhook activity to send an HTTPS request. It includes an identity token in the header that grants the invoker role.
Should we pass large datasets inside the HTTP request body?
No, web requests have strict size limits and will fail on large files. Pass a cloud storage path in the request and read the file directly.
How do we stop static key leaks between Azure and Google Cloud?
Replace downloaded JSON key files with workload identity federation between the two clouds. This setup uses short-lived tokens tied to your Azure managed identity.
Related guides
In this post