Context
Follow-up from PR #7053 review. Parent tracking issue: #7112
PR Conversations
What needs to change
- Suggestion field: Add a
Suggestion string field to PreflightResult to mirror the final UI pattern for errors (consistent with ErrorWithSuggestion).
- Doc comment: Update the validation function doc comment to emphasize graceful failure — checks should not block deployment if a condition is not met or a value is missing.
- Parameters file: Also check for
.parameters.json file when loading bicep parameters.
- Location: Pass
location to bicep snapshot command if known, so it can resolve resourceGroup().location.
- RBAC docs link: Add a link to Azure RBAC role assignments in the role-assignment warning message to help new users fix the issue.
Files to update
cli/azd/pkg/infra/provisioning/bicep/local_preflight.go
cli/azd/pkg/infra/provisioning/bicep/bicep_provider.go