Forum Discussion
Azure PostgreSQL Direct Query?
Hi!
Can you direct query in PowerBI to an Azure PSQL database? I'm having trouble finding information online. I assumed you could as it is Azure-hosted, but when I try to connect, it fails (using the Azure SQL Database data source). It gives this error:
If I try to use PostgreSQL as an import query, I get the below error. This same error happens both when SSL is enabled and disabled.
- Anonymous8 years ago
Anonymous
Azure SQL database connector in Power BI Desktop can’t be used to connect to Azure PostgreSQL database, however, PostgreSQL database connector should work.
In your scenario, please install Npgsql 3.1.8 instead of installing latest version of Npgsql driver, and ensure that you install required certificate on the machine that have Power BI Desktop installed. You can follow the guide in this article to install certificate and configure SSL connectivity.
There is also a similar thread for your reference.
https://community.powerbi.com/t5/Integrations-with-Files-and/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/m-p/135666
Regards,
Lydia
3 Replies
- AnonymousNot applicable
Hi!
Can you direct query in PowerBI to an Azure PSQL database? I'm having trouble finding information online. I assumed you could as it is Azure-hosted, but when I try to connect, it fails (using the Azure SQL Database data source). It gives this error:
Details: "Microsoft SQL: Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for <g class="gr_ gr_342 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Grammar only-ins doubleReplace replaceWithoutSep" id="342" data-gr-id="342">server</g> to complete the login process and <g class="gr_ gr_343 gr-alert gr_gramm gr_inline_cards gr_disable_anim_appear Punctuation multiReplace" id="343" data-gr-id="343">respond; Or</g> it could have timed out while attempting to create multiple active connections. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=78; handshake=132; [Login] initialization=0; authentication=0; [Post-Login] complete=14832; "If I try to use PostgreSQL as an import query, I get the below error. This same error happens both when SSL is enabled and disabled.
Details: "An error happened while reading data from the provider: 'Npgsql.Tls.ClientAlertException: CertificateUnknown: Server certificate was not accepted. The specified hostname was not present in the certificate. at Npgsql.Tls.TlsClientStream.SendAlertFatal(AlertDescription description, String message) at Npgsql.Tls.TlsClientStream.ParseCertificateMessage(Byte[] buf, Int32& pos) at Npgsql.Tls.TlsClientStream.TraverseHandshakeMessages() at Npgsql.Tls.TlsClientStream.<GetInitialHandshakeMessages>d__43.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Npgsql.Tls.TlsClientStream.<PerformInitialHandshake>d__72.MoveNext()'"We previously connected to PSQL hosted on a remote server and used the import function without any issues. We're looking to import the data into Azure because we'd like a live connection to the data for the PowerBI reporting. An input into this would be greatly appreciated. - AnonymousNot applicable
Anonymous
Azure SQL database connector in Power BI Desktop can’t be used to connect to Azure PostgreSQL database, however, PostgreSQL database connector should work.
In your scenario, please install Npgsql 3.1.8 instead of installing latest version of Npgsql driver, and ensure that you install required certificate on the machine that have Power BI Desktop installed. You can follow the guide in this article to install certificate and configure SSL connectivity.
There is also a similar thread for your reference.
https://community.powerbi.com/t5/Integrations-with-Files-and/Connecting-to-PostgresSQL-hosted-on-AWS-RDS/m-p/135666
Regards,
Lydia - AnonymousNot applicable
Hi Team
While connecting with azure postgre sql database to power bi desktop asking for server name and database name may i know where to take credentials from azure portal and How can i get password
and from which mode we need to take(import or direct query) need some documents or tutorial
after providing credentials we authentication wrong need some information for where we can get all those details pls provide screen shots