web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Azure SQL Best Practices?
Power Apps
Answered

Azure SQL Best Practices?

(0) ShareShare
ReportReport
Posted on by

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!

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    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 Power Platform Member Profile Picture
    on at

    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

  • Verified answer
    v-micsh-msft Profile Picture
    on at

    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

  • ChinoDoesStuff Profile Picture
    48 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard