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?