While creating a "Custom log search" alert in Azure Monitor, I'm receiving the following error when the query editor loads:
Failed to retrieve schema. Please try to refresh the page. The client '[email protected]' with object id 'f771d999-7f9e-46dd-9f29-ce11b77aa64e' does not have authorization to perform action 'microsoft.insights/logs/read' over scope '/subscriptions/f8ec86a6-6797-4f4e-bf4f-45881d57a16f/providers/microsoft.insights/logs/metadata' or the scope is invalid. If access was recently granted, please refresh your credentials.
What permission(s) need to change? And what resource does 'microsoft.insights' correspond to?
In Access Control (IAM) of the subscription, add the requesting user to the
Log Analytics Reader
roleApparently Microsoft.Insights is Azure Monitor (source)