简体   繁体   中英

Azure SQL exports fail to backup in blob container

I have a database in Azure SQL database, single database. It is Northwind sample that I have created in Azure SQL database, by using scripts. I am trying to export this database into blob storage in a storage account Gen 2. I have created a storage account in the same resource group where my Azure SQL database, single database resides. Via the portal I export the database. In firewall settings of my database, I have already checked "Allow Azure services and resources to access this server" as shown below:

在此处输入图像描述

I have also added my IP address to have access.

When I click on export I can see my storage account, and the container to save my backups (export database files) as shown below:

在此处输入图像描述

However, when I click OK and my export request is submitted, after a few minutes, I can see in "Import/Export History" that my request status remians on "Running, Progress=1%" and later the status changes to "Failed".

在此处输入图像描述

When I check my blob container in the storage account I can see the files are there all with 4B size as show below:

在此处输入图像描述

What is the cause of this and how can I resolve it? Basically I want to export the database into a blob storage by following this link but it is failing to export. Thank you in advance.

You can use SQL Server Management Studio (SSMS) to export the database bacpac file in blob storage account.

Follow the below steps:

  1. Open the SSMS in your local machine and login to your Azure SQL Server. Fill the required details and click on Connect as shown below.

在此处输入图像描述

  1. Right click on database you want to backup. Follow Task -> Export Data-tier Application .

在此处输入图像描述

  1. Select Save to Microsoft Azure option. Click on Connect to connect with your Azure account and provide storage account details. Click on Next .

在此处输入图像描述

  1. On the next page, check the summary of your settings and simply click on Finish button.

Once finished, you can check the bacpac file in your storage account. See the image below for your reference.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM