Update New Relic extension to API 2026-06-01 - #10299
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0cfb43a4-9a09-4e39-94a1-1a04301c1ef3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0cfb43a4-9a09-4e39-94a1-1a04301c1ef3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0cfb43a4-9a09-4e39-94a1-1a04301c1ef3
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0cfb43a4-9a09-4e39-94a1-1a04301c1ef3
|
Hi Shiwani (@shiwanijain), |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
🟡 Changes recommended
There are user-facing CLI/documentation issues (including a breaking argument-alias change and incorrect/typo’d examples/help text) that should be corrected before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the new-relic Azure CLI extension to target the stable New Relic RP API version 2026-06-01, and expands the command surface to cover SaaS activation/linking, ingestion key refresh, and monitored-subscription listing while refreshing the extension’s tests and metadata.
Changes:
- Bumped extension version and minimum Azure CLI core requirement.
- Regenerated/updated AAZ command implementations to use API version
2026-06-01, including updated schemas and PATCH/LRO behaviors. - Added new commands for SaaS activation/linking, ingestion-key refresh, and monitored-subscription listing; updated scenario tests accordingly.
File summaries
| File | Description |
|---|---|
| src/new-relic/setup.py | Bumps extension package version to 1.2.0. |
| src/new-relic/HISTORY.rst | Adds 1.2.0 release notes for the 2026-06-01 update. |
| src/new-relic/azext_new_relic/tests/latest/test_new_relic.py | Updates scenario test flow and adds monitored-subscription list coverage. |
| src/new-relic/azext_new_relic/azext_metadata.json | Raises min CLI core requirement to 2.75.0. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/plan/_list.py | Updates plan listing to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/organization/_list.py | Updates organization listing to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/tag_rule/_wait.py | Updates tag-rule wait command (API version + args/schema adjustments). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/tag_rule/_update.py | Updates tag-rule update command (API version + schema/read-only flags). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/tag_rule/_show.py | Updates tag-rule show command (API version + args/schema tweaks). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/tag_rule/_list.py | Updates tag-rule list command (API version + schema/read-only flags). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/tag_rule/_delete.py | Updates tag-rule delete command (API version + args/schema tweaks). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/tag_rule/_create.py | Updates tag-rule create command (API version + example/args tweaks). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/_wait.py | Updates monitored-subscription wait command (API version + schema changes). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/_update.py | Changes monitored-subscription update to PATCH and updates LRO final-state handling + schema. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/_show.py | Updates monitored-subscription show command (API version + schema changes). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/_list.py | Adds monitored-subscription list command (paged). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/_delete.py | Updates monitored-subscription delete command (confirmation + LRO + API version). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/_create.py | Updates monitored-subscription create command (API version + args/schema). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/monitored_subscription/init.py | Exposes newly added monitored-subscription list command. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_wait.py | Updates monitor wait command (API version + identity schema tweaks). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_vm_host_payload.py | Updates vm-host-payload command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_switch_billing.py | Updates switch-billing command to API 2026-06-01 (example + schema). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_show.py | Updates monitor show command to API 2026-06-01 (identity + read-only flags). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_refresh_ingestion_key.py | Adds refresh-ingestion-key command. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_monitored_resource.py | Updates monitored-resource command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_list.py | Updates monitor list command to API 2026-06-01 and corrects endpoint selection ordering. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_list_linked_resource.py | Updates list-linked-resource command to API 2026-06-01 (schema required flags). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_list_host.py | Updates list-host command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_list_connected_partner_resource.py | Updates list-connected-partner-resource command to API 2026-06-01 (schema required flags). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_list_app_service.py | Updates list-app-service command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_link_saas.py | Adds link-saas command. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_latest_linked_saas.py | Adds latest-linked-saas command. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_get_metric_statu.py | Updates get-metric-statu command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_get_metric_rule.py | Updates get-metric-rule command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_get_billing_info.py | Updates get-billing-info command to API 2026-06-01 (adds offer/publisher fields). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_delete.py | Updates monitor delete command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_create.py | Updates monitor create command to API 2026-06-01 (adds SaaS data + identity arg schema updates). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/init.py | Exposes new monitor commands (link/refresh/latest SaaS). |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/account/_list.py | Updates account list command to API 2026-06-01. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/_activate_saas.py | Adds activate-saas command. |
| src/new-relic/azext_new_relic/aaz/latest/new_relic/init.py | Exposes activate-saas at the top-level command group. |
Review details
- Files reviewed: 41/42 changed files
- Comments generated: 7
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
New Relic extension |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 03b01e4a-ce74-428f-a239-e7c681f7e55e
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
The 2026-06-01 New Relic command regeneration explicitly pinned 'options' lists on several generated args, which silently dropped legacy aliases that are live today in the published extension (upstream/main). Restore them so existing customer scripts keep working, while keeping the new canonical option names: - monitor create/delete/get-metric-rule/get-metric-statu/ list-app-service/list-host/monitored-resource: restore '-n' and '--name' (or '--monitor-name') alongside the monitor name option. - resource-group across monitor, tag-rule and monitored-subscription commands: restore '-g', plus the historical (non-standard) '--g' alias on get-billing-info and monitored-subscription create/delete/show/update/wait. - monitor create: restore '-l' on --location. - tag-rule create/delete/show: restore '-n' and '--rule-set-name' on --name. - monitored-subscription create: restore '-n' on --monitored-subscription-list. Not added to 'update', which already uses '-n' for --configuration-name, to avoid an alias conflict. Verified with azure.cli.core.aaz: all 108 generated commands build their argument schema with zero option conflicts, and every alias token present in upstream/main for existing commands is still present. No behavior changed for new 2026-06-01-only commands/parameters. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0cfb43a4-9a09-4e39-94a1-1a04301c1ef3
|
/azp run |
|
Commenter does not have sufficient privileges for PR 10299 in repo Azure/azure-cli-extensions |
|
Aditya Pujara (@a0x1ab) The legacy alias compatibility fixes are pushed in 874c60c and all GitHub checks are green. My |
|
Ethan Yang (@necusjz) The unexpected legacy alias removals from the breaking-change report are fixed in 874c60c; the matching canonical AAZ fix is Azure/aaz#1081 commit 25b01ed4. Local compatibility validation preserves every prior alias with zero option conflicts, playback passes, and GitHub CI is green. I cannot rerun Azure Pipelines due to repository permissions. Could you or Aditya Pujara (@a0x1ab) run |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
[Release] Update index.json for extension [ new-relic-1.2.0 ] : https://dev.azure.com/msazure/One/_build/results?buildId=180437603&view=results |
🤖 PR Validation — ❌ Action needed
❌Azure CLI Extensions Breaking Change Test
Summary
Validation
All passed. The cassette is scoped to the test resource group and contains no known user/subscription/tenant identifiers.