Hello @ThePowershellFan
Welcome to the Microsoft Q&A and thank you for posting your questions here.
You are in need of Azure CLI to find the backup vaults configured for blob container and file share.
Most of all, so sorry for not being able to find Microsoft documents to achieve my goal at that time.
Now, here we go! If you want to manage the backups or backup-related configurations for Blob Containers and File Shares, you need to work with the Azure Backup service for Blob Containers and Azure File Sync for File Shares.
Below are the ways on how you can work with Azure Backup and find the backup vaults configured for Blob Containers and Azure File Sync for File Shares using the Azure CLI:
- First, you need to list all the backup items in your resource group and vault name using the command:
az backup item list --resource-group <resource-group-name> --vault-name <vault-name>
This will return a JSON output with the details of each backup item, such as the container name, friendly name, type, policy name, and recovery point count. - Azure Backup for Blob Containers, to list Azure Backup vaults:
az backup vault list --resource-group <resource-group-name>
- Azure File Sync for File Shares, to list Azure File Sync services:
az sync list --resource-group <resource-group-name>
There are many things you can do with your output. You can filter the output by the container name and the friendly name that match your blob container and file share names.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam