A cloud-based identity and access management service for securing user authentication and resource access
The supported checks for this scenario point to four areas:
- Verify the agent is actually healthy in both places
- In Microsoft Entra admin center: Entra ID > Entra Connect > Cloud sync > cloud sync. The agent should appear and show active (green).
- On the server: open Services.msc and confirm Microsoft Entra Provisioning Agent and Microsoft Entra Connect Agent Updater are present and Running.
- Recheck outbound connectivity requirements used by bootstrap and registration
- Required outbound ports are 80 and 443.
- Required URL access includes
*.msappproxy.net,*.servicebus.windows.net,login.windows.net,*.microsoftonline.com,*.microsoftonline-p.com,*.msauth.net,*.msauthimages.net,*.msecnd.net,*.msftauth.net,*.msftauthimages.net,*.phonefactor.net,enterpriseregistration.windows.net,management.azure.com,policykeyservice.dc.ad.msft.net,ctldl.windowsupdate.com, andwww.microsoft.com/pkiops. - DNS resolution must work for the full CNAME chain for the Microsoft Entra endpoints, and outbound TLS inspection/termination should be avoided.
- If a proxy is in the path, configure the agent for outbound proxy explicitly
- A registration or bootstrap timeout/certificate problem is documented as commonly caused by the agent being unable to connect to the Hybrid Identity Service.
- Configure the proxy in:
C:\Program Files\Microsoft Azure AD Connect Provisioning Agent\AADConnectProvisioningAgent.exe.config - Add before
</configuration>:
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy
usesystemdefault="true"
proxyaddress="http://[proxy-server]:[proxy-port]"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
- Collect the full agent logs for escalation
- Trace logs are in:
C:\ProgramData\Microsoft\Azure AD Connect Provisioning Agent\Trace - Install the AADCloudSyncTools PowerShell module and run
Export-AADCloudSyncToolsLogs. - Useful switches:
-
SkipVerboseTrace -
TracingDurationMins -
OutputPath
-
- Trace logs are in:
For the specific Internal Server Error during bootstrap after a fresh reinstall: the available guidance does not document a tenant-side service principal setting as a known cause. The closest documented product behavior is:
- if the resource mapping is wrong, error
HybridIdentityServiceInvalidResourcerequires re-registering the cloud sync agent and restarting configuration from the portal - if Service Bus cannot send to the agent, error
HybridIdentityServiceAgentSignalingErrorshould be escalated with the Job ID
Since reinstallation has already been completed and the bootstrap call is still receiving a server error, the supported next step is to capture the agent logs and open support with the Request ID/Job ID from the failing operation.
References: