cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RFKV
New Member

Help with how to do a connection power apps with db in azure SQL server virtual machine

Hello everyone!

I've already done mi db in my azure virtual machine, also I installed my gateway for a db on-premise.

But I still do not know how to start the connection whit my app and my SQL server in a azure virtual machine,  I've been trying in power apps with SQL connector putting my server name, db name, user with password and gateway, but still sends me this error message: "Credentials are missing or not valid.
inner exception: The credentials provided for the SQL source are invalid."

 

At this point I do not know if I'm doing good or nothing of what I'm doing is OK. 


I hope you can help me with this stuff, or if you can give me any document references. I would be so Thankful!

Sorry if my comment has any orthographic  mistake, I'm from Mexico City.  

5 REPLIES 5
cds
Impactful Individual
Impactful Individual

yeah sql connector kinda dumb..

 

try yourdomain.com/username for username when connecting

Thank you for respond!

but to be honest, I don't understand what you mean ☹️ Literally i don't know what to put in the username based on what you said. Would you do more specific? Please!

Pstork1
Dual Super User III
Dual Super User III

Did you install the on-premises gateway in a server in Azure that can reach the Azure SQL VM?  Or did you install it in your on-premises network?  For this configuration it needs to be installed on a VM in Azure, which could be the SQL server itself.

 

For the credentials you'll either need to use SQL credentials, assuming your SQL server is configured for mixed authentication or an Azure AD based account that is accessible to your SQL server.  The SQL credentials are probably easier. Take a look at the following article and use the equivalent of AzureAdmin in the article.

Create SQL Server on a Windows virtual machine in the Azure portal - SQL Server on Azure VM | Micros...



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I literally installed the on-premises  gateway in the azure virtual machine, i've tried with SQL credentials (the name of my virtual machine as the name on the server, user name with root and the name user in my virtual machine and the corresponding passwords of each one, and also select the one-premises gateway that I installed in my virtual machine. but I losing something because i still can not connect to my data.☹️

 

Also I already checked the article that you sent, this helped me to confirm my vm allows public connections from internet, so the article was very useful, thank you.

Pstork1
Dual Super User III
Dual Super User III

If you allow public connections from the Internet you should be able to connect to the SQL server directly, assuming you've allowed for the correct ports to be open.  You should also check the ports on the gateway.

Adjust communication settings for the on-premises data gateway | Microsoft Docs



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (3,568)