私たちは最近、実稼働環境の展開中にクライアントをSQL Azureプラットフォームに移行しました。すべての外部の兆候によって、それは成功しました:それに接続されているWebアプリケーションはすべて動作しています。SQL Azure - 接続の失敗 - 問題はありませんか?
しかし、Azureモニタを見ると、多くの失敗した接続が見られます。何が失敗した接続を構成しているかを説明する多くのドキュメントを見つけることができませんでした。そして、私たちのユーザーの誰もが問題を報告していません。これはどういうことを誰かが知っていますか?要求されたとして、
2013-04-19 16:40:00.0000000 2013-04-19 16:45:00.0000000 [DATABASE] connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:40:00.0000000 2013-04-19 16:45:00.0000000 connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:35:00.0000000 2013-04-19 16:40:00.0000000 [DATABASE] connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:35:00.0000000 2013-04-19 16:40:00.0000000 connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:30:00.0000000 2013-04-19 16:35:00.0000000 [DATABASE] connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:30:00.0000000 2013-04-19 16:35:00.0000000 connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:25:00.0000000 2013-04-19 16:30:00.0000000 [DATABASE] connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:25:00.0000000 2013-04-19 16:30:00.0000000 connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:20:00.0000000 2013-04-19 16:25:00.0000000 [DATABASE] connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:20:00.0000000 2013-04-19 16:25:00.0000000 connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
2013-04-19 16:15:00.0000000 2013-04-19 16:20:00.0000000 [DATABASE] connection_failed blocked_by_firewall Client IP address is not allowed to access the server. NULL
そして、我々の接続文字列の例:この記事からサンプルクエリを使用して
は(View Connection Issues on an SQL Azure Instance)
SELECT
[Date From] = EL.[start_time],
[Date To] = EL.[end_time],
[Database Name] = EL.[database_name],
[Event Type] = EL.[event_type],
[Event Sub Type] = EL.[event_subtype_desc],
[Description] = EL.[description],
[Additional Data] = EL.additional_data
FROM sys.event_log EL
WHERE EL.event_type != 'connection_successful'
AND EL.event_subtype_desc != 'idle_connection_timeout'
ORDER BY [Date From] DESC
は、私たちは、このような結果を参照してください。
<add name="[MyContext]"
providerName="System.Data.SqlClient"
connectionString="
Server=tcp:[machine].database.windows.net,1433;
Database=[database];
User ID=[user]@[machine];
Password=[password];
Trusted_Connection=False;
Encrypt=True;
Connection Timeout=30;"/>
あなたは[このドキュメント](http://msdn.microsoft.com/en-us/library/windowsazure/ee336245.aspx)チェックアウトした、および一時的なエラーのために[TN再試行ロジックがありますWindows Azure SQLデータベース](http://social.technet.microsoft.com/wiki/contents/articles/4235.retry-logic-for-transient-failures-in-windows-azure-sql-database.aspx) – astaykov
I最近同じ記事が出てきました。更新された質問をチェックして、イベントログのクエリの結果を追加しました。私たちのユーザーの誰も問題を報告していないのに、それらはすべて "blocked_by_firewall"エラーとして表示されます... –
SQLに接続するアプリケーションはどこですかアズールが走っている?必要なすべてのIPアドレスへのアクセスを提供してもよろしいですか?アプリケーションのどれかが一定範囲のIPから接続するか、または動的に割り当てられたIPを持っていますか?接続文字列の形式を投稿できますか? – greg84