title | description | author | manager | ms.service | ms.topic | ms.date | ms.author | ms.reviewer |
---|---|---|---|---|---|---|---|---|
Azure Analysis Services database backup and restore | Microsoft Docs |
Describes how to backup and restore an Azure Analysis Services database. |
minewiskan |
kfile |
azure-analysis-services |
conceptual |
10/18/2018 |
owend |
minewiskan |
Backing up tabular model databases in Azure Analysis Services is much the same as for on-premises Analysis Services. The primary difference is where you store your backup files. Backup files must be saved to a container in an Azure storage account. You can use a storage account and container you already have, or they can be created when configuring storage settings for your server.
Note
Creating a storage account can result in a new billable service. To learn more, see Azure Storage Pricing.
Backups are saved with an abf extension. For in-memory tabular models, both model data and metadata are stored. For DirectQuery tabular models, only model metadata is stored. Backups can be compressed and encrypted, depending on the options you choose.
Before backing up, you need to configure storage settings for your server.
-
In Azure portal > Settings, click Backup.
-
Click Enabled, then click Storage Settings.
-
Select your storage account or create a new one.
-
Select a container or create a new one.
-
Save your backup settings.
-
In SSMS, right-click a database > Back Up.
-
In Backup Database > Backup file, click Browse.
-
In the Save file as dialog, verify the folder path, and then type a name for the backup file.
-
In the Backup Database dialog, select options.
Allow file overwrite - Select this option to overwrite backup files of the same name. If this option is not selected, the file you are saving cannot have the same name as a file that already exists in the same location.
Apply compression - Select this option to compress the backup file. Compressed backup files save disk space, but require slightly higher CPU utilization.
Encrypt backup file - Select this option to encrypt the backup file. This option requires a user-supplied password to secure the backup file. The password prevents reading of the backup data any other means than a restore operation. If you choose to encrypt backups, store the password in a safe location.
-
Click OK to create and save the backup file.
Use Backup-ASDatabase cmdlet.
When restoring, your backup file must be in the storage account you've configured for your server. If you need to move a backup file from an on-premises location to your storage account, use Microsoft Azure Storage Explorer or the AzCopy command-line utility.
Note
If you're restoring from an on-premises server, you must remove all the domain users from the model's roles and add them back to the roles as Azure Active Directory users.
-
In SSMS, right-click a database > Restore.
-
In the Backup Database dialog, in Backup file, click Browse.
-
In the Locate Database Files dialog, select the file you want to restore.
-
In Restore database, select the database.
-
Specify options. Security options must match the backup options you used when backing up.
Use Restore-ASDatabase cmdlet.
Azure storage accounts
High availability
Manage Azure Analysis Services