| title | Tutorial - Back up Azure Files using Azure portal | |
|---|---|---|
| description | Learn how to back up Azure Files using Azure portal. | |
| ms.devlang | azurecli | |
| ms.custom |
|
|
| ms.topic | tutorial | |
| ms.date | 01/29/2026 | |
| ms.service | azure-backup | |
| author | AbhishekMallick-MS | |
| ms.author | v-mallicka |
This tutorial describes how to back up Azure Files using Azure portal.
Azure Files backup is a native cloud solution that protects your data and eliminates on-premises maintenance overheads. Azure Backup seamlessly integrates with Azure File Sync, centralizing your file share data and backups. The simple, reliable, and secure solution allows you to protect your enterprise file shares using snapshot and vaulted backups, ensuring data recovery for accidental or malicious deletion.
Before you back up Azure Files, ensure that the following prerequisites are met:
- Check that the File Share is present in one of the supported storage account types. Review the support matrix.
- Identify or create a Recovery Services vault in the same region and subscription as the storage account that hosts the File Share.
- If the storage account access has restrictions, check the firewall settings of the account to ensure the exception Allow Azure services on the trusted services list to access this storage account is in grant state. You can refer to this link for the steps to grant an exception.
- Create a backup policy for protection of Azure Files.
[!INCLUDE How to create a Recovery Services vault]
[!INCLUDE Configure Azure Files vaulted backup.]
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 configure the backup policy. Based on the schedule in the backup policy, it might be hours or days until a snapshot is taken. To protect your data until the backup policy engages, initiate an on-demand backup. Creating an on-demand backup is often required before you make planned changes to your file shares.
Choose an entry point
To run an on-demand backup, follow these steps:
-
Go to the Recovery Services vault and select Backup items from the menu.
-
On the Backup items pane, select the Backup Management Type as Azure Storage (Azure Files).
-
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.
:::image type="content" source="./media/backup-afs/azure-file-share-backup-now.png" alt-text="Screenshot showing to select Backup now." lightbox="./media/backup-afs/azure-file-share-backup-now.png":::
-
The Backup Now pane opens. Specify the last day you want to retain the recovery point. You can have a maximum retention of 10 years for an on-demand backup.
:::image type="content" source="./media/backup-afs/azure-file-share-on-demand-backup-retention.png" alt-text="Screenshot showing to choose retention date.":::
-
Select OK to confirm the on-demand backup job that runs.
-
Monitor the portal notifications to keep track of backup job run completion.
To monitor the job progress in the Recovery Services vault dashboard, go to Recovery Services vault > Backup Jobs > In progress.
To run an on-demand backup, follow these steps:
-
Open the file share’s Overview pane for which you want to take an on-demand backup.
-
Under the Operation section, select Backup.
The context pane appears that lists Vault Essentials. Select Backup Now to take an on-demand backup.
-
The Backup Now pane opens. Specify the retention for the recovery point. You can have a maximum retention of 10 years for an on-demand backup.
-
Select OK to confirm.
Note
Azure Backup locks the storage account when you configure protection for any file share in the corresponding account. This feature provides protection against accidental deletion of a storage account with backed up file shares.
-
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. Deletion of the lock can make your storage account prone to accidental deletion. Learn more about protect your resources with lock.
- Restore Azure Files using Azure portal.
- Restore Azure Files using Azure PowerShell, Azure CLI, REST API.
- Manage Azure Files backups using Azure portal, Azure PowerShell, Azure CLI, REST API.

