How to enable private endpoint between AKS and Azure SQL & Key Vault

Najam ul Saqib 340 Reputation points
2024-08-14T16:48:21.56+00:00

Hi I am using AKS on Azure which is communicating with Azure SQL and Key Vault, I want that I disable public access and only use private endpoint but, when I enable private endpoint on SQL I cant see VNet of AKS in the list, same goes for Key Vault as well.

Please guide on how private endpoint can be enabled?

Azure SQL Database
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,145 questions
{count} votes

Accepted answer
  1. Sina Salam 12,011 Reputation points
    2024-08-14T23:05:46.7566667+00:00

    Hello Najam ul Saqib,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would like to enable private endpoint between AKS and Azure SQL & Key Vault.

    You have started a good job; these are the prerequisites and one of these might be missing:

    • An Azure virtual network (VNet) where your AKS cluster resides.
    • A subnet within the virtual network.
    • Owner or contributor permissions for both the Azure SQL database and the virtual network.
    • The private endpoint and virtual network must be in the same region. AKS and SQL in the same region and Azure Key Vault and AKS in the same region.

    If you have the above in place, then disable public access for the Azure SQL database, and continue by adding a private endpoint to the database, specify the virtual network and subnet. This private endpoint will allow secure communication between AKS and Azure SQL via the VNet in the same region. Follow the links below for more step-by-step details.

    https://learn.microsoft.com/en-us/azure/key-vault/general/private-link-service.

    https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/private-aks-and-acr-using-private-endpoint-part-2-2/ba-p/3122281

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam


0 additional answers

Sort by: Most helpful

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.