How can we create dashboard using ARM template

Varma 1,495 Reputation points
2024-03-10T05:37:25.82+00:00

I am trying to use ARM template for creating dashboard.

But I am not clear on how to use following document and I have question in providing VM details when I click on deploy template option.

https://learn.microsoft.com/en-us/azure/azure-portal/quick-create-template#review-the-template

User's image

what exactly it is doing? and how can I make use of using ARM template to create a dashboard?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 69,220 Reputation points MVP Volunteer Moderator
    2024-03-10T11:39:32.9066667+00:00

    Creating an Azure portal dashboard using an Azure Resource Manager (ARM) template involves defining the dashboard's configuration and resources in a JSON file. The ARM template can then be deployed to Azure to create the dashboard. Here is an example

    {
      "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "resources": [
        {
          "type": "Microsoft.Portal/dashboards",
          "apiVersion": "2018-03-01-preview",
          "name": "MyDashboard",
          "location": "eastus",
          "properties": {
            "lenses": [
              {
                "order": 0,
                "parts": [
                  {
                    "position": {
                      "x": 0,
                      "y": 0,
                      "colSpan": 4,
                      "rowSpan": 2
                    },
                    "metadata": {
                      "inputs": [],
                      "settings": [],
                      "theme": "light",
                      "template": {
                        "templateId": "0",
                        "templatePackageId": "activitylog"
                      }
                    }
                  }
                ]
              }
            ]
          }
        }
      ]
    }
    
    

    hth

    Marcin


Your answer

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