Forum Discussion
Yash_message
Feb 16, 2022Copper Contributor
Script only giving output of failure status
I have prepared backup status report for azure vms. it is running but giving only faliour output. I need status, weather it is inprogress or completed or failure. can any one please help. $Error...
farismalaeb
Feb 17, 2022Iron Contributor
So the $report_object is only having the $backup_status = "Failed" then this mean the backup is failed
Explain something more please, are you getting the Failed as the VM backup failed, or you are getting an exception failure
Easy thing to do is to use PowerShell_ISE and try to debug F11 line by line to see whats going on.