Search⌘ K
AI Features

Configuring Secrets and Keys

Explore how to secure Azure Functions by configuring application-wide and function-specific secret keys. Learn to manage access through keys in HTTP requests and how to rotate keys to maintain security. This lesson helps you ensure authorized client access to your function endpoints.

When our function app has endpoints exposed to the outside world, such as HTTP triggers, we need to make sure that only authorized clients can access it. The standard mechanism for enabling this in Azure Functions is the use of secret keys. This way, the function endpoint will only be accessible to those clients that have specified the correct key-value pair in the request.

There are two main types of keys supported by Azure Functions:

  • Application key: ...