Skip to content

feat: add BYO AKS marker to Foundry provision telemetry - #10972

Closed
Hui Miao (huimiu) wants to merge 1 commit into
mainfrom
hui/byo-aks-provisioning-telemetry
Closed

Hui Miao (huimiu) wants to merge 1 commit into
mainfrom
hui/byo-aks-provisioning-telemetry

Conversation

@huimiu

Copy link
Copy Markdown
Member

Summary

We cannot yet see how many azd provision or azd up runs use BYO AKS agent hosting. This change adds ext.agent.hosting.byo_aks="true" to the existing azure.ai.projects provider provision agent.phase.completed event when agentHosting.enabled resolves to true, before the preview gate, local validation, preflight, and ARM deploy.

Changes

  • Declare AgentHostingBYOAKS (ext.agent.hosting.byo_aks, SystemMetadata / FeatureInsight, endpoint N/A) in core extension telemetry fields
  • Add phasetelemetry.BYOAKS(ctx) in azure.ai.projects and mark provider provision timing in resolveTemplateSource and prepareBYO when byoHostingParameter resolves enabled: true
  • Add phase timing and ReportUsage provisioning tests for BYO AKS success, unset preview flag, validation/preflight/policy failures, enabled: false overrides, malformed agentHosting inputs, azd provision --preview, and omitted resource IDs
  • Update azure.ai.projects, azure.ai.agents, and shared telemetry and privacy docs

Telemetry change

What changed: azure.ai.projects adds optional ext.agent.hosting.byo_aks="true" to existing ext.usage spans where extension.event="agent.phase.completed", ext.agent.phase.name="provision", and ext.agent.phase.scope="provider", sourced from byoHostingParameter(source) when effective agentHosting.enabled == true in azure.yaml, $ref service files, or on-disk deployment parameters. Before: provider provision completion sent ext.agent.phase.name, ext.agent.phase.scope, ext.agent.phase.outcome, ext.agent.phase.duration_ms, and ext.agent.phase.attempt_id. After: BYO AKS runs add ext.agent.hosting.byo_aks="true" beside those fields, while other phases, command scope, agent.phase.step, azd provision --preview, projects without agentHosting, enabled: false overrides, and malformed agentHosting inputs omit it.
Why it is needed: count BYO AKS provisioning attempts and inspect their outcomes, and join on operation_Id with cmd.provision, cmd.up, machine.id, and agent.context.resolved (ext.agent.container.mode) without new events or resource IDs.
Approval coverage (maintainer): pending assessment

  • Values are limited to what is needed; custom and invalid inputs are handled.
  • Field/event declarations, classification, purpose, identifier metadata, hashing rules, and affected telemetry docs are updated. No identifiers are added; hashing is not applicable to the fixed "true" marker.
  • Focused tests check emitted and excluded values, including hashes where relevant. Opt-out behavior is unchanged.
  • Known affected queries, tables, reports, or exports are listed, with an owner for follow-up or migration. Existing ext.usage consumers are unaffected by the optional attribute; maintainer to assign an analytics owner for new BYO AKS Kusto queries.
  • Code changes, metadata deployment, and downstream checks have separate statuses and owners. Code, governance tests, and docs are complete (@huimiu); metadata rollout and approval assessment are pending maintainer review; production Kusto query check is pending post-release rollout (@huimiu and maintainer-assigned analytics owner).

Open questions or follow-ups: maintainer approval-coverage assessment before rollout, plus post-release Kusto query check after azure.ai.projects ships (@huimiu).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
27 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@github-actions github-actions Bot added ext-agents azure.ai.agents extension ext-projects azure.ai.projects extension labels Nov 17, 2026
@huimiu

Copy link
Copy Markdown
Member Author

Superseded by PR stack #10973 and #10974.

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

Labels

ext-agents azure.ai.agents extension ext-projects azure.ai.projects extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant