Skip to main content
Home  › ... Technotes
SuperUser Account
/ Categories: DNN, Cloud, Azure

Migrating a DNN website to the cloud Part 5

Now that you have finished the migration and made your website live, it is a good idea to set up some sort of backup. There are many options but in this article, the procedure for setting up a simple Azure backup will be covered. For that, you will need a storage account.

Azure Storage Accounts

An Azure storage account isn’t just for backups and can be used to store all sorts of data types. The data stored within an Azure can also be replicated both locally – within the same datacentre – and geographically – between different datacentres – and it all costs money so select your options with care. Depending on your local data protection regulations regarding the storage of personal data, you may also be limited in your choice of locations for your storage account.

For the purposes of our little migration, our needs are simple:

  1. Set up a storage account
  2. Set up a backup of the files used by the DNN portal in Azure
  3. Set up a backup of the SQL database used by the DNN Portal in Azure
azure storage account

Once you have logged into your Azure account, create a new storage account and supply the following details:

  1. A name for the storage account – remember to use a naming convention as you will, in time, end up with several storage accounts. Azure is addictive.
  2. Select an Account kind. As we will be storing both files and a database backup, General Purpose will be most suitable.
  3. Select a replication option. As this is a backup then you don’t actually need a second copy but we have selected LRS (Locally Redundant storage) anyway.
  4. Select or create a resource group. As a resource group was created when we created the App Service, we can use it. That will keep all the components of this part of our new Azure empire together.
  5. Select a Location. As the App Service is in the UK, it makes sense to store the backup elsewhere in the world in case someone decides to torpedo the country. Europe is nearest and dear to our heart so the West Europe location was selected.

The backup

As you might imagine, the backup of ab Azure App service website has three parts:

  1. Website file backup
  2. Database backup
  3. Backup Schedule

The requirements of your application – in particular how quickly you would have to get it back following a failure – will determine how often you back up your website files and SQL databases. For this basic example, the source website files are backed up.

azure file backup

The database files are backed up to the same location. The databases are selected based on the connection string used. In this example, there is only one database and the default connection is used. Note that while data at rest is cheap in Azure, you get charged every time the data moves. If the destination for the backup is in a different Azure datacentre than the source, then frequent database backups, especially, can get expensive quickly.

azure database backups

The backup schedule can be set to your requirements. As this is a basic example, daily backups will suffice. Note the options to retain the backup – the more backups you retain the more they will cost you.

azure backup schedule

Once everything is set up, you should check if the backup has run correctly at its scheduled time.

azure backup summary
Previous Article ADFS 2.0 to 4.0 Migration
Next Article Migrating a DNN website to the Cloud Part 6
1611 Rate this article:
No rating
Please login or register to post comments.