Skip to content

Update New Relic extension to API 2026-06-01 - #10299

Merged
Ethan Yang (necusjz) merged 6 commits into
Azure:mainfrom
shiwanijain:new-relic-2026-06-01
Sep 10, 2026
Merged

Update New Relic extension to API 2026-06-01#10299
Ethan Yang (necusjz) merged 6 commits into
Azure:mainfrom
shiwanijain:new-relic-2026-06-01

Conversation

@shiwanijain

@shiwanijain Shiwani (shiwanijain) commented Sep 3, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ❌ Action needed

Breaking Changes
❌ 1
❌Azure CLI Extensions Breaking Change Test
❌new-relic
rule cmd_name rule_message suggest_message
1007 - ParaRemove new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update removed parameter generic_update_add please add back parameter generic_update_add for cmd new-relic monitor monitored-subscription update
1007 - ParaRemove new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update removed parameter generic_update_force_string please add back parameter generic_update_force_string for cmd new-relic monitor monitored-subscription update
1007 - ParaRemove new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update removed parameter generic_update_remove please add back parameter generic_update_remove for cmd new-relic monitor monitored-subscription update
1007 - ParaRemove new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update removed parameter generic_update_set please add back parameter generic_update_set for cmd new-relic monitor monitored-subscription update
1010 - ParaPropUpdate new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update update parameter monitored_subscription_list: updated property options from ['--monitored-subscription-list', '--subscriptions', '-n'] to ['--monitored-subscription-list', '--subscriptions'] please change property options from ['--monitored-subscription-list', '--subscriptions'] to ['--monitored-subscription-list', '--subscriptions', '-n'] for parameter monitored_subscription_list of cmd new-relic monitor monitored-subscription update
⚠️ 1001 - CmdAdd new-relic activate-saas cmd new-relic activate-saas added
⚠️ 1006 - ParaAdd new-relic monitor create cmd new-relic monitor create added parameter saas_data
⚠️ 1010 - ParaPropUpdate new-relic monitor create cmd new-relic monitor create update parameter monitor_name: updated property name from monitor_name to name
⚠️ 1010 - ParaPropUpdate new-relic monitor get-billing-info cmd new-relic monitor get-billing-info update parameter resource_group: updated property options from ['--g', '--resource-group'] to ['--g', '--resource-group', '-g']
⚠️ 1001 - CmdAdd new-relic monitor latest-linked-saas cmd new-relic monitor latest-linked-saas added
⚠️ 1001 - CmdAdd new-relic monitor link-saas cmd new-relic monitor link-saas added
⚠️ 1008 - ParaPropAdd new-relic monitor monitored-subscription create cmd new-relic monitor monitored-subscription create update parameter configuration_name: added property aaz_default=default
⚠️ 1008 - ParaPropAdd new-relic monitor monitored-subscription create cmd new-relic monitor monitored-subscription create update parameter configuration_name: added property default=default
⚠️ 1009 - ParaPropRemove new-relic monitor monitored-subscription create cmd new-relic monitor monitored-subscription create update parameter configuration_name: removed property required=True
⚠️ 1010 - ParaPropUpdate new-relic monitor monitored-subscription create cmd new-relic monitor monitored-subscription create update parameter resource_group: updated property options from ['--g', '--resource-group'] to ['--g', '--resource-group', '-g']
⚠️ 1006 - ParaAdd new-relic monitor monitored-subscription delete cmd new-relic monitor monitored-subscription delete added parameter yes
⚠️ 1010 - ParaPropUpdate new-relic monitor monitored-subscription delete cmd new-relic monitor monitored-subscription delete update parameter resource_group: updated property options from ['--g', '--resource-group'] to ['--g', '--resource-group', '-g']
⚠️ 1001 - CmdAdd new-relic monitor monitored-subscription list cmd new-relic monitor monitored-subscription list added
⚠️ 1010 - ParaPropUpdate new-relic monitor monitored-subscription show cmd new-relic monitor monitored-subscription show update parameter resource_group: updated property options from ['--g', '--resource-group'] to ['--g', '--resource-group', '-g']
⚠️ 1010 - ParaPropUpdate new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update update parameter configuration_name: updated property options from ['--configuration-name'] to ['--configuration-name', '--name', '-n']
⚠️ 1010 - ParaPropUpdate new-relic monitor monitored-subscription update cmd new-relic monitor monitored-subscription update update parameter resource_group: updated property options from ['--g', '--resource-group'] to ['--g', '--resource-group', '-g']
⚠️ 1010 - ParaPropUpdate new-relic monitor monitored-subscription wait cmd new-relic monitor monitored-subscription wait update parameter resource_group: updated property options from ['--g', '--resource-group'] to ['--g', '--resource-group', '-g']
⚠️ 1001 - CmdAdd new-relic monitor refresh-ingestion-key cmd new-relic monitor refresh-ingestion-key added
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule create cmd new-relic monitor tag-rule create update parameter rule_set_name: added property aaz_default=default
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule create cmd new-relic monitor tag-rule create update parameter rule_set_name: added property default=default
⚠️ 1009 - ParaPropRemove new-relic monitor tag-rule create cmd new-relic monitor tag-rule create update parameter rule_set_name: removed property required=True
⚠️ 1010 - ParaPropUpdate new-relic monitor tag-rule create cmd new-relic monitor tag-rule create update parameter rule_set_name: updated property name from rule_set_name to name
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule delete cmd new-relic monitor tag-rule delete update parameter rule_set_name: added property aaz_default=default
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule delete cmd new-relic monitor tag-rule delete update parameter rule_set_name: added property default=default
⚠️ 1009 - ParaPropRemove new-relic monitor tag-rule delete cmd new-relic monitor tag-rule delete update parameter rule_set_name: removed property required=True
⚠️ 1010 - ParaPropUpdate new-relic monitor tag-rule delete cmd new-relic monitor tag-rule delete update parameter rule_set_name: updated property name from rule_set_name to name
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule show cmd new-relic monitor tag-rule show update parameter rule_set_name: added property aaz_default=default
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule show cmd new-relic monitor tag-rule show update parameter rule_set_name: added property default=default
⚠️ 1009 - ParaPropRemove new-relic monitor tag-rule show cmd new-relic monitor tag-rule show update parameter rule_set_name: removed property required=True
⚠️ 1010 - ParaPropUpdate new-relic monitor tag-rule show cmd new-relic monitor tag-rule show update parameter rule_set_name: updated property name from rule_set_name to name
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule wait cmd new-relic monitor tag-rule wait update parameter rule_set_name: added property aaz_default=default
⚠️ 1008 - ParaPropAdd new-relic monitor tag-rule wait cmd new-relic monitor tag-rule wait update parameter rule_set_name: added property default=default
⚠️ 1009 - ParaPropRemove new-relic monitor tag-rule wait cmd new-relic monitor tag-rule wait update parameter rule_set_name: removed property required=True
⚠️ 1010 - ParaPropUpdate new-relic monitor tag-rule wait cmd new-relic monitor tag-rule wait update parameter rule_set_name: updated property name from rule_set_name to name

