Exchange backup jobs in Veeam Backup for Microsoft 365 or Veeam Data Cloud for Microsoft 365 run far longer than expected or fail to complete. The job log contains the following warnings and errors:
Warning: Failed to retrieve Exchange Online REST API cmdlet information Warning: HTTP request timed out after 00:06:00. Warning: Cannot find Exchange Online REST API cmdlets Error: Contract schema check for the Exchange Online REST API failed Error: The user "<tenant>\<service-principal-id>" isn't assigned to any management roles.
Additionally, when editing the Exchange backup job, the mailbox/user selection list may appear empty without any error message.
Veeam Backup for Microsoft 365 and Veeam Data Cloud
for Microsoft 365 connect to Exchange Online using an Entra application registration that holds the Exchange.ManageAsApp permission and the Global Reader Entra role. As part of every Exchange job, the service validates the Exchange Online REST API connection by calling the CmdletInfo endpoint:
https://outlook.office365.com/AdminApi/beta/<TenantId>/CmdletInfo
This call requires the application's service principal to hold Exchange Online RBAC permissions. With the recommended configuration, those permissions are inherited indirectly:
If either or both of these role assignments are removed from View-Only Organization Management (for example, as part of a security hardening exercise), the role group is left without permissions. Every identity that inherits from it loses its EXO RBAC access, including the application principal used by Veeam Backup for Microsoft 365 or Veeam Data Cloud for Microsoft 365.
When the connection check is then performed, the CmdletInfo call hangs and times out after 6 minutes. The check is repeated for each mailbox processed, which causes large Exchange backup jobs to run extremely long or to fail to complete.
Connect to Exchange Online PowerShell as a tenant administrator and run the following commands:
View-Only Configuration-View-Only Organization Management and View-Only Recipients-View-Only Organization Management.
Restore the missing role assignments on the View-Only Organization Management role group. Run the following commands in Exchange Online PowerShell as a tenant administrator:
After running the commands:
Once the role assignments are restored and the changes have propagated, the per-mailbox 6-minute timeout no longer occurs, and Exchange backup jobs return to their expected duration.
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.
This form is only for KB Feedback/Suggestions, if you need help with the software open a support case