Rotate a Function Key and Confirm It
A 2-step recipe with Microsoft Azure Functions. We can help you get access.
Recipe · 2 steps
Rotate a Function Key and Confirm It
Set a named function key and confirm it via the key listing.
- Create or update the named function key. ARM returns 200 when an existing key is updated or 201 when a new key is created.
- List all keys for the function to confirm the rotated key is present. The response is a StringDictionary whose properties map key names to values.
What you'll need to have ready
- subscriptionId: The Azure subscription identifier (GUID).
- resourceGroupName: The resource group that contains the function app.
- name: The name of the function app.
- functionName: The name of the function whose key is being rotated.
- keyName: The name of the key to create or update (e.g. "default").
- keyValue: Optional explicit key value; omit to let the platform generate one.
- apiVersion: The ARM api-version to use for all requests.
For your developer
Arazzo workflow microsoft-azure-functions:rotate-function-key, 2 operations: WebApps_CreateOrUpdateFunctionSecret → WebApps_ListFunctionKeys. Specs on APIs.io.