Feb 18 2022 08:54 AM
I am running command to get the backup status of azure vms. in which I have to select option all the time like inprogress, completed, failure.
please help me the command which will show the status, whatever it is.
I am using the below command-
Get-AzRecoveryServicesBackupJob -Status InProgress -VaultId /subscriptions/f30d-46c7-8676-e34f9090bcc8/resourceGroups/abc/providers/Microsoft.RecoveryServices/vaults/vault803
and also there is possibility, that I can get the output for 2 days from current days.?
Feb 24 2022 06:36 AM
I guess something like this?
Get-AzRecoveryServicesBackupJob -VaultID /subscriptions/f30d-46c7-8676-e34f9090bcc8/resourceGroups/abc/providers/Microsoft.RecoveryServices/vaults/vault803 -Operation "Backup" -From ((Get-Date).AddDays(-2).ToUniversalTime()) |
Select-Object WorkloadName,Operation,Status,StartTime,EndTime,Duration
(http://blog.petersenit.co.uk/2020/04/azure-recovery-service-vault-backup.html)
Feb 25 2022 06:35 AM
Sep 23 2022 08:28 AM
Sep 23 2022 08:29 AM
@Yash_message good to hear, please mark my answer as solution to mark it as solved