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

image

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 https://docs.microsoft.com/en-us/azure/backup/backup-azure-afs-automation

  • 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”

image

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)

imageimage

 

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.