[Monitor] az monitor dashboard: Support dashboard with Grafana#32414
[Monitor] az monitor dashboard: Support dashboard with Grafana#32414
az monitor dashboard: Support dashboard with Grafana#32414Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| monitor dashboard | sub group monitor dashboard added |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
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, andwaitcommands 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-previewAPI 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.
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_create.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_show.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_delete.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/dashboard/_list.py
Outdated
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@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. |
|
Added tests. AAZ PR link: Azure/aaz#899 |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az monitor dashboard: Support dashboard with Grafana
Related command
az monitor dashboardDescription
Basic commands for Dashboards with Grafana resource generated with AAZ
Testing Guide
az monitor dashboard create: creates empty Dashboard with Grafanaaz monitor dashboard delete: deletes Dashboard with Grafanaaz monitor dashboard show: shows resource details for a Dashboard with Grafanaaz monitor dashboard list: lists all Dashboard with Grafana resources