How to create alerts, such as CPU Usage, in Azure

I am new to Terraform and looking to create Alerts (let say for CPU Usage) in Azure but didn’t find any module for the same. Appreciate if someone could help me !!

FYI: I tried using " azurerm_monitor_scheduled_query_rules_alert" but this is expecting “App_Insight” workspace where-in I need to create Log Query based Alert in “Log Analytic Workspace”.

appreciate for any help/pointer.

Regards, Ravi

Requesting community members to spare some time and help me on above question!!