IFunctionApp.AddFunctionKeyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET