Need a way to catch az lab * failures.
One example where I need to do this is when I am creating a lab using az lab vm create
. This is failing at times (probably because of unavailability of resources) and I want to catch it right away and not execute the rest of the code which assumes that the VM has been created.
Unfortunately it just prints it on console (not very helpful if there is noone staring at the screen when this is executing).
Can I get some thing to