URI Syntax exception


Error: “The Storage Account URI is malformed. Ensure that the Storage Account information is valid and properly formatted. Unable to connect to the host.”

Error: "Could not parse text as a URI reference. For more information see the “Raw Error Message". An attempt will be made to query for content at the next retry interval."


The URI that is formed from the storage account connection string is invalid. The URI is formed from the DefaultEndpointsProtocol, AccountName, and EndpointSuffix fields. If one of these fields is altered, this exception can occur.

Resolving the problem

Recopy the Storage Account Connection String from the Azure Portal. It displays similar to the following example:

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