Troubleshooting
This article groups tips & tricks to help you troubleshoot AzureCP if it’s not working as expected.
Inspect the SharePoint logs
AzureCP records all its activity in the SharePoint logs, under Product / Area “AzureCP”. It records a lot of information and can be managed with PowerShell:
You can use ULS Viewer to inspect the logs.
Run Microsoft Graph queries in Postman
You can import the collection below in Postman to replay the typical queries executed by AzureCP:
Open Postman collection for AzureCP
Test connectivity with Azure AD
AzureCP may fail to connect to Azure AD for various reasons. The PowerShell script below connects to the typical Azure endpoints and may be run on the SharePoint servers to test the connectivity (set or remove the proxy settings depending on your configuration):
Obtain the access token using PowerShell
This PowerShell script requests an access token to Microsoft Graph, as done by AzureCP (set or remove the proxy settings depending on your configuration):
Inspect the traffic to Azure AD
You can intercept and inspect the traffic between AzureCP and Azure AD using Fiddler Classic.
Once Fiddler was installed locally and its root certificate trusted, you can intercept the traffic per web application by updating the web.config:
Important
To view the traffic in Fiddler, make sure to set the filter to "All Processes" or "Non-Browsers" (in the bottom left).