What I'm trying to create is a solution where we have an Azure Automation account running some scripts and that the error messages generated from the jobs are saved in an Azure resource where we can setup alerts and analyze the errors.
The Azure Automation account is setup and I can create jobs properly. I added a diagnostics settings that sends to log analytics workspace all the JobLogs, JobStreams and AllMetrics. But when I open the Log Analytics workspace the Logs view there shows nothing and the Related Resources\Automation Account simply says that nothing is connected.
I have been reading through A LOT of documentation but I have not been able to find any clear guide at all of how to connect everything together in 2019 especially when they keep changing everything on Azure all the time.