Using ANF with SnapCenter Backup scripting and Snapshot locking requires separate LockTypes
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