Skip to content

Auto-install missing project extensions before command execution#9218

Draft
JeffreyCA with Copilot wants to merge 3 commits into
mainfrom
copilot/improve-install-experience-extensions
Draft

Auto-install missing project extensions before command execution#9218
JeffreyCA with Copilot wants to merge 3 commits into
mainfrom
copilot/improve-install-experience-extensions

Conversation

Copilot AI commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Project commands reported unsupported service hosts before offering to install the extensions needed by azure.yaml. Auto-install also handled only one missing extension and ignored requiredVersions and custom provisioning providers.

Previous unsupported-host experience

Changes

  • Preflight extension discovery

    • Runs before project commands such as up, provision, deploy, and infra generate.
    • Detects all missing extensions required by service targets and provisioning providers.
    • Rebuilds the command tree once after installation.
  • Required extensions

    • Honors requiredVersions.extensions and its version constraints.
    • Installs explicit requirements before inferred ones.
    • Supports extension packs; dependencies installed by a pack are skipped during subsequent inferred processing.
  • Provider compatibility

    • Restricts installation candidates to versions that provide the requested capability.
    • Deduplicates extensions needed by multiple services or providers.
    • Retains deterministic ordering across multiple requirements.

Behavior at a glance

Scenario Before After
Multiple custom service hosts Installs one, then command fails on the next Discovers and offers every missing extension
requiredVersions.extensions Ignored outside initialization Installed with the declared constraint
Custom infra.provider No auto-install Matching provisioning extension is discovered
Extension pack Not considered Pack installs first; inferred dependencies are skipped
Unsupported service host Error shown before install prompt Extension preflight runs before command execution

@azure-pipelines

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

Copilot AI and others added 2 commits July 20, 2026 22:28
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve UX for install experience of missing extensions Auto-install missing project extensions before command execution Jul 20, 2026
Copilot AI requested a review from JeffreyCA July 20, 2026 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve UX for install experience of missing extensions

2 participants