@NK, SatishKumar I could not understand the question completely, hence providing relevant information below. The following information should help you understand options available for Azure Monitor alerts (including Application insights alerts) and add some contextual information in case you have any further questions.
- YAML is a human-readable data serialization language that is often used for writing configuration files. It is generally used for declaring and maintaining Kubernetes clusters among other use cases.
- In Azure, there are primarily 3 languages that can be used to provision resources - Bicep, ARM templates and Terraform AzAPI provider - Define resources with Bicep, ARM templates, and Terraform AzAPI provider. Along with these options, you can also use Azure PowerShell, AzCli to create/manage resources in Azure.
In view of the above information, the available options to manage metrics and log search alerts (which is common to Azure Monitor including Application Insights) are available here - Manage metric alert rules with the Azure CLI
Hope this helps. In case the information above does not help, please add more context/follow-up question for it.