Skip to main content
NetApp Knowledge Base

Using ANF with SnapCenter Backup scripting and Snapshot locking requires separate LockTypes

Views:
23
Visibility:
Public
Votes:
0
Category:
azure-netapp-files
Specialty:
cloud
Last Updated:

Applies to

  • Azure NetApp Files (ANF)
  • SnapCenter Plug-in for Custom Creator (SCC)

Issue

When using SnapCenter pre- and postscript, where the pre-script unlocks Snapshot deletion on ANF with a curl command, and the post-script locks it again in a similar way,
the locking worked fine (script tested outside of SnapCenter), but the unlocking failed to unlock, causing Retention to fail deleting the Snapshots.
 
The error message is:
Retention: The scope '/subscriptions/<SUB_UUID>/resourceGroups/<RG_NAME>/providers/Microsoft.NetApp/netAppAccounts/<ACCOUNT>/capacityPools/<STORAGE_POOL>volumes/<VOLUME>/snapshots/<SNAPSHOT_NAME>'cannot perform delete operation because the following scipes are locked: '/subscriptions/<SUB_UUID>/resourcegroups/<RG_NAME>'.  Please remove the lock and try again.
Status: 409 (Conflict)
ErrorCode: ScopeLocked
 

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.