By now you’ve probably had a chance to experiment with all the great features of Azure Automation through the Azure Portal – authoring runbooks and creating assets, starting jobs manually and on schedules, importing integration modules and viewing job output.
from Pocket http://ift.tt/1vtkmA4
Compared to SharePoint 2013 the powershell support for Office365 is poor not to say non-existent.
Fortunately the Client Side Object Model (CSOM) comes to the rescue and can be used from powershell. I have collected some great sources that can be taken as a reference for performing basic tasks.