Share via


WebTestsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates an Application Insights web test definition.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApplicationInsights.Management.IWebTestsOperations operations, string resourceGroupName, string webTestName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest webTestDefinition, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApplicationInsights.Management.IWebTestsOperations * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.WebTest>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IWebTestsOperations, resourceGroupName As String, webTestName As String, webTestDefinition As WebTest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of WebTest)

Parameters

operations
IWebTestsOperations

The operations group for this extension method.

resourceGroupName
String

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

webTestName
String

The name of the Application Insights webtest resource.

webTestDefinition
WebTest

Properties that need to be specified to create or update an Application Insights web test definition.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to