I cannot get elastic jobs to run when using a private endpoint. The jobdb resides on the same subscription but on a different SQL Server on Azure. We added a private end point between the job server and the Azure database server (Azure SQL Database) where the jobs run, both sql server's private endpoints are on a same subnet and same vnet. When running a test job "select 1" I recieve the following error message:
Failed to connect to the target database: A connection was successfully established with the server, but then an error occurred during the login process.
(provider: SSL Provider, error: 0 - The target principal name is incorrect.) (Msg -2146893022, Level 20, State 0, Line 0)
I am using the FQDN to connect "Server.database.windows.net" to connect to the database but this error keeps happening. Is this a known issue or is there something we need to configure differently on the private link to allow the elastic jobs to run?