Please refer to the following steps to set up out of office message in Office 365
1. Log in to Office 365 portal with your account https://portal.microsoftonline.com/
2. Click Outlook on the top navigation bar.
3. Click the "gear" icon at the top right of the page, and click options.
4. Click organize email and click automatic replies tab, create automatic reply (Out of Office) messages here.