If you are trying to create groups on Office365 in bulk, this Script attached will help you to achieve it. 



To read the group names and members the script will need you to create a .csv file with following columns: groupname, owner , members.


Below you can find an example of what you csv should contain.


   












Once the csv file was create you can run the script, make sure you already open a session with your tenant first.