The Simplest Way to Make Cloud Run and Windows Server Core Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use cloud run and windows server core together by linking Linux apps to Windows machines. This setup lets fast web services talk to older Windows software over a private network. Cloud Run runs Linux containers and scales them up or down in seconds. It does not run Windows containers by itself. Many teams still need Windows Server Core to run legacy apps or active directory tasks. By linking the two systems, you get fast web scaling and full Windows support. How cloud run and windows se

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 cloud run and windows server core together by linking Linux apps to Windows machines. This setup lets fast web services talk to older Windows software over a private network.

Cloud Run runs Linux containers and scales them up or down in seconds. It does not run Windows containers by itself. Many teams still need Windows Server Core to run legacy apps or active directory tasks. By linking the two systems, you get fast web scaling and full Windows support.

How cloud run and windows server core share data and roles

First, the two systems must share a safe network path. Cloud Run apps sit outside your private network by default. Windows Server Core runs inside a virtual machine on your private network. You use a virtual private cloud connector to bridge these two spaces. This bridge lets the web app send requests to the Windows machine over private IPs.

Next, you must set up identity and permissions between the two tools. The Cloud Run service uses a Google Cloud service account as its main identity. When the web app calls the Windows machine, it must prove who it is. Teams often pass short-lived tokens or use internal certificates for this check. The Windows app reads the token and checks the caller role before doing any work.

Data flows between the two tools over standard web protocols or remote procedure calls. The Linux container takes in user traffic from the public internet. It checks the request and sends a smaller job to the Windows Server Core host. The Windows host finishes the task, writes to its local disk, and sends the answer back.

Common failure modes and how to scope access

One big failure mode is using shared admin keys between the two systems. Teams sometimes hardcode a single Windows password into the Cloud Run app settings. If someone leaks that password, an attacker can take over the whole Windows host. You should store secrets in a managed secret store and rotate them often.

Broad network access is another common risk in this setup. If the network bridge allows all traffic, a bad container can scan your whole Windows fleet. You should set up strict firewall rules on your private network. Only allow traffic from the exact service account that runs your Cloud Run app. Block all ports except the single port that the Windows app listens on.

Kubernetes API Server Access + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged requests also cause huge blind spots during a security review. If ten Linux containers use one shared Windows account, the Windows logs show one user. You cannot tell which web request caused a bad write or a system crash. Make sure your web app passes a unique request ID in every call. The Windows app should write this ID to its local event log.

Keeping Windows hosts fast and safe

Windows Server Core has no desktop screen, which keeps the machine small and fast. Still, it boots much slower than a Linux container on Cloud Run. If Cloud Run scales up to hundred of containers, it can flood the Windows host. You should set a maximum instance limit on your Cloud Run service. This cap stops sudden traffic spikes from crashing your Windows machines.

You also need a clear plan for Windows updates and reboots. Keep at least two Windows Server Core machines behind an internal load balancer. When one Windows host reboots for patches, the load balancer sends traffic to the healthy host. Your web apps stay up and users never notice the maintenance work.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Can Cloud Run host Windows Server Core containers directly?

No, Cloud Run only runs Linux containers on its managed platform. You must run Windows Server Core on virtual machines or a Kubernetes cluster.

How does Cloud Run reach a private Windows Server Core machine?

You attach a private network egress setting to your Cloud Run service. This routes traffic through your private network to the internal IP of the Windows host.

How do I stop Cloud Run from overloading my Windows servers?

Set a cap on the maximum number of instances for your Cloud Run app. You can also put a message queue between the web app and the Windows host.

The query runs. The emails stay hidden.