無効なキーの例外

症状

エラー:「ストレージ・アカウント・キーが無効です。(The Storage Account Key was invalid.) ホストに接続できません。(Unable to connect to the host.)」

エラー:「無効なキーが検出されました。(An invalid key was encountered.) このエラーは通常、パスワードまたは許可キーに関連しています。(This error is commonly associated with passwords or authorization keys.) 詳しくは、「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.)」

原因

ストレージ・アカウント接続ストリングから形成されるキーが無効です。 ストレージ・アカウントのキーは接続ストリングに含まれます。 キーが変更されると、そのキーは無効になる可能性があります。

問題の解決

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

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