Can Azure devops resolve hostnames of postgresql flexible servers in private DNS zone with private access enabled>

Ritwik Singh 0 Reputation points
2023-07-18T10:19:41.99+00:00

I am using a combination of Azure devops and terraform to provision our environments on the fly and configure them.
During the various stages of our pipeline we are creating a postgreSQL DB felxible server and subsequently creating a user on it in the next stage/job.

The problem is if the flexible server has public access, Azure pipelines is able re resolve hostname and create user. But when we launch the Db with private access and a private DNS zone, the pipeline is unable to resolve the hostname and thus failing to create a user.

Is it possible for Azure devops (azure hosted agents) to resolve hostnames for the flexible server in this case?
PS : I looked into private endpoint but it is probably not available for flexible servers as of now.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
42,015 questions
{count} votes

Your answer

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