Quantcast
Channel: SQL Archives - SQL Authority with Pinal Dave
Viewing all articles
Browse latest Browse all 594

SQL SERVER – Backup to URL Fails in Azure Resource Manager (ARM) Deployment Model with Error – (400) Bad Request

$
0
0

During my previous consulting engagement, I learned something new with SQL Server feature called back up to the URL. Since it was not so clearly documented, I am sharing this with you. In this blog post, let us learn about Azure Resource Manager. If you have not heard about this feature, you can think of it as variation of the SQL backup feature. In this type of backup, the destination would be an Azure storage rather than disk or tape. You can read more about this feature on my previous blog SQL SERVER – Backup to Azure Blob using SQL Server 2014 Management Studio.

My client was trying to take a backup on Azure, on a storage deployed under the ARM deployment model. You can read more about classic and ARM deployment models on below link.

Azure Resource Manager vs. classic deployment: Understand deployment models and the state of your resources

Here is how they are seen on https://ms.portal.azure.com  as of today.

SQL SERVER - Backup to URL Fails in Azure Resource Manager (ARM) Deployment Model with Error - (400) Bad Request b2url-01

Here is the error they were getting

Msg 3271, Level 16, State 1, Line 9
A nonrecoverable I/O error occurred on file “” Backup to URL received an exception from the remote endpoint. Exception Message: The remote server returned an error: (400) Bad Request..
Msg 3013, Level 16, State 1, Line 9
BACKUP DATABASE is terminating abnormally.

I was able to reproduce the same error for ARM storage accounts (blob storage)

Solution / Workaround

If you are trying to take a backup to Azure blob storage in the ARM deployment model, then make sure the “kind” of storage account should be selected as “General” while creating storage account. If we choose “Blob Storage” then it would fail.

The below image shows the option to choose while creating it.

SQL SERVER - Backup to URL Fails in Azure Resource Manager (ARM) Deployment Model with Error - (400) Bad Request b2url-02

SQL SERVER - Backup to URL Fails in Azure Resource Manager (ARM) Deployment Model with Error - (400) Bad Request b2url-03

If you already have an account created, then you can check it via looking at the icon.

SQL SERVER - Backup to URL Fails in Azure Resource Manager (ARM) Deployment Model with Error - (400) Bad Request b2url-04

Have you faced this problem?

Reference: Pinal Dave (http://blog.sqlauthority.com)

First appeared on SQL SERVER – Backup to URL Fails in Azure Resource Manager (ARM) Deployment Model with Error – (400) Bad Request


Viewing all articles
Browse latest Browse all 594

Trending Articles