Create an Azure Monitor Alert based on Log Analytics Quyery

Hello colleagues,

I’ve been trying to find a way to create an Azure Monitor Alert Rule based on a Log Analytics query for disk space. In our Azure environment we already have the performance counters offloaded to a central log analytics workspace, I can create the alert rule manually but
didn’t find the correct coding for creating an alert rule using terraform.

Here there’s an example on hoe to do this with a application insights query: Terraform Registry

Anyone has tried to do this before?

Thanks!