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

Announcements

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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
    Microsoft Employee 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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard