Skip to content

Enhance validation result/context: Suggestion field, parameters.json, location, docs links #7119

@vhvb1989

Description

@vhvb1989

Context

Follow-up from PR #7053 review. Parent tracking issue: #7112

PR Conversations

What needs to change

  1. Suggestion field: Add a Suggestion string field to PreflightResult to mirror the final UI pattern for errors (consistent with ErrorWithSuggestion).
  2. 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.
  3. Parameters file: Also check for .parameters.json file when loading bicep parameters.
  4. Location: Pass location to bicep snapshot command if known, so it can resolve resourceGroup().location.
  5. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions