Add subnetworks and rules on network and securityGroup struct