Skip to content

Instantly share code, notes, and snippets.

@paladique
Last active February 26, 2019 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paladique/474f2300719053cb9c6e1c6efb433723 to your computer and use it in GitHub Desktop.
Save paladique/474f2300719053cb9c6e1c6efb433723 to your computer and use it in GitHub Desktop.
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