Repository navigation
feat: emit BYO AKS hosting adoption telemetry in Foundry provision - #10974
Draft
Hui Miao (huimiu) wants to merge 1 commit into
Draft
Hui Miao (huimiu) wants to merge 1 commit into
Hui Miao (huimiu) wants to merge 1 commit into
Conversation
|
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. |
4 of 5 tasks
Hui Miao (huimiu)
force-pushed
the
hui/byo-aks-telemetry-extension
branch
from
November 18, 2026 08:28
a749a39 to
2d2e312
Compare
Hui Miao (huimiu)
force-pushed
the
hui/byo-aks-telemetry-extension
branch
from
November 20, 2026 00:08
2d2e312 to
84c8df9
Compare
Hui Miao (huimiu)
force-pushed
the
hui/byo-aks-telemetry-extension
branch
from
November 23, 2026 00:12
84c8df9 to
9223469
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We cannot yet see how many
azd provisionorazd upruns select BYO AKS agent hosting. Building on #10973, this PR emits a dedicatedagent.hosting.selectedevent withext.agent.hosting.mode="byo_aks"duringazure.ai.projectsDeploywhenagentHosting.enabledresolves totrue, keepingagent.phase.completedtiming telemetry unchanged.Changes
AgentHostingMode(byo_aks) andAgentHostingSelectedincli/azd/extensions/azure.ai.projects/internal/telemetry/events.gowith unit testsreportAgentHostinginaks_hosting.goand invoke it once inFoundryProvisioningProvider.Deployright afterresolveTemplatesucceedsReportUsageprovisioning tests inaks_hosting_telemetry_test.gocovering BYO AKS success, disabled preview gate with$ref, invalid cluster/identity IDs, preflight and model-policy failures, non-BYO projects, on-disk parameter overrides, malformedagentHostinginputs,Previewomission, and zero ID leakagecli/azd/extensions/azure.ai.projects/README.mdto documentagent.hosting.selected(ext.agent.hosting.mode="byo_aks")Telemetry change
What changed:
azure.ai.projectsemits oneext.usagespan whereextension.event="agent.hosting.selected"andext.agent.hosting.mode="byo_aks"(core field contract declared in base PR #10973) duringFoundryProvisioningProvider.DeploywhenbyoHostingParameter(source)resolves effectiveagentHosting.enabled == truefromazure.yaml,$refservice files, or on-disk deployment parameters. Before: Foundry provisioning emitted no BYO AKS adoption signal. After: BYO AKSDeployruns emitagent.hosting.selectedonce before preview-gate, validation, preflight, and ARM deploy, whileagent.phase.completedremains timing-only andazd provision --preview, projects withoutagentHosting,enabled: falseoverrides, and malformedagentHostinginputs emit noagent.hosting.selectedevent.Why it is needed: count BYO AKS provision attempts as a standalone
FeatureInsightadoption signal, and join onoperation_Idwithcmd.provision,cmd.up, oragent.phase.completedfor outcomes (machine.idfor distinct machines) andagent.context.resolved(ext.agent.container.mode) for container packaging without resource IDs.Approval coverage (maintainer): pending assessment
"byo_aks"enum.ext.usageconsumers are unaffected by the new event; maintainer to assign an analytics owner for new BYO AKS Kusto queries.@huimiu); extension code, tests, and docs are complete here (@huimiu); metadata rollout and approval assessment are pending maintainer review; production Kusto query check is pending post-release rollout (@huimiuand maintainer-assigned analytics owner).Open questions or follow-ups: merge base PR #10973 first, maintainer approval-coverage assessment before rollout, and post-release Kusto query check after
azure.ai.projectsships (@huimiu).