Azure functions app keeps returning 401 unauthorized

  azure-functions, docker, python

I have created an Azure Function base on a custom image (docker) using VS Code.
I used the deployment feature of VS code to deploy it to azure and everything was fine.

My function.json file specifies anonymous auth level:

{
  "scriptFile": "__init__.py",
  "bindings": [
    {
      "authLevel": "anonymous",
      "type": "httpTrigger",
      "direction": "in",
      "name": "req",
      "methods": [
        "get",
        "post"
      ]
    },
    {
      "type": "http",
      "direction": "out",
      "name": "$return"
    }
  ]
}

Why an I still getting the 401 unauthorized error?

Thanks

Amit

Source: Docker Questions

LEAVE A COMMENT