skip to Main Content

I am trying to pull azure backup report using recovery service vault. I am using az backup job list but not able to pull backup job list for mabs

I am trying to pull azure backup report using recovery service vault. I am using az backup job list but not able to pull backup job list for mabs

Also, I need to filter using date time for the job report.In my environment jobs are scheduled like yesterday 10pm to today 10pm..

Please help me with the command

2

Answers


  1. Chosen as BEST ANSWER

    I want to automate this script as task scheduler and this script will run every day. So, I need the filter in that time frame, so that this script will pull report every day ...not a particular date.


  2. I need to filter using date time for the job report.In my environment jobs are scheduled like yesterday 10pm to today 10pm

    To pull Azure backup job list using the Azure CLI az backup job list command for Azure Backup Server and filter the job report based on a specific Date and Time range, you can use below PowerShell command.

     az backup job list --resource-group "RG-Name" --vault-name "Vault-Name" --end-date 17-07-2023-13:28:47 --start-date 16-07-2023-10:28:47
    

    Output:

    enter image description here

    Reference: List all backup jobs of a Recovery Services vault.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search