An Azure service that is used to automate, configure, and install updates across hybrid environments.
Hello Dimitry Decan,
If your runbook is encountering a Gateway Timeout error when trying to make an HTTP request to the Microsoft Graph API. This issue can often be related to network connectivity problems or misconfigured settings.
Here are a few steps you can take to troubleshoot this error:
- Check Network Connectivity:
- Ensure that the domain ex:
gcs.office.com(or the appropriate one for your tenant) is reachable. You can do this by running the following command in PowerShell
You should seetnc gcs.office.com -Port 443TcpTestSucceeded: True. If not, check your firewall or proxy settings.
- Ensure that the domain ex:
- Test the Endpoint:
- Run this command to check if the endpoint is responding properly:
A successful response will returnwget https://gcs.office.com/v1.0/admin/AdminDataSetCrawl/healthcheckStatusCode: 200. If not, you might need to look into proxy/firewall configurations again.
- Run this command to check if the endpoint is responding properly:
- Review Logs:
- If the above tests pass, check the GCA logs for any potential network issues. Look in these locations:
- For Windows Server 2016:
C:\Users\GcaHostService\AppData\Local\Microsoft\GraphConnectorAgent\HostService\logs - For other supported Windows OS:
C:\Windows\ServiceProfiles\GcaHostService\AppData\Local\Microsoft\GraphConnectorAgent\HostService\logs - Open the two most recent log files and check for error messages related to network connectivity.
- Check Proxy Settings:
- If there are network proxy issues indicated in your logs, confirm that the virtual account (
NT Service\GcaHostService) has permission to send traffic to the necessary domains.
- If there are network proxy issues indicated in your logs, confirm that the virtual account (
If the command helpful, please click upvote it.
Thanks