The error message below is encountered when migrating content to SharePoint Online (SPO):
Exception: The remote server returned an error: (400) Bad Request.
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions, OperationContext operationContext)
at Metalogix.Azure.ConsoleProcessor.AzureContainerManager.CreateContainerIfNotExists(String storageConnectionString, String containerName, BlobAccessPermissions permissions) Error: The remote server returned an error: (400) Bad Request.
at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
at Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer.CreateIfNotExists(BlobContainerPublicAccessType accessType, BlobRequestOptions requestOptions, OperationContext operationContext)
at Metalogix.Azure.ConsoleProcessor.AzureContainerManager.CreateContainerIfNotExists(String storageConnectionString, String containerName, BlobAccessPermissions permissions)
Stack: at Metalogix.Azure.Blob.Manager.AzureContainerInstance.CreateContainer(String containerName, BlobAccessPermissions permissions)
at Metalogix.Azure.Blob.Manager.AzureContainerInstance.GetBlobContainer()
at Metalogix.Office365.AzureMigrationHelper.Upload()
at Metalogix.Office365.BatchManifestJob.ProcessManifestItems()
Type: System.Exception
HResult:-2146233088
The issue generally occurs when an incorrect container and/or account name for Azure is used. A container name must be a valid DNS name, conforming to the following naming rules:
For additional information, please click here.
To resolve the issue, please do the following:
<XmlableEntry>
<Key>UploadManagerAzureStorageConnectionString</Key>
<Value>DefaultEndpointsProtocol=https;AccountName=johndoe;AccountKey=pnl7TvOJETTnr6Pheodq2DnF0piOozE BIUdVs2hrr8+l4Jzk2PXqdK0gBEz2qESzkr1c2JVQYJZooQe26pd2AA==</Value>
</XmlableEntry>
Otherwise, create a new storage container with a valid name, then use it for the migration.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center