Share via


IFunctionApp.AddFunctionKeyAsync Method

Definition

Adds a key to a function in this function app.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.NameValuePair> AddFunctionKeyAsync (string functionName, string keyName, string keyValue, System.Threading.CancellationToken cancellationToken = default);
abstract member AddFunctionKeyAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AppService.Fluent.Models.NameValuePair>
Public Function AddFunctionKeyAsync (functionName As String, keyName As String, keyValue As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NameValuePair)

Parameters

functionName
String

The name of the function.

keyName
String

The name of the key to add.

keyValue
String

Optional. If not provided, a value will be generated.

cancellationToken
CancellationToken

Returns

Applies to