Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Dotnet api in cloud run

I'm trying to host my dot net api services in cloud run ,I have containerised the services by docker and pushed that container to container registry and used the images in cloud run and deployed. An url is generated when I hit that it is saying "CANNOT CONNECT TO SQL SERVER BROWSER .ENSURE SQL SERVER BROWSER HAS BEEN STARTED"  NOTE: The same container is working fine in local and I'm able to fetch data. Please help me out 

Solved Solved
0 2 181
1 ACCEPTED SOLUTION

A. Is the SQL server hosted in GCP? If not - Browser probably won't work - move to IP. Rational - different networks and broadcast domains.

B. If so, have you applied a label and ensured firewall access, 

C. If  A and not to B, recommend you create a Serverless Connector Connect to a VPC network  |  Cloud Run Documentation  |  Google Cloud

 

View solution in original post

2 REPLIES 2

A. Is the SQL server hosted in GCP? If not - Browser probably won't work - move to IP. Rational - different networks and broadcast domains.

B. If so, have you applied a label and ensured firewall access, 

C. If  A and not to B, recommend you create a Serverless Connector Connect to a VPC network  |  Cloud Run Documentation  |  Google Cloud

 

Hi, Thank you for your response connect to a vpc network worked to me