Summary

  • update New Relic commands to stable API 2026-06-01
  • add SaaS activation/linking, ingestion-key refresh, and monitored-subscription listing support
  • use the supported decoupled marketplace offer
  • exclude the unpublished monitor-resource update command because the live tags-only PATCH currently fails in production
  • replace the stale 2024 recording with a scrubbed 2026-06-01 cassette

Validation

  • azdev style new-relic
  • azdev linter new-relic
  • azdev test new-relic --live
  • azdev test new-relic

All passed. The cassette is scoped to the test resource group and contains no known user/subscription/tenant identifiers.

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
Copilot AI lite review requested due to automatic review settings September 3, 2026 19:32
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Shiwani (@shiwanijain),
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Comment thread src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_show.py
Comment thread src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_wait.py
Comment thread src/new-relic/azext_new_relic/aaz/latest/new_relic/monitor/_latest_linked_saas.py Outdated
Comment thread src/new-relic/azext_new_relic/tests/latest/test_new_relic.py
@yonzhan

Copy link
Copy Markdown
Collaborator

New Relic extension

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 03b01e4a-ce74-428f-a239-e7c681f7e55e
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
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
@shiwanijain

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 10299 in repo Azure/azure-cli-extensions

@shiwanijain

Copy link
Copy Markdown
Member Author

Aditya Pujara (@a0x1ab) The legacy alias compatibility fixes are pushed in 874c60c and all GitHub checks are green. My /azp run request was rejected due to insufficient privileges. Could you please rerun the two Azure Pipelines checks, including the breaking-change report?

@shiwanijain

Copy link
Copy Markdown
Member Author

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 to refresh the authoritative breaking-change report?

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@necusjz
Ethan Yang (necusjz) merged commit 0349eb6 into Azure:main Sep 10, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ new-relic-1.2.0 ] : https://dev.azure.com/msazure/One/_build/results?buildId=180437603&view=results

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.

6 participants