Origin
Identified during review of PR #7836 (comment) and documented as a known limitation in extension-resolution-and-versioning.md.
Context
When azd init processes the requiredVersions.extensions map in azure.yaml, it checks whether each extension is already installed. If an extension is installed at any version, azd init skips it — it does not verify that the installed version satisfies the configured version constraint.
For example, if azure.yaml specifies >=2.0.0 but version 1.0.0 is installed, azd init silently moves on without upgrading or warning the user.
Scope
Update initializeExtensions in cmd/init.go to check whether the installed extension version satisfies the constraint declared in azure.yaml. If it does not, either:
- Upgrade the extension to a version that satisfies the constraint, or
- Warn the user that the installed version does not match
Acceptance Criteria
Origin
Identified during review of PR #7836 (comment) and documented as a known limitation in extension-resolution-and-versioning.md.
Context
When
azd initprocesses therequiredVersions.extensionsmap inazure.yaml, it checks whether each extension is already installed. If an extension is installed at any version,azd initskips it — it does not verify that the installed version satisfies the configured version constraint.For example, if
azure.yamlspecifies>=2.0.0but version1.0.0is installed,azd initsilently moves on without upgrading or warning the user.Scope
Update
initializeExtensionsincmd/init.goto check whether the installed extension version satisfies the constraint declared inazure.yaml. If it does not, either:Acceptance Criteria
azd initchecks the installed extension version against theazure.yamlconstraint