Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

House-Keeping Failing - Snapshots Exceeded Maximum Allowed #3

Open
fredbaiz opened this issue Jun 19, 2021 · 1 comment
Open

House-Keeping Failing - Snapshots Exceeded Maximum Allowed #3

fredbaiz opened this issue Jun 19, 2021 · 1 comment

Comments

@fredbaiz
Copy link

Hello:

Some of the v1 logic apps that I have deployed to take ANF snapshots are not cleaning up expired shapshots. Therefore the total number of snapshots for a given volume has exceeded the maximum number allowed and future snapshots are now failing.

Is there a way to trigger the logic app to start at the housekeeping stage so that it can automate the cleanup of the old snapshots?

Alternatively, do you know of a way to mass delete snapshots via PowerShell or Azure CLI?

Thanks!

{
"error": {
"code": "Conflict",
"message": "Creating the snapshot would exceed the quota of 255 snapshots per volume. The current adhoc snapshot count is 255 and the current snapshot policy for the volume keeps 0 snapshots. Please delete some adhoc snapshots or revise the shapshot policy before creating a new adhoc snapshot."
}
}

ActionConditionFailed. The execution of template action 'Scheduler_House-Keeping_Logic' is skipped: the 'runAfter' condition for action 'Take_snapshot_on_the_target_volume_(Azure_NetApp_Files_API)' is not satisfied. Expected status values 'Succeeded' and actual value 'Failed'.

@seanluce
Copy link

seanluce commented Jul 8, 2021

Sorry for the delayed response, @fredbaiz. I am not following this project very closely as we now have native Snapshot Policies. However, I do think the direction would be to deploy v2 of the Logic App if you still need to customize the snapshot schedules beyond what the native policies support.

You can mass delete snapshots with AZ CLI or the PowerShell modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants