Select Modules Gallery under Shared Resources.In the Azure portal, select Automation Accounts.Refer to Manage modules in Azure Automation. Now add the installed MSOnline and MSOnlineExt modules to enable Office 365 functionality. To complete the steps in this article, you need an account in Azure Automation. To use MSOnline PowerShell, you must be a member of Azure AD. Install the modules as described in Use Azure AD in Azure Automation to authenticate to Azure. You'll also need the module MSOnlineExt, which simplifies Azure AD management in single- and multi-tenant environments. Use of Office 365 within Azure Automation requires Microsoft Azure Active Directory for Windows PowerShell ( MSOnline module). Install the MSOnline and MSOnlineExt modules An Office 365 tenant, with an account.See Use Azure AD in Azure Automation to authenticate to Azure. An Automation object in Azure to hold the user account credentials and runbooks.You need the following to manage Office 365 subscription services in Azure Automation. Interactions with Office 365 are enabled by Azure Active Directory (Azure AD).
You can use Azure Automation for management of Office 365 subscription services, for products such as Microsoft Word and Microsoft Outlook.