We're using this application template to monitor our VBR servers Veeam Backup and Replication Management Server v9.5.apm-template
However, there seems to be a bug that's acknowledged by Veeam caused by scripts running without cleanly connecting/disconnecting. Unfortunately this application is causing this bug as it's leaving sessions open and causing satellite processes to hang.
To fix this, in the interim before its patched, Veeam have mentioned it would require:
Connect-VBRServer
Disconnect-VBRServer
cmdlets to run at the start and end of each script.
However, on testing, it seems that as all the components are running concurrently it causes the subsequent component to fail when a previous component runs the disconnect cmdlet.
My question is, is there a way of running components staggered - so they are asynchronous? Therefore each script could have the connect/disconnect cmdlet.
Alternatively, is there a way of having the entire template run the connect/disconnect as an umbrella command?
Thanks for reading!