Back up Azure file shares in the Azure portal – Azure Backup | Microsoft Learn

Azure file share backup is a native, cloud based backup solution that protects your data in the cloud and eliminates additional maintenance overheads involved in on-premises backup solutions.

The Azure Backup service smoothly integrates with Azure File Sync, and allows you to centralize your file share data as well as your backups.

This simple, reliable, and secure solution enables you to configure protection for your enterprise file shares in a few simple steps with an assurance that you can recover your data in case of any accidental deletion.

Support Matrix for Azure file share backup – Azure Backup | Microsoft Learn

Create and rg and a storage account, make fileshare and upload a file.


Create a Recovery Services vault

Ensure that the file share is present in one of the supported storage account types.

Identify or create a Recovery Services vault in the same region and subscription as the storage account that hosts the file share.

You can search for backup center or recovery service vaults. when creating.

Configure the backup

You can again use backup center or fileshare pane

We will use backup center

In the Azure portal, go to Backup center and select +Backup.


To choose a backup policy for your file share, you have three options:

To create a new backup policy for your file share, select the link text below the drop-down list in the Backup Policy section.


Now, enable the backup. Select Enable Backup to start protecting the file share.

Run an on-demand backup job

Occasionally, you might want to generate a backup snapshot, or recovery point, outside of the times scheduled in the backup policy.

A common reason to generate an on-demand backup is right after you’ve configured the backup policy.

Go to Backup center and select Backup Instances from the menu.

Filter the query on storage accounts

Select the item for which you want to run an on-demand backup job.

In the Backup Item menu, select Backup now.

Because this backup job is on demand, there’s no retention policy associated with the recovery point.

Monitor the portal notifications to keep a track of backup job run completion.

To monitor the job progress in the Backup center dashboard, select Backup center -> Backup Jobs -> In progress.

Best practices

Don’t delete snapshots created by Azure Backup. Deleting snapshots can result in loss of recovery points and/or restore failures.

Don’t remove the lock taken on the storage account by Azure Backup. If you delete the lock, your storage account will be prone to accidental deletion and if it’s deleted, you’ll lose your snapshots or backups.

Oink, now remove it

stop the backup

On the fs in backup center, stop backup

Delete the backup and press top

View the backup jobs

Now there are no backup instances

If we look in the recovery service vault backup items is 0

Now clean up and remove the vault, since this was just for test.

Did we forget anything?

Jepp, error

Recovery Services Vault cannot be deleted as there are existing resources within the vault. : mainstacc0041. Please ensure all containers have been unregistered from the vault and all private endpoints associated with the vault have been deleted, and retry operation.

Did not see anything in the rec vault, go to the storage account.

Unregister a storage account

In the rec vault go to Backup InfraStructure

Choose storage

And unregister it

Now delete the vault