Core component of SQL Server for storing, processing, and securing data
The error indicates that the SQL Server certificate presented to Power BI isn’t trusted by the client.
For this scenario, the supported fixes are:
- Install or configure a certificate on SQL Server that chains to a trusted root certificate authority.
- This is the recommended long-term fix.
- If the certificate is issued by an internal company CA, the client machines must trust that root or intermediate CA certificate.
- If a self-signed certificate is being used, it must be distributed to client machines manually or through Group Policy.
- For Power BI Desktop, add the SQL Server name to the
PBI_SQL_TRUSTED_SERVERSenvironment variable.- This is supported for Power BI Desktop.
- The value is a comma-delimited list of server names and supports
*as a wildcard. - Example:
contososql*,mysvr
- For the on-premises data gateway, update the gateway configuration file to trust the SQL Server.
- Path:
C:\Program Files\On-premises data gateway - Back up
Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.dll.config - Open the file and locate
SqlTrustedServers - Add the SQL Server names to the value
- Example:
<setting name="SqlTrustedServers" serializeAs="String"> <value>contososql*,mysvr</value> </setting> -
contososql*,mysvrmatchescontososql6,contososqlazure, andmysvr, but notmysvr.microsoft.com.
- Path:
- If SQL Server administrators manage the server certificate, ask them to replace the self-signed certificate with one from a well-known certificate authority.
Important security note:
- Trusting a server certificate or bypassing certificate validation is a short-term mitigation.
- The best practice is a trusted encrypted connection using a certificate issued by a trusted CA.
Since both Power BI Desktop and the gateway are on the same Azure VM, the SQL Server admin team should verify whether SQL Server is using a self-signed certificate and then either:
- deploy a trusted CA-issued certificate to SQL Server, or
- ensure the required root/intermediate certificate is trusted on that VM.