Hi Silva, Bruno,
Thanks for reaching out to Microsoft Q&A.
Verify that your Azure Function's authentication settings are correctly configured. Go to your Azure Function in the Azure portal, select Authentication/Authorization, and ensure that it's set up to accept requests with the correct keys or tokens.
- Confirm that the requests from Datadog and Postman include a valid bearer token in the
Authorizationheader. For example:Authorization: Bearer <valid_access_token>
If the token is not being generated or passed correctly, it could lead to a 401 error.
- Make sure that the Function URL includes a valid function key, especially since you mentioned it is already configured that way. Check if the keys used are active and haven't expired.
- If your Function App is configured with virtual network restrictions, ensure that the requests from Datadog are allowed through the network security group (NSG) rules. Review any inbound traffic restrictions that may be blocking the requests.
- Enable detailed diagnostic logs in the Azure portal. This can provide insights into what might be failing during the authentication process.
- Try using curl or another HTTP client to see if the behavior persists. This can help isolate whether it's a Datadog-specific issue or something broader.