Snapshot policies are here! Until today, if you wanted to schedule or automate the creation (and retention) of snapshots in the Azure NetApp Files service, you needed to BYOA (bring your own automation). Like any first-party Azure service, ANF supports all of the standard Azure APIs and automation tools, so this wasn’t terribly difficult and there was even a Logic App that was simple to deploy and took care of the heavy lifting.
But of course, Microsoft and NetApp continue to bring new features and more value to this great service. There is one tiny caveat… at this time, the snapshot policy feature is currently in preview. But don’t worry, the registration process is painless. We’ll have you creating snapshot policies in just a few minutes.
As a prerequisite, you’ll need Azure PowerShell installed and connected to your Azure account:
Install-Module -Name Az -AllowClobber -Scope CurrentUser
Once you have successfully connected to your Azure account, continue with registering the ‘ANFSnapshotPolicy’ feature:
Register-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFSnapshotPolicy
Lastly, verify the feature is ‘Registered’:
Get-AzProviderFeature -ProviderNamespace Microsoft.NetApp -FeatureName ANFSnapshotPolicy
The registration process should take about ten minutes, but your experience may vary slightly. At this point, you should see the ‘Data protection’ sub-heading and ‘Snapshot policy’ menu item within the Azure portal (take a look at the screen shot below). You are now ready to create your first snapshot policy. Head on over to the official Azure NetApp Files documentation to get started.