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