IFunctionApp.AddFunctionKeyAsync(String, String, String, CancellationToken) 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
System.String

The name of the function.

keyName
System.String

The name of the key to add.

keyValue
System.String

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

cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<NameValuePair>

Applies to