
Hello David,
Thank you for the update and additional information.
The error curl_easy_perform() failed: SSL connect error suggests an SSL/TLS handshake issue between your agent and the Microsoft API. Here are a few troubleshooting steps that may help:
Verify Network Access:
Confirm that your agent can reach the Microsoft login URL: https://login.microsoftonline.com/******************************/oauth2/v2.0/token
Check if there are any firewalls or network restrictions that could block this connection.
Update Curl and Certificates:
Ensure that your Wazuh agent's curl version is up-to-date and that it supports the necessary SSL/TLS protocols.
Confirm that the certificate authorities on the agent include Microsoft’s SSL.
Regarding The "Get <CONTENT_URI>" you can use either Invoke-RestMethod or Invoke-WebRequest to make HTTP GET requests directly.
Here’s an example of the syntax you could use:
Invoke-RestMethod -Uri "<CONTENT_URI>" -Method Get
Be sure to replace <CONTENT_URI> with the actual URI you’re trying to pull information from. This should help retrieve the information as expected.
Please let me know if this resolves the issue or if there’s anything further I can assist with.
Best regards,
Juan Carlos Amiune