Skip to content

AzureFunctionsExtensionApi Does Not Ask for Function Name when Creating Powershell Function - No function made #4289

@EvanR-Dev

Description

@EvanR-Dev

When creating a new Powershell Azure Function with the Az Fx Ext API, it does not ask for the name automatically when not providing the functionName. This parameter is considered optional
image

It only asks for the trigger type and then access level (2 steps):
image

Creation still happened, but it leads to a malformed Pwsh functions project. This error will pop up:
image

And this is what the project looks like after creation. The function was not made:
image

A workaround is to ask the user using a VSCode quick pick before creation happens - but this is out of order because we would want to know the trigger type before the name. Note this only happens in Pwsh - in Python and Node I can confirm it will ask for the function name from the user if not provided and works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions