Manage snapshot policies in Azure NetApp Files

Snapshots enable point-in-time recovery of volumes. You can schedule for volume snapshots to be taken automatically by using snapshot policies. You can also modify a snapshot policy as needed, or delete a snapshot policy that you no longer need.

Create a snapshot policy

A snapshot policy enables you to specify the snapshot creation frequency in hourly, daily, weekly, or monthly cycles. You also need to specify the maximum number of snapshots to retain for the volume.

Note

In case of a service maintenance event, Azure NetApp Files might sporadically skip the creation of a scheduled snapshot.

  1. From the NetApp Account view, select Snapshot policy.

    Screenshot that shows how to navigate to Snapshot Policy.

  2. In the Snapshot Policy window, set Policy State to Enabled.

  3. Select the Hourly, Daily, Weekly, or Monthly tab to create hourly, daily, weekly, or monthly snapshot policies. Specify the Number of snapshots to keep.

    Important

    For monthly snapshot policy definition, be sure to specify a day that will work for all intended months. If you intend for the monthly snapshot configuration to work for all months in the year, pick a day of the month between 1 and 28. For example, if you specify 31 (day of the month), the monthly snapshot configuration is skipped for the months that have less than 31 days.

    Note

    Using policy-based backups for Azure NetApp Files might affect the number of snapshots to keep. Backup policies involve snapshot policies. And Azure NetApp Files prevents you from deleting the latest backup.

    See Resource limits for Azure NetApp Files about the maximum number of snapshots allowed for a volume.

    The following example shows hourly snapshot policy configuration.

    Screenshot that shows the hourly snapshot policy.

    The following example shows daily snapshot policy configuration.

    Screenshot that shows the daily snapshot policy.

    The following example shows weekly snapshot policy configuration.

    Screenshot that shows the weekly snapshot policy.

    The following example shows monthly snapshot policy configuration.

    Screenshot that shows the monthly snapshot policy.

  4. Select Save.

If you need to create additional snapshot policies, repeat Step 3. The policies you created appear in the Snapshot policy page.

If you want a volume to use the snapshot policy, you need to apply the policy to the volume.

Apply a snapshot policy to a volume

If you want a volume to use a snapshot policy that you created, you need to apply the policy to the volume.

You cannot apply a snapshot policy to a destination volume in cross-region replication.

  1. Go to the Volumes page, right-click the volume that you want to apply a snapshot policy to, and select Edit.

    Screenshot that shows the Volumes right-click menu.

  2. In the Edit window, under Snapshot policy, select a policy to use for the volume. Select OK to apply the policy.

    Screenshot that shows the Snapshot policy menu.

Modify a snapshot policy

You can modify an existing snapshot policy to change the policy state, snapshot frequency (hourly, daily, weekly, or monthly), or number of snapshots to keep.

Important

When modifying a snapshot policy, make note of the naming format. Snapshots created with policies modified before March 2022 will have a long name, for example daily-0-min-past-1am.2022-11-03_0100, while snapshots created with policies after March 2022 will have a shorter name, for example daily.2022-11-29_0100.

If your snapshot policy is creating snapshots using the long naming convention, modifications to the snapshot policy will not be applied to existing snapshots. The snapshots created with the previous schedule will not be deleted or overwritten by the new schedule. You will have to manually delete the old snapshots.

If your snapshot policy is creating snapshots using the short naming convention, policy modifications will be applied to the existing snapshots.

  1. From the NetApp Account view, select Snapshot policy.

  2. Right-click the snapshot policy you want to modify, then select Edit.

    Screenshot that shows the Snapshot policy right-click menu.

  3. Make the changes in the Snapshot Policy window that appears, then select Save.

  4. You will receive a prompt asking you to confirm that you want to update the Snapshot Policy. Select Yes to confirm your choice.

Delete a snapshot policy

You can delete a snapshot policy that you no longer want to keep.

  1. From the NetApp Account view, select Snapshot policy.

  2. Right-click the snapshot policy you want to modify, then select Delete.

    Screenshot that shows the Delete menu item.

  3. Select Yes to confirm that you want to delete the snapshot policy.

    Screenshot that shows snapshot policy delete confirmation.

Next steps