Set out of office within Microsoft Teams
The Out of Office message will sync with your Outlook calendar, presence, and contact card information.
There are two ways to access the Out of Office setting:
1. Access the Out of Office setting through the "Set status message" panel accessible from the user profile image. (Mobile)

2. Access the Out of Office setting through the Teams application settings accessible from the user profile image. (Desktop Application)

2a. Set Out of Office message and click Save.
