[SVLS-8622] add web app slot support#2130
Merged
ava-silver merged 10 commits intomasterfrom Mar 2, 2026
Merged
Conversation
176ebd3 to
fd756c0
Compare
Co-authored-by: Tal Usvyatsky <18072279+TalUsvyatsky@users.noreply.github.com>
TalUsvyatsky
approved these changes
Feb 27, 2026
iadjivon
approved these changes
Feb 27, 2026
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.

What and why?
This PR adds support for Azure Web App deployment slots in the AAS (Azure App Service) instrumentation commands. Previously, the CLI only supported instrumenting main Web Apps, but Azure allows creating deployment slots for staging, testing, and blue-green deployments. This enhancement enables users to instrument and uninstrument specific deployment slots.
Also, to be more clear on language, opts for 'Web App' as the resource type instead of the more generic 'App Service'. I'll make a follow up PR to also update the command to have
web-appas an alias for the scopeI also discovered a bug in the windows runtime detection which I've fixed, where sometimes a nodejs app will not be properly identified since it uses the weird convention of requiring a specific env var to be set. Sometimes, the
netFrameworkVersionis specified even for other runtimes, so we should check the other runtimes first, and then check thenetFrameworkVersionas a last resort.How?
--slotparameter to specify the slot name for instrumentationWebAppinterface to include an optionalslotproperty/sites/{name}/slots/{slotName})getSlot,restartSlot,updateApplicationSettingsSlot)renderWebAppandresourceIdSegmentfor consistent display and resource path generationValidation
I've done some thorough manual testing with web apps and validating that telemetry comes through, and I've also added/updated the unit tests in the plugin.
Review checklist