Azure – New capabilities for Azure Backup applicable to Azure Files (preview)

Azure  Backup has been updated to provide new capabilities:

Register-AzResourceProvider –ProviderNamespace “Microsoft.RecoveryServices”

You can check if this is already enabled (or if the registration has been completed successfully) with the command

Get-AzResourceProvider –ProviderNamespace “Microsoft.RecoveryServices”

of course you can also do this through the Azure administration portal using the Subscriptions\<the subscription to use>\Resource providers and search for Microsoft.RecoveryServices


Then you create a protection policy with the commands

$schPol = Get-AzRecoveryServicesBackupSchedulePolicyObject -WorkloadType “AzureFiles”
$retPol = Get-AzRecoveryServicesBackupRetentionPolicyObject -WorkloadType “AzureFiles”
New-AzRecoveryServicesBackupProtectionPolicy –Name <name of the protection policy> -WorkloadType “AzureFiles” -RetentionPolicy $retPol -SchedulePolicy $schPol

And finally enable the protection using the policy created above

$afsPol =  Get-AzRecoveryServicesBackupProtectionPolicy -Name <name of the protection policy>

All the details are available here

  • Finally you can manage Azure Backup for Azure Files from the portal. This replace the options “View Snapshots” and “Create Snapshots”

If you don’t see the option, check there is no notification saying “Backup is not enabled”


If this is the case, you need to go to the Recovery Vault first to enable Azure File Share for backup by creating a policy and configure Azure File backup (or use the PowerShell commands shown above)



Preview Limitations

  • Backup for Azure File is only available in Central US, East US, East US 2, North Europe, Southeast Asia, West Europe and West Europe 2
  • Backup for Azure File can not be used with storage account with read-access geo-redundant storage

Leave a Comment

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.