Export Dashboard ARM Template

James McLaren 110 Reputation points
2024-01-22T04:37:57.69+00:00

When exporting a Dashboard (Shared or Private) - the exported arm template does not include important settings needed to make the dashboard work.
.e.g. the Azure App Service Resource.

Here is the arm template. This json is from the in-built dashboard App Service Tracking.
Is this normal for dashboard exports.

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "dashboards_6a241958_8465_4f61_aeb5_347470234573_name": {
            "defaultValue": "6a241958-8465-4f61-aeb5-347470234573",
            "type": "String"
        }
    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.Portal/dashboards",
            "apiVersion": "2020-09-01-preview",
            "name": "[parameters('dashboards_6a241958_8465_4f61_aeb5_347470234573_name')]",
            "location": "australiaeast",
            "tags": {
                "app": "ultimum-dev-scan",
                "Application": "Enterprise Integration Services",
                "hidden-title": "Ultimum App Service - Scan Web XXXX - Dashboard"
            },
            "properties": {
                "lenses": [
                    {
                        "order": 0,
                        "parts": [
                            {
                                "position": {
                                    "x": 0,
                                    "y": 0,
                                    "rowSpan": 3,
                                    "colSpan": 3
                                },
                                "metadata": {
                                    "inputs": [],
                                    "type": "Extension/HubsExtension/PartType/MarkdownPart",
                                    "settings": {
                                        "content": {
                                            "settings": {
                                                "content": "### App performance",
                                                "markdownSource": 1
                                            }
                                        }
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 3,
                                    "y": 0,
                                    "rowSpan": 3,
                                    "colSpan": 4
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 7,
                                    "y": 0,
                                    "rowSpan": 3,
                                    "colSpan": 4
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 11,
                                    "y": 0,
                                    "rowSpan": 3,
                                    "colSpan": 4
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 15,
                                    "y": 0,
                                    "rowSpan": 3,
                                    "colSpan": 4
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 0,
                                    "y": 3,
                                    "rowSpan": 3,
                                    "colSpan": 3
                                },
                                "metadata": {
                                    "inputs": [],
                                    "type": "Extension/HubsExtension/PartType/MarkdownPart",
                                    "settings": {
                                        "content": {
                                            "settings": {
                                                "content": "### Usage",
                                                "markdownSource": 1
                                            }
                                        }
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 3,
                                    "y": 3,
                                    "rowSpan": 3,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 9,
                                    "y": 3,
                                    "rowSpan": 3,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 0,
                                    "y": 6,
                                    "rowSpan": 3,
                                    "colSpan": 3
                                },
                                "metadata": {
                                    "inputs": [],
                                    "type": "Extension/HubsExtension/PartType/MarkdownPart",
                                    "settings": {
                                        "content": {
                                            "settings": {
                                                "content": "### Http codes",
                                                "markdownSource": 1
                                            }
                                        }
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 3,
                                    "y": 6,
                                    "rowSpan": 3,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 9,
                                    "y": 6,
                                    "rowSpan": 3,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 0,
                                    "y": 9,
                                    "rowSpan": 3,
                                    "colSpan": 3
                                },
                                "metadata": {
                                    "inputs": [],
                                    "type": "Extension/HubsExtension/PartType/MarkdownPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 3,
                                    "y": 9,
                                    "rowSpan": 3,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 9,
                                    "y": 9,
                                    "rowSpan": 3,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/MonitorChartPart",
                                    "settings": {
                                        "content": {}
                                    }
                                }
                            },
                            {
                                "position": {
                                    "x": 0,
                                    "y": 12,
                                    "rowSpan": 6,
                                    "colSpan": 6
                                },
                                "metadata": {
                                    "inputs": [
                                        {},
                                        {},
                                        {},
                                        {},
                                        {},
                                        {},
                                        {}
                                    ],
                                    "type": "Extension/HubsExtension/PartType/ArgQueryGridTile",
                                    "settings": {}
                                }
                            }
                        ]
                    }
                ],
                "metadata": {
                    "model": {}
                }
            }
        }
    ]
}
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,658 questions
{count} votes

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.