Hi Team,
I am trying to connect MS SQL Server for building Power Apps. I have SQL server Database which is hosted on the AWS. I tried to add connection to the SQL server hosted on AWS using the Power Apps. But, I got the below error.
{
"error": {
"code": 502,
"source": "india-001.azure-apim.net",
"clientRequestId": "f7ea6b3d-2b04-46cf-8f52-3e369653c5dc",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The wait operation timed out.)\r\nclientRequestId: f7ea6b3d-2b04-46cf-8f52-3e369653c5dc",
"error": {
"message": "Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The wait operation timed out.)"
},
"source": "sql-ci.azconn-ci.p.azurewebsites.net"
}
}
}
Session ID: bee67d61-ddc3-4d43-8832-78b7ca1df39c
I supplied all the required information.
SQL Server Name :- The private IP Address to my AWS machine where the SQL server is hosted.
SQL Database Name :- Name of my DB
UserName and PWD
Could you help me with this.
That's strange.
If you go to the Data > Gateways section in the Maker portal, does your gateway appear there?
If not, does it appear in any of your other environments other than your default environment?
Hi @timl ,
I am using the default environment while selecting the gateway. Still it is not visible. Find the attached screen shot.
Thanks and Regards,
Swapnil Gaikwad
Hi @Anonymous
By default, the gateway will be visible in your default environment. Can you confirm that you are using the default environment?
Hi @timl ,
Thanks for your valuable inputs on this. I tried to install the On premises gateway on my AWS virtual machine with appropriate credentials. The gateway was installed successfully. Then I opened the Power Apps website on the virtual machine and tried to add the SQL server connection. The gateway was not detected in the choose gateway dropdown. I tried refreshing the list and also re installing the gateway, but that didn't help. I also, ran the Diagnostic test of the gateway and the test was successful. However, the gateway was still not visible in the dropdown.
Here are the screen shot. If you could help me with this that would be helpful.
Thanks
Thanks for reverting on this. I will try installing the on premis gateway and see if this works.
Hi @Anonymous
In terms of SQL Server, PowerApps supports SQL Azure and on-premise instances of SQL through the on premise gateway.
If you're hosting SQL Server on a virtual machine in AWS, you'll need to install the on premise gateway in your virtual machine. If you're using Amazon RDS, this is not supported.
WarrenBelz
394
Most Valuable Professional
MS.Ragavendar
193
stampcoin
149