Dela via


FunctionsOperationsExtensions.TestAsync Method

Definition

Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.StreamAnalytics.Models.ResourceTestStatus> TestAsync (this Microsoft.Azure.Management.StreamAnalytics.IFunctionsOperations operations, string resourceGroupName, string jobName, string functionName, Microsoft.Azure.Management.StreamAnalytics.Models.Function function = default, System.Threading.CancellationToken cancellationToken = default);
static member TestAsync : Microsoft.Azure.Management.StreamAnalytics.IFunctionsOperations * string * string * string * Microsoft.Azure.Management.StreamAnalytics.Models.Function * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.StreamAnalytics.Models.ResourceTestStatus>
<Extension()>
Public Function TestAsync (operations As IFunctionsOperations, resourceGroupName As String, jobName As String, functionName As String, Optional function As Function = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceTestStatus)

Parameters

operations
IFunctionsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

jobName
String

The name of the streaming job.

functionName
String

The name of the function.

function
Function

If the function specified does not already exist, this parameter must contain the full function definition intended to be tested. If the function specified already exists, this parameter can be left null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties in the existing function (exactly like a PATCH operation) and the resulting function will be tested.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to