Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
po
Post Prodigy
Post Prodigy

Azure the server name provided does not match the server name on the sql server SSL certificate

Hi,

 

In both power bi service and desktop we can connect successfully to Azure sql database using the FQDN 

 

<db_name>.privatelink.database.windows.net

 

when we use an unencrypted connection.

 

However, when we set the connection to encrypted get the error that  the server name provided does not match the server name on the sql server SSL certificate.

 

 

po_0-1696946328915.png

 

 

How can we best resolve this to ensure can use encryption?

 

Thanks

 

 

6 REPLIES 6
po
Post Prodigy
Post Prodigy

Thanks for replies

RaoMohsin6054
Frequent Visitor

To resolve the SSL certificate error in Power BI, create an environment variable PBI_SQL_TRUSTED_SERVERS with your SQL Server's name, then restart Power BI. This bypasses the server name mismatch issue.

Refer to the article

po
Post Prodigy
Post Prodigy

Hi,

 

Thanks for reply.

 

We are using the FQDN but still get error.

po
Post Prodigy
Post Prodigy

Hi,

 

Thanks for suggestion.

 

However, we are using the FQDN when connect via power bi desktop and service but still get this error.

 

Is there a way to check the FQDN on the server SSL certificate in Azure and if necessary chnage it so has privatelink within it?

 

We can connect using below but cannot use encrypted connection due to this.

<db_name>.privatelink.database.windows.net

Hi,

Just my two cents, because the solution wasn't immediately clear to me in its entire scope.

For me and my environment, the SSL certificate for the SQL server was renewed and no longer contained the (SAN) name for the privatelink connection.

 

The environment has an on-premises datagateway.


Thus, the solution is to manipulate the dns name of the server from the platform side. I doubt we can get Microsoft to deploy a new certificate.

 

Assuming one is using a private endpoint, "privatelink", you have created a private dns zone within the resource group in Azure.
The solution for me was to change the private DNS zone domain :
- Create a new private DNS zone in the resource group, named "database.windows.net". Azure will give you a warning about this being a system domain. This can (at least in my case) be disregarded.
- Modify the record sets of previous private DNS zones to not have "Auto register" on (assuming you do not have any other resources in the linked vnets)

- Unlink the vnets from the previous private DNS zone (assuming you do not have any other resources in the linked vnets utilizing the DNS zone)

- Delete the current DNS configuration for the endpoint. You can make a note of the current settings.

- Create a new configuration for the private endpoint.

  - In the same resource group.

  - Using the new private DNS zone.

  - In the same DNS zone group (if you have several)

- Link the vnets to the new private dns zone.

- When linked, you can enable auto-registration for the linked vnets.

 

After this, you should recreate the data source for the SQL server / database in the report, using the proper FQDN, visible in the private DNS zone configuration. This should now be <db/server-name>.database.windows.net.

 

Also, you should not be required to admin approve anything since we are practically editing a existing private endpoint


For my environment, the solution to create environment variables didn't solve the issue in Cloud PBI.

v-zhangti
Community Support
Community Support

Hi, @po 

 

Error: The server name provided doesn't match the server name on the SQL Server SSL certificate.

 

This error can occur when the certificate common name is for the server's fully qualified domain name (FQDN), but you supplied only the NetBIOS name for the server. This situation causes a mismatch for the certificate. To resolve this issue, make the server name within the gateway data source and the PBIX file use the FQDN of the server.

Troubleshoot gateways - Power BI | Microsoft Learn

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.