Skip to content

Conversation

@merlynomsft
Copy link
Contributor

@merlynomsft merlynomsft commented Feb 6, 2026

Detects when VMSS extension uses fallback enableagent script and reports via startup metrics.

Changes

  • Check VSTS_AGENT_VMEXT_FALLBACK_USED environment variable during agent startup
  • Add EnableAgentVmExtFallbackUsed to initial metrics event when fallback detected
  • Log detection for diagnostic purposes

Context

Complements VMSS extension fallback mechanism (microsoft/vsts-azurevm-extension#262) by enabling visibility into when bundled scripts are used during vstsagenttools storage account outages.

AB#2354671

Detect VSTS_AGENT_VMEXT_FALLBACK_USED environment variable set by VMSS extension
and include in startup telemetry for monitoring storage outage impact.

#ab2354671
@merlynomsft merlynomsft added the misc Miscellaneous Changes label Feb 6, 2026
};

// Check for EnableAgent fallback indicator
string fallbackUsed = Environment.GetEnvironmentVariable("VSTS_AGENT_VMEXT_FALLBACK_USED");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(not related to line) pending local testing, will resolve when complete

@merlynomsft merlynomsft marked this pull request as ready for review February 6, 2026 03:34
@merlynomsft merlynomsft requested review from a team as code owners February 6, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

misc Miscellaneous Changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants