Skip to content

[Monitor] az monitor dashboard: Support dashboard with Grafana#32414

Merged
necusjz merged 6 commits intoAzure:devfrom
ABZhang0:monitor-dashboard-crud
Dec 10, 2025
Merged

[Monitor] az monitor dashboard: Support dashboard with Grafana#32414
necusjz merged 6 commits intoAzure:devfrom
ABZhang0:monitor-dashboard-crud

Conversation

@ABZhang0
Copy link
Contributor

Related command
az monitor dashboard

Description
Basic commands for Dashboards with Grafana resource generated with AAZ

Testing Guide
az monitor dashboard create: creates empty Dashboard with Grafana
az monitor dashboard delete: deletes Dashboard with Grafana
az monitor dashboard show: shows resource details for a Dashboard with Grafana
az monitor dashboard list: lists all Dashboard with Grafana resources

Copilot AI review requested due to automatic review settings November 11, 2025 22:26
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 11, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Nov 11, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️monitor
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd monitor dashboard sub group monitor dashboard added

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 11, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds basic CRUD commands for managing Azure Managed Dashboard resources with Grafana integration under the az monitor dashboard command group. The commands are auto-generated using the AAZ (Azure API for Azure CLI) tooling framework.

  • Adds create, delete, show, list, and wait commands for Dashboard with Grafana resources
  • Creates a new placeholder amg (Azure Managed Grafana) command module with scaffolding files
  • All commands use the 2025-09-01-preview API version of the Microsoft.Dashboard provider

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_create.py Implements the dashboard create command with LRO support and basic location/tags parameters
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_delete.py Implements the dashboard delete command with confirmation prompt
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_list.py Implements the dashboard list command with pagination support
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_show.py Implements the dashboard show command to retrieve resource details
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_wait.py Implements the wait command for polling dashboard resource state
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/init.py Package initialization file that exports all dashboard commands
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/__cmd_group.py Defines the monitor dashboard command group
src/azure-cli/azure/cli/command_modules/amg/init.py Scaffolds the Azure Managed Grafana command loader module
src/azure-cli/azure/cli/command_modules/amg/_help.py Placeholder for AMG help documentation
src/azure-cli/azure/cli/command_modules/amg/_params.py Placeholder for AMG parameter definitions
src/azure-cli/azure/cli/command_modules/amg/commands.py Placeholder for AMG command definitions
src/azure-cli/azure/cli/command_modules/amg/custom.py Placeholder for AMG custom command implementations
src/azure-cli/azure/cli/command_modules/amg/tests/init.py Test package initialization for AMG
src/azure-cli/azure/cli/command_modules/amg/tests/latest/init.py Latest test package initialization for AMG
src/azure-cli/azure/cli/command_modules/amg/tests/latest/test_amg.py Empty test scenario class with TODO placeholder

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@necusjz
Copy link
Member

necusjz commented Nov 12, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@necusjz
Copy link
Member

necusjz commented Nov 12, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@necusjz
Copy link
Member

necusjz commented Nov 13, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@necusjz
Copy link
Member

necusjz commented Nov 13, 2025

@ABZhang0 would you mind add some test cases for the new commands? and could you please provide the pull request link in Azure/aaz? thanks.

@ABZhang0
Copy link
Contributor Author

ABZhang0 commented Dec 9, 2025

Added tests. AAZ PR link: Azure/aaz#899

@necusjz
Copy link
Member

necusjz commented Dec 9, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@necusjz necusjz changed the title [Monitor] Add generated basic commands for monitor dashboard [Monitor] az monitor dashboard: Support dashboard with Grafana Dec 10, 2025
@necusjz necusjz merged commit 0873e58 into Azure:dev Dec 10, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants