I have a SQL Server 2014 up and running and I am trying to backup a specific database to Azure storage. I created a credential using the storage account name as identity and the primary key as password. Then I tried to backup the database to URL but I get the following error:

TITLE: Microsoft SQL Server Management Studio

Backup failed for Server '*****'.  (Microsoft.SqlServer.SmoExtended)


System.Data.SqlClient.SqlError: A nonrecoverable I/O error occurred on file "https://******.blob.core.windows.net/backupcontainer/demo_backup_2016_06_22_110957.bak:" Backup to URL received an exception from the remote endpoint. Exception Message: The remote server returned an error: (400) Bad Request.. (Microsoft.SqlServer.Smo)
  • please post your backup command for us to repro the issue.error code 400 means some thing is wrong with your query.also try tracing through fiddler Jun 22 '16 at 11:23
  • I did the backup from SSMS interface not command line. I choose backup to URL and enter the credential and link to azure storage account then I get the pmentioned error.
    – Anas
    Jun 23 '16 at 8:09
  • You will have an option to script out Jun 23 '16 at 8:13

I figured out what the problem is. When I created the storage account I choose the kind to be "Blob Storage". It must be "General Purpose" to work. The backup steps was correct, the problem was with the kind of storage account.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.