Azure / azure-functions-powershell-library

MIT License
2 stars 3 forks source link

Bug bash: Defining an HttpTrigger only with Authorization fails to execute #29

Open Francisco-Gamino opened 2 years ago

Francisco-Gamino commented 2 years ago

Define an Http trigger function with a Authorization set to 'anonymous'.

function AnotherFunction
{
    [Function()]
    param (
        [HttpTrigger(Authorization = 'anonymous')]
        $Request
    )

    [HttpResponseContext]@{
        StatusCode = [HttpStatusCode]::OK
        Body = "Hello form AnotherFunction!"
    } | Push-OutputBinding -Name Response
}

The Core Tools does show that the endpoint is available: image

However, after calling into the endpoint, the following exception is thrown:

image