Fix ruby example to create vnet

(cherry picked from commit e012ceeb293d2085785c1020c915d114e66b6735)