Hi Anand_Vashishtha,
Thanks for the update that you were able to connect. Did you need to do anything to setup the permissions on the Azure portal to get this working that wasn't needed for IMAP? I also saw you commented on the GitHub question I asked on the Java Library (https://github.com/eclipse-ee4j/mail/issues/461), so I assume you are using that library also?
When we request the token, we do provide the POP scope so we must be missing something else, or do not have permission to the scope, for example this is the URL we generate to authorize:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?scope=https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All&response_type=code&redirect_uri=http........
Craig.