Skip to content

[Issue] Documentation contains invalid hook "preinit" #1550

@lechnerc77

Description

@lechnerc77

Output from azd version

azd version 0.6.0-beta.2 (commit c4a201e)

Output from az version

n/a - not relevant for my scenario

Describe the bug

The documentations and the announcement blog post for azd version 0.6.0-beta.1 contain a code snippet that contains the hook definition for a preinit event (link).

This event is not foreseen in the JSON schema of the azure.yaml as a vlid entry.

I assume that this event should not be part of the flow.

To Reproduce

Define a azure.yaml and specify a preinit hook.

VSCode will highlight an issue due to validation.
Executing an azd init with the file does not show any effect, it does not seem that the hook gets picked up.

Expected behavior

Not sure: either the documentation needs to be adjusted or the event is indeed missing in the azure.yaml JSON schema as well as in the azd implementation.

Environment

n/a

Additional context

n/a

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions