Fixes to prep for Grafana 13#9891
Conversation
❌Azure CLI Extensions Breaking Change Test
|
|
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 updates the amg Azure CLI extension to prepare for Grafana 13 by removing deprecated command surfaces and migrating data-source operations away from deprecated ID-based Grafana APIs.
Changes:
- Remove deprecated
az grafana notification-channelandaz grafana api-keycommand groups (and related docs/help). - Update
az grafana data-source updateto use the UID-based endpoint and drop ID-based data source lookup. - Promote
backup,restore, andintegrations monitorcommands from preview to GA; bump extension version to 2.9.0.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/amg/setup.py | Bumps extension version to 2.9.0. |
| src/amg/README.md | Removes notification-channel documentation snippet. |
| src/amg/HISTORY.rst | Adds 2.9.0 release notes for Grafana 13 prep and GA commands. |
| src/amg/azext_amg/tests/latest/recordings/test_amg_e2e.yaml | Updates recording to reflect UID-based datasource update endpoint. |
| src/amg/azext_amg/custom.py | Switches datasource update to /uid/ endpoint; removes notification-channel and api-key implementations; adjusts datasource resolution logic. |
| src/amg/azext_amg/commands.py | Removes deprecated command groups; marks backup/restore/integrations monitor as GA. |
| src/amg/azext_amg/_params.py | Updates data_source argument help to reflect name/UID resolution only; removes api-key/notification-channel params. |
| src/amg/azext_amg/_help.py | Removes help entries for deprecated command groups. |
|
[Release] Update index.json for extension [ amg-3.0.0 ] : https://dev.azure.com/msazure/One/_build/results?buildId=165679900&view=results |
Related command
az grafana data-source,az grafana backup,az grafana restore,az grafana integration,az grafana managed-private-endpointGeneral Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install wheel==0.30.0required)