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

Power Apps with SQL Connector user Azure AD Authentication

Hi fellow Power Rangers

 

I have a Power App which is connecting to an Azure SQL Database using Azure Active Directory authentication.

 

When I create the connector itself, it pops up with the connector dialog and simply asks for Authentication method and I selected AAD. No other settings are presented (at this time) so you click Create, it shoots you off to the AAD authentication page and then completes.

 

You then go into the app and "Add Data" where you select your newly created SQL connector, and it is at this point, you then get asked to enter your DB settings (Server Name, Database Name etc)... after that, you then get presented with the list of tables in the DB.

 

Now, this is all fine when your only working in a single environment, but what if you have a DEV / UAT / PROD scenario..

 

This is where I now seem to have some problems... When you export the solution (sorry, forgot to mention that bit) and import it into your next environment, it quite rightly asks you to select the appropriate connector, but again, there's nothing about the actual database settings... so what it now does is it actually deploys with your settings from the environment you exported it from.

 

This only seems to be an issue with SQL Connector and using AAD Authentication... When you use any other (SQL / Windows), it will actually ask you for your DB connection information in the same window, before creating the connection reference.

 

OK, so now I here you ask, why not use Environment Variables, well, yes, but the dialog that asks you for your DB settings (on the AAD route) does not give you the option to put them in.

 

So, here's the bottom line...

 

How can I use Environment Specific Azure DB settings using a SQL Connector with Azure AD Authentication?

 

 

0 REPLIES 0

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,253)