79760147

Date: 2025-09-09 17:47:11
Score: 1.5
Natty:
Report link

When connecting to a SQL Server Cloud SQL instance from Cloud Run,

  1. If connecting via Public IP - make use of Cloud SQL connectors

  2. If connecting via Private IP - configure Cloud Run with VPC access (Direct VPC egress or a connector) on the same VPC as your SQL instance

Reference - https://cloud.google.com/sql/docs/sqlserver/connect-run#connect

Since the application is a .NET application, an alternative approach that would help connecting to a SQL Server instance would be using Cloud SQL Auth Proxy as a sidecar container in your Cloud Run service.

Here's a guide on how to - https://cloud.google.com/blog/products/serverless/cloud-run-now-supports-multi-container-deployments

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Karan Gala