Outlook determines whether an email should be recognized as a calendar event based on the content type of the message and the attachment. The content type of the message should be [multipart/alternative] or [multipart/mixed] , and the content type of the attachment should be [text/calendar]. The attachment should also have a valid file extension and follow the iCalendar format.ics.
Secondly, the reason why the email sent via Azure is not recognized as a calendar event by Outlook may be due to the way Azure’s Java SDK handles the attachment. Azure’s Java SDK may not set the content type of the attachment correctly, or it may encode the attachment in a way that Outlook cannot parse. Therefore, you may need to manually specify the content type and encoding of the attachment when sending the email via Azure’s Java SDK.