Bicep Templates

Jennifer 26 Reputation points
2022-11-30T09:30:30.16+00:00

Dear Azure Community,

I want to create different templates for different services in Azure (e.g. for Application Insights, Network Watcher, Azure Monitor, Sentinel, Security Center) to be able to monitor different metrics and logs. To do this, I first create the templates generated by Azure in their basic form. However, services like Azure Monitor or Application Insights have other child services like Alerts, Workbooks, Performance and so on. For each of these services, there is usually a separate template. Now I would like to know if you create the templates for each of these services separately in Azure, or if you can merge two templates (bicep templates) if they come from the same service (like Network Watcher)? As an example: Network Watcher has a template for connection monitor and a template for flow logs. In addition, there is also an existing template to create Network Watcher as a resource (which corresponds to the base template). Now if I want to include the templates from the Connection Monitor and Flow Logs in my base template, can I include them in my base template, or do all three templates need to be created and deployed separately (under the same resource group) in Visual Studio and then in the Azure portal?

I am very new in this field and need your advice please.

Thank you very much for your help!

Best regards
Jennifer

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,971 questions
Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
161 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 21,931 Reputation points MVP
    2022-11-30T10:53:10.753+00:00

    Hi,
    As you seem new to Bicep I would suggest to look at some learning materials and courses. To still answer your question: you can deploy more than one different resources within the same template and you can start another template deployment (modules) from another template.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful