Skip to content

[monitor-trace-association] Add preview extension for Microsoft.Monitor/traceAssociations (draft) - #10167

Draft
bragi92 wants to merge 1 commit into
Azure:mainfrom
bragi92:monitor-trace-association
Draft

[monitor-trace-association] Add preview extension for Microsoft.Monitor/traceAssociations (draft)#10167
bragi92 wants to merge 1 commit into
Azure:mainfrom
bragi92:monitor-trace-association

Conversation

@bragi92

@bragi92 bragi92 commented Jul 31, 2026

Copy link
Copy Markdown
Member

Draft — do not merge (blocked on public REST API spec)

Adds a new preview extension monitor-trace-association for Microsoft.Monitor/traceAssociations (API version 2026-01-01-preview).

az monitor trace-association maps a scope (Application Insights component, resource group, or subscription) to an Azure Monitor Workspace for trace routing. Singleton default; multi-homing via scope inheritance.

Commands

  • create — PUT (CreateOrUpdate)
  • update — GET + merge + PUT
  • show — GET
  • delete — DELETE
  • list — GET (ListByScope)

Args: --resource-uri/--scope (required), --azure-monitor-workspace-resource-id/--amw-id (required on create), --name/-n (default default).

Status / why this is a draft

  • The spec is currently only in the private azure-rest-api-specs-pr (PR #27737); it is not yet in public Azure/azure-rest-api-specs. A 120-day ARM lease is holding the API version (expires ~Sept 2026).
  • Command bodies are a functional prototype calling ARM directly via send_raw_request. They will be replaced by aaz-dev-generated code (with the matching Azure/aaz command-model PR) once the swagger is published publicly.
  • Marked isPreview: true.

Validation done locally

  • python -m py_compile passes for all modules.
  • Built the wheel, az extension add, and verified -h for the group and every command: command tree, required args, defaults, and examples all render.

TODO before ready-for-review

  • Public azure-rest-api-specs PR merged (port from -pr #27737).
  • Regenerate via aaz-dev from the public swagger; open the Azure/aaz command-model PR.
  • Replace the direct-ARM prototype with generated aaz/ code.
  • Add recorded scenario test.

Co-authored with GitHub Copilot CLI.

…or/traceAssociations (draft)

Adds `az monitor trace-association` create/update/show/delete/list for
Microsoft.Monitor/traceAssociations, API version 2026-01-01-preview.

DRAFT: command bodies call ARM directly (send_raw_request) as a functional
prototype; to be replaced by aaz-dev-generated code once the spec is published
to the public Azure/azure-rest-api-specs repo (currently only in
azure-rest-api-specs-pr #27737). Do not merge until the public spec lands.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: fe50b7ed-a3b8-4f18-85e2-a20194432da9
@azure-pipelines

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

@a0x1ab

a0x1ab commented Jul 31, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@yonzhan
yonzhan requested a review from NoriZC August 1, 2026 00:15
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.

3 participants