How To Backup SQL Server Databases To Microsoft Azure
How To Backup SQL Server Databases To Microsoft Azure
In the last chapter, we explained how to create a Microsoft Azure Account and how to
have a Microsoft Azure Portal.
This time, we will show how to backup our SQL Server Databases to a Microsoft
Azure. We are assuming that you already have an Azure account.
Introduction
Microsoft Azure stores your information with redundancy on the web. It is a safe and
secure environment and simplifies your administrative tasks.
Getting Started
There are two main steps to backup your database in Microsoft Azure:
https://manage.windowsazure.com
Click on the Storage link to create a new storage.
For the URL, you can use any name if it does not already exist.
Location/Affinity group, lets you select where you want to store the primary data. It is
recommended to select a location closer to your current region. The options
available when this article was created were:
West US
East US 2
Central US
South Central US
West Europe
East US
Southeast Asia
East Asia
Japan West
Japan East
Locally redundant storage stores and maintains three copies of your data in a
single facility and a single region.
Geo-Redundant is the default and recommended option. This option lets you
create six replicas of your data 3 in your local region and three in other region
far away from the other replica.
Read access geo-redundant creates replicas in a primary region and
secondary read-only replica in a second region. In case that the primary replica
fails, the secondary replica can be used with read-only permissions.
Zone-Redundant storage lets you store 2-3 replicas in the same region or two
different regions.
Figure 5. Storage options
If everything is OK, a new storage will be created. Click on the sqlshack link just
created.
Return to the storage section and click the manage keys option.
Figure 11. Manage keys option
The Manage Access Keys are used to connect to SQL Azure. The use will be
explained later.
The identity should be the storage name used in figure 5, the Password and Confirm
password are the primary keys used in figure 12. Use the primary key as a password
and in the confirm password textbox.
If you prefer you prefer the T-SQL, you can use the following sentences:
In the Back up to option, select URL. In file name, you can write any name or keep
the default values. In SQL credential, select the credential created in figure 14. In
azure storage container use the container created in figure 9 Finally for the URL