Share via


LoadTestRunClient.BeginTestProfileRunAsync Method

Definition

Create and start a new test profile run with the given name.

public virtual System.Threading.Tasks.Task<Azure.Operation<BinaryData>> BeginTestProfileRunAsync(Azure.WaitUntil waitUntil, string testProfileRunId, Azure.Core.RequestContent content, TimeSpan? timeSpan = default, Azure.RequestContext context = default);
abstract member BeginTestProfileRunAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Nullable<TimeSpan> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
override this.BeginTestProfileRunAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Nullable<TimeSpan> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
Public Overridable Function BeginTestProfileRunAsync (waitUntil As WaitUntil, testProfileRunId As String, content As RequestContent, Optional timeSpan As Nullable(Of TimeSpan) = Nothing, Optional context As RequestContext = Nothing) As Task(Of Operation(Of BinaryData))

Parameters

waitUntil
WaitUntil

Defines how to use the LRO, if passed WaitUntil.Completed then waits for test profile run to get completed

testProfileRunId
String

Unique name for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

content
RequestContent

The content to send as the body of the request. Details of the request body schema are in the Remarks section below.

timeSpan
Nullable<TimeSpan>

pollingInterval for poller class, default value or null value is treated as 5 secs

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service. Details of the response body schema are in the Remarks section below.

Exceptions

testProfileRunId or content is null.

testProfileRunId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to