CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

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 sync

Sync 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 committing

Options

6 in the Azure CLI extensions reference
--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