基于Linux的Java App ..连接到Azure VM上的数据库 [英] Linux based Java App .. connectivity to database on Azure VM

查看:54
本文介绍了基于Linux的Java App ..连接到Azure VM上的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好



是否有任何连接应用服务的方法到位于Azure VM上的数据库。 

解决方案


常见的方法是将连接字符串添加到WebApp的"应用程序设置"边栏,然后在网站代码中引用该变量以进行连接。


为了连接到SQL VM,我还要确保WebApp在vNET中,以便您可以通过专用网络控制对SQL的访问。 如果确实需要使用公共IP地址连接到VM,则可以获取WebApp将在WebApp的属性刀片上使用的所有出站
IP的列表。


这是你想要的东西还是更具体的东西?


谢谢,


马特


Hi

Is there any approach for connecting app service to database located on Azure VM. 

解决方案

Hi,

The common way for this is to add the connection string to Application Settings blade of the WebApp and then reference that variable in your website code for the connection.

For connectivity into the SQL VM, I would also ensure that the WebApp is in a vNET so that you can control access to SQL over a private network.  If you do need to use the public IP address to connect to the VM then you can get a list of all outbound IPs that the WebApp will use on the properties blade of the WebApp.

Is that the kind of thing you were looking for or is this something more specific?

Thanks,

Matt


这篇关于基于Linux的Java App ..连接到Azure VM上的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