"Did some testing today; it works fine to use the Azure Communication Service. The biggest issue might be the actual username and password configuration on the printer/scanner.
The username is a construct of the following three segments: <Azure Communication Services Resource Name>.<Entra Application ID>.<Entra Tenant ID>. The Azure Communication Services Resource Name is a global name in Azure and can be fairly short; mine was 12 characters. However, the other two are GUID-like, so my username became 86 characters long.
The secrets for an Azure app are also very complex, which can be a challenge for some devices. The length is 40 characters and very complex.
It might be easier to use SendGrid SaaS in Azure for this."
Jörgen Hjärtenflo