cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

Connect to a SQL database on a VM

We have a SQL server stored on a CentOS VM in Azure, I am having a lot of difficulty connecting to this sql server. Is this possible to connect to a SQL server on a VM? If so can someone show an example of how the connection string should look? Because using my server IP for my server name/ database name/ database user/ database user password does not work.

 

I have connected to Access Web apps which were through the SQL server data connection type, but unfortunately we need to shift from Access web apps to actual SQL servers.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @Bri,

 

 

You should be able to connect to a azure SQL server on a VM. Did you receive any error message when you try to submit your  connection string? If yes, would you please post the error here?

 

Make sure that you have gathered the following information for a database that contains at least one table with a primary key before you try to connect again:

the name of the database
the name of the server on which the database is hosted
a valid user name and password to connect to the database
the type of authentication needed to connect to the database

 

For your reference:

https://powerapps.microsoft.com/en-us/tutorials/connection-azure-sqldatabase/

  

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @Bri,

 

 

You should be able to connect to a azure SQL server on a VM. Did you receive any error message when you try to submit your  connection string? If yes, would you please post the error here?

 

Make sure that you have gathered the following information for a database that contains at least one table with a primary key before you try to connect again:

the name of the database
the name of the server on which the database is hosted
a valid user name and password to connect to the database
the type of authentication needed to connect to the database

 

For your reference:

https://powerapps.microsoft.com/en-us/tutorials/connection-azure-sqldatabase/

  

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

I have looked through your link you provided in your post and have 2 additional questions:

 

1) I must disable the ACL ( Access control List) from Azure portal in order to allow access? There is no other way?

 

2) How do i find out the IP address of my powerapp?! Is the address static? Or will it always be bound by a small range? If it is bound by a small IP range, what other hosts can acquire those IP addresses?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (14,634)