#Is it possible to list ANF backups using the API?

1 messages · Page 1 of 1 (latest)

harsh quarry
#

We have a backup created in Azure for one of our ANF volumes. When I run Get-AzNetAppFilesBackup I get nothing. Get-AzNetAppFilesSnapshot will list the snapshots and I get a policy when running Get-AzNetAppFilesBackupPolicy. Am I doing something wrong when trying to list the backups? I'm not able to find anything that corresponds to what I'm seeing under Backups for the volume. When looking at the activity logs for the creation of the backup I can see that things are happening under backupVaults but I haven't been able to find a PowerShell command or API endpoint for that. Suggestions are appreciated. 🙂

potent ravine
#

Have you tried az netappfiles account backup-vault backup list --account-name --backup-vault-name --resource-group [--filter] [--max-items] [--next-token]

https://learn.microsoft.com/en-us/cli/azure/netappfiles/account/backup-vault/backup?view=azure-cli-latest#az-netappfiles-account-backup-vault-backup-list

The backup-vault appears to be in preview mode so you may need to update your azure CLI. But it doesn't seem to be apart of the API documentation as i read through it.

harsh quarry
#

Yup, that did the trick. Guess I might have to rethink my PowerShell script a bit since it's been built around API's up till now. Might be better to use Azure CLI within the script if there are gaps like this.

#

Thanks again!

potent ravine
#

Could you do both?

#

Use an API and then call the CLI when absolutley necessary?

#

(I am curious if that is a thing more than anything)