Skip to content

[Application Insights] Pre-announce query offset default change - #10372

Open
Igor Babichev (netgh0st) wants to merge 2 commits into
Azure:mainfrom
netgh0st:ibabich/appinsights-bc-notice
Open

Igor Babichev (netgh0st) wants to merge 2 commits into
Azure:mainfrom
netgh0st:ibabich/appinsights-bc-notice

Conversation

@netgh0st

@netgh0st Igor Babichev (netgh0st) commented Sep 21, 2026

Copy link
Copy Markdown

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

Related command

az monitor app-insights query

Summary

Pre-announce the breaking default-value change planned for application-insights extension version 3.0.0b1.

Today, --offset defaults to 1h. The follow-up implementation will remove that implicit default so that, when no CLI time arguments are supplied, the KQL query controls the time range. Customers who require the current behavior can continue to specify --offset 1h explicitly.

This notification-only PR:

Follow-up implementation: #10364. It should merge and release only after this notification has been released for at least 30 days.

Validation

  • Built the application_insights-2.0.0b2 wheel and verified its package metadata.
  • Installed the wheel in an isolated Azure CLI extension directory and executed the command successfully.
  • Confirmed the runtime warning states that --offset will change from 1h to not set in 3.0.0b1 and links to [Application Insights] Remove implicit one-hour offset from app-insights query #10363.
  • Ran azdev generate-breaking-change-report application-insights --target-version None --source pre_announce; the report collected the expected warning under monitor app-insights query.
  • azdev style application-insights passes.
  • python scripts/ci/test_index.py -q passes.
  • git diff --check and Python compilation pass.

General Guidelines

  • Have you run azdev style application-insights locally?
  • Have you run python scripts/ci/test_index.py -q locally?
  • My extension version conforms to the extension version schema.

About Extension Publish

This PR updates setup.py and HISTORY.rst and does not modify src/index.json. The normal post-merge publishing automation should create the index update.

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

Copilot-Session: eb41df1a-e62f-43af-938a-67db646f2353
Copilot AI lite review requested due to automatic review settings September 21, 2026 06:10
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Igor Babichev (@netgh0st),
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.

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.

Copilot review overview

🟢 Approval recommended

The notification-only changes are documented and do not alter current command behavior.

Review effort: Lite
Findings: None

What changed in this PR

This PR pre-announces the planned --offset default change for az monitor app-insights query without changing current behavior.

Changes:

  • Bumps the extension version to 2.0.0b2.
  • Documents the upcoming breaking change.
  • Registers and loads the notification targeting 3.0.0b1.
File Description
src/​application-insights/​setup.py Updates the extension version.
src/​application-insights/​HISTORY.rst Documents the upcoming breaking change.
src/​application-insights/​azext_applicationinsights/​_breaking_change.py Registers the default-value notification and issue link.
src/​application-insights/​azext_applicationinsights/​__init__.py Loads the breaking-change registration module.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@netgh0st

Copy link
Copy Markdown
Author

The release metadata guidance is addressed: HISTORY.rst documents the customer-visible pre-announcement, and setup.py advances the notification release from 2.0.0b1 to 2.0.0b2. The follow-up breaking implementation remains separately versioned as 3.0.0b1 in #10364.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

Comment thread src/application-insights/azext_applicationinsights/__init__.py Outdated
@yonzhan

Copy link
Copy Markdown
Collaborator

monitor

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

Copilot-Session: eb41df1a-e62f-43af-938a-67db646f2353
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants