Skip to content

Instantly share code, notes, and snippets.

@paladique
Last active Feb 26, 2019
Embed
What would you like to do?
ARM template of a Azure portal dashboard
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"dashboardName": {
"type": "string",
"metadata": {
"description": "Name of the dashboard."
}
}
},
"variables": {},
"resources": [{
"properties": {
"lenses": {
"0": {
"order": 0,
"parts": {
"0": {
"position": {
"x": 0,
"y": 0,
"rowSpan": 4,
"colSpan": 6
},
"metadata": {
"inputs": [],
"type": "Extension/HubsExtension/PartType/MarkdownPart",
"settings": {
"content": {
"settings": {
"content": "![](https://media.giphy.com/media/uj1iwCAZgSPXW/giphy.gif)",
"title": "",
"subtitle": ""
}
}
}
}
},
"1": {
"position": {
"x": 6,
"y": 0,
"rowSpan": 2,
"colSpan": 2
},
"metadata": {
"inputs": [],
"type": "Extension/HubsExtension/PartType/ClockPart",
"settings": {
"content": {
"settings": {
"location": "Pacific Time (US & Canada)",
"timeFormat": "HH:mm",
"version": 1
}
}
}
}
},
"2": {
"position": {
"x": 8,
"y": 0,
"rowSpan": 4,
"colSpan": 6
},
"metadata": {
"inputs": [{
"name": "resourceType",
"value": "Microsoft.Resources/resources",
"isOptional": true
},
{
"name": "filter",
"isOptional": true
},
{
"name": "scope",
"isOptional": true
},
{
"name": "kind",
"isOptional": true
}
],
"type": "Extension/HubsExtension/PartType/BrowseAllResourcesPinnedPart"
}
},
"3": {
"position": {
"x": 6,
"y": 2,
"rowSpan": 2,
"colSpan": 2
},
"metadata": {
"inputs": [],
"type": "Extension/HubsExtension/PartType/ClockPart",
"settings": {
"content": {
"settings": {
"location": "UTC",
"timeFormat": "h:mmA",
"version": 1
}
}
}
}
},
"4": {
"position": {
"x": 0,
"y": 4,
"rowSpan": 5,
"colSpan": 4
},
"metadata": {
"inputs": [],
"type": "Extension/HubsExtension/PartType/GettingStartedPart"
}
},
"5": {
"position": {
"x": 4,
"y": 4,
"rowSpan": 1,
"colSpan": 2
},
"metadata": {
"inputs": [{
"name": "selectedMenuItemId",
"value": "",
"isOptional": true
}],
"type": "Extension/HubsExtension/PartType/GalleryTile"
}
}
}
}
},
"metadata": {
"model": {
"timeRange": {
"value": {
"relative": {
"duration": 24,
"timeUnit": 1
}
},
"type": "MsPortalFx.Composition.Configuration.ValueTypes.TimeRange"
}
}
}
},
"apiVersion": "2015-08-01-preview",
"type": "Microsoft.Portal/dashboards",
"name": "[parameters('dashboardName')]",
"location": "[resourceGroup().location]",
"tags": {
"hidden-title": "[parameters('dashboardName')]"
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment