Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurred while establishing a connection to SQL Server, Remote connections error 35 #787

Open
ssquadri opened this issue Dec 20, 2024 · 3 comments

Comments

@ssquadri
Copy link

ssquadri commented Dec 20, 2024

Hi Folks,

We are getting this error a lot kindly let us know how to resolve it

Invoke-Sqlcmd: /home/xyz/Commercial-Marketplace-SaaS-Accelerator/deployment/Deploy.ps1:579
Line |
579 | Invoke-Sqlcmd -InputFile ./script.sql -ServerInstance $ServerUri -dat …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not
| accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP
| Provider, error: 35 - An internal exception was caught)

@eyalhconnact
Copy link

I have the same error.
Any help will be appreciated

@ssquadri
Copy link
Author

@eyalhconnact one of the possible causes might be the subscription does not have regional access to create SQL (For eg East US)

Try doing this and let me know if it solves anything

Link - https://learn.microsoft.com/en-us/azure/azure-sql/database/quota-increase-request?view=azuresql

@pmillart
Copy link

@ssquadri and @eyalhconnact did you register the Microsoft.SQL provider ?
I had the same issue this morning, and after registering the provider the issue did not occurs anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants