Hi Matthew Scott,
Thank you for posting your query on Microsoft Q&A.
Based on your query, I understand that you have an issue with Office365 management API.
As you have mentioned this issue has been occurred due to Office 365 exchange online. This has been identified previously in some of the tenants as they both work on the same resources.
In order to overcome this issue, please follow the below steps.
Install and run Az resources module to your PowerShell as admin:
# Install Az version 3.6.1
Install-Module -Name Az -RequiredVersion 3.6.1
# Load Az version 3.6.1
Import-Module -Name Az -RequiredVersion 3.6.1
$sp = Get-AzureADServicePrincipal -Filter "AppId eq '00000002-0000-0ff1-ce00-000000000000'"
$sp.ServicePrincipalNames
$spn = $sp.ServicePrincipalNames | Where-Object { $_ –ne "https://manage.protection.apps.mil" }
$spn
Set-AzureADServicePrincipal -ObjectId $sp.ObjectId -ServicePrincipalNames $spn
New-AzureADServicePrincipal -AppId “AppId”
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment"