简体   繁体   English

Azure App Service VNET与内部DNS的集成

[英]Azure App Service VNET Integration with Internal DNS

I am looking to integrate my public app service to my production virtual network to gain access to some resources within it (APIs), some of which will be load balanced with internal load balancers (container services containers inside an AKS environment) - I would like to use a private DNS zone to attribute DNS names to the ILB IP addresses created by AKS so that my upstream app services need to only deal in Azure private DNS and I am free to change the IP address this DNS points to as an when required. 我希望将公共应用程序服务集成到生产虚拟网络中,以访问其中的某些资源(API),其中一些资源将通过内部负载平衡器(AKS环境中的容器服务容器)进行负载平衡-我想使用私有DNS区域将DNS名称归因于AKS创建的ILB IP地址,以便我的上游应用程序服务仅需要处理Azure私有DNS,并且我可以根据需要随时更改此DNS指向的IP地址。

Firstly, is this possible? 首先,这可能吗? If so - how would I go about getting the app service to use the private DNS zone for resolution of resources within my VNET? 如果是这样-我将如何使应用程序服务使用私有DNS区域来解析VNET中的资源?

Alternatively... is there a better pattern I could follow here? 另外...在这里我可以遵循更好的模式吗? I am ultimately wanting my upstream developers using public cloud app services to be able to reference the address for private VNET services in a DNS format (service1.mydns.private) instead of referencing internal load balancer IP addresses! 我最终希望使用公共云应用程序服务的上游开发人员能够以DNS格式(service1.mydns.private)引用私有VNET服务的地址,而不是引用内部负载平衡器IP地址!

Thank you in advance! 先感谢您! :) :)

You can do this with Azure DNS Private Zones. 您可以使用Azure DNS专用区域来执行此操作。 You would need to specify the VNETs associated with your App Service, as well as the VNET where your ILB and other resources exist, as Resolution VNETs for the private zone (eg: myzone.local). 您需要指定与您的应用程序服务关联的VNET,以及您的ILB和其他资源所在的VNET,作为专用区域的解析VNET(例如:myzone.local)。 Then, you create a DNS record for the ILB in the private zone (eg: myilb.myzone.local). 然后,在专用区域中为ILB创建DNS记录(例如:myilb.myzone.local)。 Then, from your App Service, simply use the DNS record (eg: myilb.myzone.local) to name resolve the ILB IP. 然后,从您的App Service中,只需使用DNS记录(例如:myilb.myzone.local)来命名解析ILB IP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM