Preflight: warn instead of hard-fail when missing env vars / az login#22
Merged
Conversation
…#21) Reported by @pamelafox: `azd up` on a clean machine hit `ERROR: CLAUDE_ORGANIZATION_NAME is required` before azd / Bicep could prompt for the parameter, and hit `ERROR: Azure CLI not found` because `az login` wasn't called out as a prerequisite. The four soft preconditions (CLAUDE_ORGANIZATION_NAME, AZURE_LOCATION, az on PATH, az signed in) now warn and exit 0 so azd can prompt / the RP can take over. Marketplace-offer-not-found (exit 4) and insufficient quota (exit 6) remain hard fails -- those are the cases Terraform azapi swallows into the opaque 715-123420.
This was referenced May 29, 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.
Fixes #21.
azd upblocked on a clean machine because the preflight hard-failed before azd / Bicep could prompt for missing parameters, and requiredaz loginwithout saying so in the README. Reported by @pamelafox.What changes
scripts/preflight-claude.ps1andscripts/preflight-claude.shnow treat the four soft preconditions as warnings instead of hard fails:CLAUDE_ORGANIZATION_NAMEemptyAZURE_LOCATIONemptyaznot on PATHaznot signed inazapiswallows quota errors into opaque715-123420)README.mdPrerequisites now calls outaz loginas a recommended step so the preflight can do its catalog + quota checks.skills/claude-on-foundry/SKILL.mdPLAN section now describes the preflight as best-effort.Verification
Local run with no env vars set:
Net effect: a brand-new user can
git clone && cd infra-bicep && azd up, get prompted by azd for the values that are normally prompted for, and the deploy proceeds. Users who have setAZURE_LOCATION+ runaz loginstill get the full proactive catalog + quota validation.