CmdID / az / az grafana / az grafana dashboard
az grafana dashboard sync
Sync Azure Managed Grafana dashboards from one instance to another instance. Azure CLI extensions reference
3 examples 6 options Its page in the Azure CLI extensions reference
Examples
Sync only dashboards under a few folders
az grafana dashboard sync --source /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/source --destination /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/destination --folders-to-include "Azure Monitor Container Insights" "Azure Monitor"Identify--sourceresource id of the source workspace--destinationresource id of the destination workspace--folders-to-includefolders to include in backup or syncSync a single dashboard
az grafana dashboard sync --source /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/source --destination /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/destination --folders-to-include "MyFolder" --dashboards-to-include "My Service Health"Identify--sourceresource id of the source workspace--destinationresource id of the destination workspace--folders-to-includefolders to include in backup or sync--dashboards-to-includeSpace separated titles of dashboards to include in sync.Preview the sync
az grafana dashboard sync --source /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/source --destination /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspaces/providers/Microsoft.Dashboard/grafana/destination --dry-runIdentify--sourceresource id of the source workspace--destinationresource id of the destination workspace--dry-runpreview changes w/o committingOptions
--dashboards-to-excludeSpace separated titles of dashboards to exclude in sync.--dashboards-to-includeSpace separated titles of dashboards to include in sync.--destination, -dresource id of the destination workspace--dry-runpreview changes w/o committing--foldersspace separated folder list which sync command shall handle dashboards underneath--source, -sresource id of the source workspace