Save the Value of uuid and VmName variable in a Function to avoid repeating it twice