我的Azure Web应用程序未连接到Azure DB。

编程入门 行业动态 更新时间:2024-10-24 22:19:08
本文介绍了我的Azure Web应用程序未连接到Azure DB。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

请任何一次可以帮助我从azure web应用程序连接azure数据库,因为它在我的本地机器上工作正常。

Please any once can help me to connecting to azure db from azure web app as its working fine in my local machine.

默认连接显示如下, 数据源= tcp:XXXX.database.windows,1433;初始目录= XXXX_db;用户标识= XXXXX;密码= XXXXXX;

default connection is showing like this, Data Source=tcp:XXXX.database.windows,1433;Initial Catalog=XXXX_db;User Id=XXXXX;Password=XXXXXX;

谢谢,

Lokesh

推荐答案

嗨Lokesh,

Hi Lokesh,

您可能需要检查数据库的Azure防火墙/安全设置。

You may have to check your Azure firewall/security settings for the database.

以下是详细指南: azure.microsoft/en-us/documentation/articles/sql-database-configure-firewall-settings/

我复制/粘贴了以下步骤,但上面的URL也有详细的截图(预览门户网站):

I have copy/pasted the steps below, but the URL above also has detailed screenshots (Preview portal):

  • 通过以下网址登录Azure预览门户,位于 portal.azure/ 。
  • 在左侧横幅中,单击"全部浏览"。将显示"浏览"刀片。
  • 滚动并单击SQL Server。将显示SQL Server刀片。 (在门户中查找Azure SQL数据库服务器)
  • 为方便起见,请单击最小化控件。早期浏览刀片。
  • 在过滤器文本框中,开始键入服务器的名称。显示您的行。
  • 单击服务器的行。将显示服务器的刀片。
  • 在服务器刀片上,单击"设置"。将显示"设置"刀片。
  • 单击"防火墙"。将显示"防火墙设置"边栏选项卡。
  • 单击"添加客户端IP"。在第一个文本框中键入新规则的名称。
  • 键入要启用的范围的低IP地址值和高IP地址值。 (将低值结束为.0,高值为.255可能很方便。 添加允许的IP地址范围
  • 点击保存。
  • Log in through the Azure preview portal, at portal.azure/.
  • In the left banner, click BROWSE ALL. The Browse blade is displayed.
  • Scroll and click SQL servers. The SQL servers blade is displayed. (Find your Azure SQL Database server in the portal)
  • For convenience, click the minimize control on the earlier Browse blade.
  • In the filter text box, start typing the name of your server. Your row is displayed.
  • Click the row for your server. A blade for your server is displayed.
  • On your server blade, click Settings. The Settings blade is displayed.
  • Click Firewall. The Firewall Settings blade is displayed.
  • Click Add Client IP. Type in a name for your new rule into the first text box.
  • Type in the low and high IP address values for the range you want to enable. (It can be handy to have the low value end with .0 and the high with .255.Add an IP address range to allow)
  • Click Save.
  • 希望有所帮助! : - )

    Hope that helps! :-)

    Shahed

    更多推荐

    我的Azure Web应用程序未连接到Azure DB。

    本文发布于:2023-11-23 14:14:13,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1621732.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:连接到   应用程序   Azure   Web   DB

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!