CPM - Azure Plugin - Failed to connect to Azure. Review the logs for more information. Error code:8000
Symptom
When attempting to initiate a reconcile task on an Azure AD account in PVWA, you may encounter an error message similar to the following:
"Execution error. Reconcile process failed - Failed to connect to Azure. Review the logs for more information. Error code:8000"
Additionally, the CPM/Connector server debug logs may display the following error(s):
21/02/2025 04:28:42.663 | Info -> PluginWrapper :: printResultsToLog() -> Message = Reconcile process failed - Failed to connect to Azure. Review the logs for more information
Troubleshooting Steps:
You can verify connectivity by completing either of the steps below:
1) Open a browser on the CPM/Connector server and navigate/browser to the Azure portal.
2) Run the below command by the user under which the CPM Password Manager service is running.
Invoke-WebRequest -URI <Microsoftonline login url>
You can find the customer-specific URL in debug log. e.g:
https://login.microsoftonline.com/ae28uij-590cc-4276-99637-776fdtjklo67/oauth2
Please note:
We do not provide support for configuring a proxy server for the Azure password management plugin - for further assistance regarding the proxy server configuration you should contact Microsoft official support.
Environment
14.2 Privilege Cloud Central Policy Manager (CPM)
Azure
Cause
The CPM server does not have access to the Azure Portal
Resolution
Please whitelist all of the Azure URLs, you can find them within the following documentation and KB below:
https://docs.microsoft.com/en-us/azure/azure-portal/azure-portal-safelist-urls?tabs=public-cloud
https://community.cyberark.com/s/article/What-are-the-web-urls-to-be-whitelisted-for-CPM-Azure-AD-Password-Management-Platform-Plugin
As of March 2025, these are the main URLs:
- *.portal.azure.com
- portal.azure.com
- https://login.microsoftonline.com/<tenant id>/*
- https://graph.microsoft.com (For Azure Application keys)
Please Note: this may change in the future if Microsoft deems fit, so please always confirm with Microsoft's official documentation before making any changes.