Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This quickstart describes how to configure vaulted backup for Azure Files using Azure PowerShell. You can also configure backup with Azure CLI or in the Azure portal.
Azure Backup supports configuring snapshot and vaulted backups for Azure Files in your storage accounts. Vaulted backups offer an offsite solution, storing data in a general v2 storage account to protect against ransomware and malicious admin actions. You can:
- Define backup schedules and retention settings.
- Store backup data in the Recovery Service vault, retaining it for up to 10 years.
Prerequisites
Before you configure vaulted backup for Azure Files, ensure that the following prerequisites are met:
Ensure that File Share is in a supported storage account type. See the Azure Files backup support matrix.
Allow Azure services on the trusted services list in the Firewall settings to access the storage account, if access is restricted. Learn how to grant an exception.
Use an existing Recovery Services vault. If you don't have the vault, create one.
Configure a Backup policy for the backup operation.
Configure backup
To configure vaulted backup for Azure Files, use the Enable-AzRecoveryServicesBackupProtection
cmdlet.
Note
After the policy is associated with the vault, backups are triggered in accordance with the policy schedule.
The following example cmdlet configures protection for the Azure Files testAzureFS
in storage account testStorageAcct
, with the policy dailyafs
:
Enable-AzRecoveryServicesBackupProtection -StorageAccountName "testStorageAcct" -Name "testAzureFS" -Policy $afsPol
The cmdlet gives the output similar to the following one when the configure-protection job is complete:
WorkloadName Operation Status StartTime EndTime JobID
------------ --------- ------ --------- ------- -----
testAzureFS ConfigureBackup Completed 11/12/2018 2:15:26 PM 11/12/2018 2:16:11 PM ec7d4f1d-40bd-46a4-9edb-3193c41f6bf6
Next steps
- Restore Azure Files using Azure PowerShell.
- Restore Azure Files using Azure portal, Azure CLI, REST API.
- Manage Azure Files backups using Azure portal, Azure PowerShell, Azure CLI, REST API.