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.
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