Forum Discussion
Azure NetApp Files | Azure cli command to suspend/resume backup at volume level
I'm looking for the corresponding azure cli for the following action
https://learn.microsoft.com/en-us/azure/azure-netapp-files/backup-manage-policies#suspend-a-backup-policy-for-a-specific-volume
I do see a cli (at policy level)
az netappfiles account backup-policy update, which has got the following parameter
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
The property to decide policy is enabled or not. Accepted values: 0, 1, f, false, n, no, t, true, y, yes
Is there a cli for this action at Volume level in the Configure Backups dialog box > Policy State { Suspend/Resume}, how shall we achieve this if we have programmatically do this step.
3 Replies
- DurgalakshmiSivadasCopper Contributor
is there a cli to suspend/resume backup at volume level?
If the volume is under replication, then even if the backup policy is disabled, it is mandatory to disable the backup at VOLUME level..
Could someone help me with this?
The command to suspend and resume backup at ANF volume level.
Since we are able to do this in the GUI
- DurgalakshmiSivadasCopper Contributor
Thanks for the response.
I was looking for azure cli for the same.This following one can be used to
Update a backup policy for Netapp Account.
az netappfiles account backup-policy update
[--account-name]
[--add]
[--backup-policy-name]
[--daily-backups]
[--enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--monthly-backups]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
[--weekly-backups]But this one is at backup policy level, which will apply to all volumes that are assigned to this policy
I was looking for a similar cli command at volume level, and I could find only list commands, no cli to suspend/resume backups at volume level