简体   繁体   English

Azure 应用服务与 VM 中的 SQL 服务器集成

[英]Azure App Service integration with SQL Server in VM

I have an dotnet app which is running in azure app service and my data base is running on Azure Vm (IAAS), now i would like to access my application with SQL Server which is running on vm.我有一个 dotnet 应用程序,它在 azure 应用程序服务中运行,我的数据库在 Azure 虚拟机(IAAS)上运行,现在我想用 Z9778840A0100CB30C9828767A 上运行的服务器访问我的应用程序。

What is the recommended solution to achieve above, should i use private endpoint or service endpoint?实现上述建议的解决方案是什么,我应该使用私有端点还是服务端点?

To allow your app service to access the database in the VM, you need to Integrate your app with an Azure virtual network .要允许您的应用服务访问 VM 中的数据库,您需要将您的应用与 Azure 虚拟网络集成 VNet Integration gives your app access to resources in your VNet, but it doesn't grant inbound private access to your app from the VNet. VNet 集成使你的应用可以访问 VNet 中的资源,但它不会授予从 VNet 对你的应用的入站私有访问权限。 VNet Integration is used only to make outbound calls from your app into your VNet. VNet 集成仅用于从您的应用程序向您的 VNet 进行出站调用。

If you need to expose your app on a private IP in your virtual network.如果您需要在虚拟网络中的私有 IP 上公开您的应用程序。 You could use Private Endpoints for Azure Web App .您可以将私有端点用于 Azure Web App

More References:更多参考:

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

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