URI 構文例外

症状

エラー:「ストレージ・アカウント URI の形式に誤りがあります。(The Storage Account URI is malformed.) ストレージ・アカウント情報が有効であり、形式が適切に設定されていることを確認してください。(Ensure that the Storage Account information is valid and properly formatted.) ホストに接続できません。(Unable to connect to the host.)」

エラー:「テキストを URI 参照として解析できませんでした。(Could not parse text as a URI reference.) 詳しくは、「Raw Error Message」を参照してください。(For more information see the “Raw Error Message".) 次の再試行間隔でコンテンツの照会が試行されます。(An attempt will be made to query for content at the next retry interval.)」

原因

ストレージ・アカウント接続ストリングから形成される URI が無効です。 URI は、DefaultEndpointsProtocol フィールド、AccountName フィールド、および EndpointSuffix フィールドから形成されます。 これらのフィールドのいずれかが変更されている場合、この例外が発生する可能性があります。

問題の解決

Azure ポータルからストレージ・アカウント接続ストリングを再度コピーします。 次の例のようになります。

DefaultEndpointsProtocol=https;AccountName=<Storage Accounts Name>;AccountKey=<Storage Account Key>;EndpointSuffix=core.windows.net