For Contact Center to be able to access the Azure application, you must ensure that permissions and administration consent has been granted.
The permissions you need to grant are:
email
IMAP AccessAsUser All
offline_access
You must also provide administration consent to Mail.ReadWrite.