I have published a containerized Web App on Azure running Linux OS, coded in C# .NET.
And I want to send my app logs to custom table in Azure Log Analytics.
Therefore, I follow the tutorials on Tutorial: Send data to Azure Monitor using Logs ingestion API (Resource Manager templates) and Sample code to send data to Azure Monitor using Logs ingestion API to set-up Azure environment (DCR, DCE, creating a new table, App registration) and write .NET code to try send data to my custom table.
Despite numerous attempts, I consistently received a 403 (Forbidden) error code. Even though I have waited over 30 minutes (according to troubleshooting), the issue persists.
Error messages from Azure Log stram as belowed:
Upload failed with Exception The authentication token provided does not have access to ingest data for the data collection rule with immutable Id ‘dcr-‘.
Status: 403 (Forbidden)
ErrorCode: OperationFailed
Content:
{“error”:{“code”:”OperationFailed”,”message”:”The authentication token provided does not have access to ingest data for the data collection rule with immutable Id ‘dcr-‘.”}}
If anyone has experienced similar issues or has any suggestions, I would be very appreciated!