Edit

Share via


Quickstart: Configure vaulted backup for Azure Files using Azure PowerShell

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:

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