Hi @LXF ,
Thanks for reaching out.
n Microsoft Sentinel, Analytics rules can only be created and defined using YAML and JSON formats. While there are multiple methods to create analytics rules, the underlying code will always be in JSON or YAML. Some of the method used to define analytics rules are:
- Azure Resource Manager (ARM) Templates: However, these are JSON-based templates used for deploying resources in Azure. You can define Sentinel Analytics rules within ARM templates for deployment via Azure Resource Manager.
- User Interface (UI): The Azure Portal provides a graphical user interface for creating and managing Analytics rules. Through the UI, you can define rules without directly writing YAML or JSON, although these formats are generated and used behind the scenes. Any type of analytics rule can be imported or exported to and from a JSON file only. Reference - https://learn.microsoft.com/en-us/azure/sentinel/import-export-analytics-rules
- PowerShell: Using Azure PowerShell cmdlets, you can create and manage Analytics rules programmatically. This often involves embedding JSON or YAML within PowerShell scripts. Reference - https://github.com/seanstark/sentinel-tools/blob/main/analytics_rules/create-scheduledRuleFromTemplate.ps1 Azure CLI: Similar to PowerShell, the Azure Command-Line Interface (CLI) allows for the creation and management of Sentinel Analytics rules, typically by embedding JSON definitions within CLI commands.
These various methods provide flexibility depending on your preferred method of deployment and management, whether it be through code, scripts, templates, or a graphical interface.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.