Summary
azd x init fails when an extension selects the Service Target Provider capability because azd x build treats metadata validation warnings as command-failing errors.
Repro
- Run
azd x init.
- Select the Service Target Provider capability.
- Let init continue into the build step.
Actual
The build step fails/skips the remaining flow due to a validation warning such as:
Error: Validation warnings
Details:
Extension contains validation warnings: Missing providers
When invoked through azd x init, the useful warning details may not be surfaced clearly and the command flow stops.
Expected
Validation warnings should be displayed as warnings only. They should not fail azd x build or stop the azd x init flow; build/package/install should proceed unless there are validation errors.
Summary
azd x initfails when an extension selects the Service Target Provider capability becauseazd x buildtreats metadata validation warnings as command-failing errors.Repro
azd x init.Actual
The build step fails/skips the remaining flow due to a validation warning such as:
When invoked through
azd x init, the useful warning details may not be surfaced clearly and the command flow stops.Expected
Validation warnings should be displayed as warnings only. They should not fail
azd x buildor stop theazd x initflow; build/package/install should proceed unless there are validation errors.