Share via

Azure SQL PaaS Server Private Endpoint Certificate

Tommy Newman 21 Reputation points
2022-07-01T08:08:17.783+00:00

We have set up a PaaS SQL Server with no public access. It's connected via a Private Endpoint.
The network card has a private IP which we use to connect, and we have internal DNS on Windows Server to provide a suitable "A Record" for the IP.

Problem is, to connect to the database, I have to say TrustServerCertificate=yes in ODBC connection strings and in SSMS.
Would I just need to create an internal certificate for the "A record" I created so I can trust the certificate?

I looked in the Azure portal but was not able to see anything relating to certificates.
Look forward to hearing from you.

Azure SQL Database
Azure Private Link
Azure Private Link

An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,597 Reputation points Microsoft Employee Moderator
    2022-07-04T07:06:46.107+00:00

    Hi, @Anonymous Welcome to Microsoft Q&A Platform, and thanks for your query.
    You can follow the tutorial below:
    Tutorial: Connect to an Azure SQL server using an Azure Private Endpoint - Azure portal | Microsoft Learn
    No need to deal with certificates and DNS records, you can just use the public server name and it will be resolved in the private IP address automatically.

    Regards
    Geetha


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.