Separated vm and vnet provisioning code some more