Hi Folks,
I'm building a scheduled flow and would like the flow run logs to be passed to Azure Analytics workspace (which is already setup). I'm trying to use the Send Data action in Azure Log Analytics Data Collector - Connectors | Microsoft Learn to accomplish this. I was able to create connection using workspace ID and primary key. Although when I try to send test json as log, I receive the below error:
{
"error": {
"code": 403,
"source": "flow-apim-unitedstates-etc-etc.azure-apim.net",
"clientRequestId": "e6f59b75-1234-4f2c-a476-12345",
"message": "The response is not in a JSON format.",
"innerError": "Cannot read server response."
}
}
I have contributor access to the workspace. Can someone help me what I might be doing wrong. Also I do not have a custom log set up. Could that be the issue?
Thank you.
Hi @fchopo
Thank you for the response. I'm using the below body:
[{
"FlowName": "test",
"StepName": "Flow Started",
"Status": "Success",
"FileGUID": "value4"
}]
Also, the error mentions response body.
Thank you.
Hi @rbn_nue
Could you share the data and/or format you're using to send to Log Analytics? As the error message states, it seems it's not in a JSON Format.
Regards,
Ferran
stampcoin
97
Michael E. Gernaey
70
Super User 2025 Season 1
David_MA
48
Super User 2025 Season 1