Share via

Azure SQL DB service endpoint

Mohamed jihad bayali 1,141 Reputation points
2023-07-04T08:58:15.3533333+00:00

Hello team,

I hope you're doing fine,

I have a question, let's assume i have an azure sql db connected to a public endpoint.
And i have Azure VMs that are accessing this DB using Internet
Now let's assume i want my azure VM to access this same DB but using the azure private backbone network.

So for this i enabled service endpoint on the subnet of the VMs, and allow the virtual network on the sql server hosting the azure DB.
Let's assume at this level, both public access and service endpoint are enabled at the same time for the VMs.

By default when the VMs, will try to access the DB, they will use the private network? service endpoint will take priority over the internet access to the VM?
and let's assume there is an issue with the private access, will it failover to the internet one?

Thank you

Azure SQL Database
0 comments No comments

Answer accepted by question author

Konstantinos Passadis 19,701 Reputation points MVP
2023-07-04T09:11:29.3666667+00:00

Hello @Mohamed jihad bayali !

In this scenario, the VMs will prioritize the private network access through the service endpoint over the internet access. The traffic from the VMs to the Azure SQL DB will be routed through the Azure backbone network, which provides a more secure and reliable connection compared to internet-based access.

However if there is an issue , it wont redirect

You need manually to disable the service endpoint on the subnet of the VMs

I hope this helps!

Kindly mark the answer as Accepted and Upvote in case it helped!

Regards

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Mohamed jihad bayali 1,141 Reputation points
    2023-07-04T11:59:47.5+00:00

    that's what i thought
    Thanks

    Was this answer helpful?

    0 comments No comments

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.