Azure / Azure/azure-functions-host

Kubernetes Deployed Functions with Non-Anonymous Auth Level

Open
#4,878 2 comments 3 reactions 1 assignee Claimed by @ahmelsayed View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

#### Is your question related to a specific version? If so, please specify:
v2.0 functions, any version.

#### What language does your question apply to? (e.g. C#, JavaScript, Java, All)
Python in this case, but any httpTrigger

#### Question

When I'm deploying to Kubernetes and use an authLevel of anonymous, e.g deploying this function.json

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

```

and this command `func kubernetes deploy --name test --registry testfunctionregistry.azurecr.io` everything works fine.

However, it's not clear from the docs or issues how to correctly get or set keys so I can use `authLevel` of e.g `function`. The docs refer to a UI in Azure but this seems to only apply to non-Kubernetes deployed cloud functions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.