The Simplest Way to Make Azure DevOps and Cloud Run Work Like They Should
Using azure devops and cloud run lets your team build and deploy container apps fast. Azure DevOps runs the build steps, while Cloud Run hosts the live app on Google Cloud. Many teams store code in Microsoft tools but run containers on Google Cloud. Linking these two platforms removes manual release steps and cuts down on human error. Your developers push code to a branch, and the pipeline builds a fresh container image. Then the pipeline sends that image to a registry and updates the live serv
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.
Using azure devops and cloud run lets your team build and deploy container apps fast. Azure DevOps runs the build steps, while Cloud Run hosts the live app on Google Cloud.
Many teams store code in Microsoft tools but run containers on Google Cloud. Linking these two platforms removes manual release steps and cuts down on human error. Your developers push code to a branch, and the pipeline builds a fresh container image. Then the pipeline sends that image to a registry and updates the live service.
How azure devops and cloud run share identity and data
To make this work, the build agent in Azure needs permission to update Google Cloud. In the past, teams exported static service account keys as JSON files. They pasted those keys into pipeline secret variables and hoped nobody leaked them. That old method creates a huge security risk because static keys do not expire by default.
A safer approach uses workload identity federation between the two cloud providers. Azure DevOps issues an identity token when a pipeline job starts up. Google Cloud checks this token against a trust rule that you set up in advance. If the token matches your rule, Google Cloud grants a temporary role to the job.
Once the job has a valid token, data flows in two main steps. First, the build agent pushes the new container image to Google Artifact Registry. Second, the agent tells Cloud Run to deploy a new revision using that exact image. When the job ends, the temporary token stops working right away.
Common failure modes and how to scope roles
The biggest mistake teams make is sharing one broad service account across every pipeline. If a dev pipeline uses the same role as production, any developer can change live apps. A single bad commit in a test branch could overwrite your main customer service.
You can fix this by creating separate Google Cloud service accounts for each stage. Give the test pipeline role access to the test project only. Give the production pipeline role access to the production project only. Inside each project, grant only the exact permissions needed to push images and update services.
Azure RBAC + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Another common failure mode involves unlogged actions during live debugging or database fixes. Pipelines handle normal code releases well, but engineers still need to check live services when things break. If engineers use shared admin roles to inspect running containers or back-end databases, audit logs lose track of who did what. Teams also need a way to mask sensitive fields like emails, phone numbers, or card numbers during live queries.
Setting up safe network paths between clouds
Network access between your build agents and your cloud services also needs clear boundaries. Hosted build agents in Azure run on public IP ranges that change often. Leaving your cloud targets wide open to all public traffic invites outside attacks.
Teams often run self-hosted build agents inside a private virtual network to control traffic. You can route traffic from that network to Google Cloud over a private link or VPN. You can also set ingress rules on Cloud Run so only trusted networks can reach internal apps. Combine strict network paths with tight identity rules to keep your release flow safe.
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 do I connect Azure DevOps to Google Cloud without static keys?
Use workload identity federation in Google Cloud to trust your Azure DevOps issuer URL. Your pipeline swaps its short-lived job token for a temporary Google Cloud token at runtime.
What roles does the build agent need for Cloud Run deploys?
The agent needs permission to write container images to your registry and update Cloud Run services. It also needs permission to act as the runtime service account attached to the app.
How can teams protect sensitive data when debugging Cloud Run back ends?
Map each engineer to their own identity and log every command sent to back-end databases. Apply data masking rules to rewrite emails, card numbers, and national IDs in query results.
Related guides
In this post