cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ericonline
Community Champion
Community Champion

Azure SQL Best Practices?

Hello, 

 

I just setup an Azure SQL Server and Database. When I connect to this db using SQL Server Management Studio, my IP address is whitelisted. 

 

When I try to connect a PowerApp to the db using the SQL Connector, I get the error basically stating "this IP address" is not allowed. The IP shown in the message is not the IP address of my computer, but rather likely the IP address of PowerApps in the cloud. 

 

2018-09-14_15-21-20.png

 

My questions are:

  • What is the best practice for whitlisting IP's so that my users can access the db from PowerApps?
  • What is the best practice for the Username and Password I enter in the SQL Connector?
    • Should I create a specific "PowerApps" db user with the perms I want?
    • Is there another best practice?

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

I think  whitelisting is the only way to make the SQL API to work.

 

As the document states:

"

Calls made from an API connected through an app (for example, the SQL API or the SharePoint API) come from the IP address specified later in this topic.

"

Regards,

Michael

Community Support Team _ Michael Shao
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

4 REPLIES 4
v-micsh-msft
Community Support
Community Support

Hi @ericonline,

 

"

You should use these addresses if, for example, you must whitelist IP addresses for an Azure SQL database.

"

Which could be found under:

Limits configuration

 

For a step by step guide, see:

PowerApps and Azure SQL Database, step by step guide

 

Regards,

Michael

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

Great resources!

 

Continuing this question: 

  • Is whitelisting the only method for allowing API access to a SQL db or are there other methods to use with PowerApps? 


Thank you

I think  whitelisting is the only way to make the SQL API to work.

 

As the document states:

"

Calls made from an API connected through an app (for example, the SQL API or the SharePoint API) come from the IP address specified later in this topic.

"

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ChinoDoesStuff
Advocate II
Advocate II

I know this is a pretty old thread but just to add my two cents worth here is a link to my tutorial on getting started with Power Apps and Azure SQL. It covers the preliminary stuff like getting setup in SQL Management Studio and creation of your database in Azure. Hopefully this help anyone who might be struggling with this topic - 

thumbsml.jpg

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,790)