Azure Workbook ARM Template

Mihir Raj Singh 120 Reputation points
2023-09-08T16:36:28.34+00:00

Hi,

I wanted to know is there any ARM template for Azure Workbook?
I want to create a Workbook through ARM template not through the portal.

Thanks

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,196 questions
{count} votes

Accepted answer
  1. Dan Rios 1,980 Reputation points MVP
    2023-09-10T09:39:37.8833333+00:00

    You can deploy workbooks from ARM templates, this may be of use if you’ve not stumbled across it already:

    example ARM template: https://github.com/microsoft/Application-Insights-Workbooks/blob/master/Documentation/ARM-template-for-creating-workbook-template

    Further info:

    https://learn.microsoft.com/en-us/azure/azure-monitor/visualize/workbooks-automate#arm-template-for-deploying-a-workbook-template

    Alternatively there’s quite a lot of already made workbooks out there in the Azure Monitor workbook repository for you to use or customise for your needs:

    https://github.com/microsoft/Application-Insights-Workbooks/tree/master/Workbooks

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AirGordon 7,120 Reputation points
    2023-09-10T10:26:07.9+00:00

    If you're looking for a good example of this, checkout the Azure Quickstart Templates repo; https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.costmanagement/optimization-workbook

    You'll reference the json document for your workbook layout, and deploy using the Microsoft.Insights/workbooks@2022-04-01 resource provider.

    var workbookJson = string(loadJsonContent('workbook.json'))
    
    resource workbook 'Microsoft.Insights/workbooks@2022-04-01' = {
      name: guid(resourceGroup().id, 'Microsoft.Insights/workbooks', displayName)
      location: location
      tags: tags
      kind: 'shared'
      properties: {
        category: 'workbook'
        description: description
        displayName: displayName
        serializedData: workbookJson
        sourceId: 'Azure Monitor'
        version: version
      }
    }
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.