WebTestCollection.CreateOrUpdate 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.
Creates or updates an Application Insights web test definition.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}
- Operation Id: WebTests_CreateOrUpdate
- Default Api Version: 2022-06-15
- Resource: WebTestResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.WebTestResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string webTestName, Azure.ResourceManager.ApplicationInsights.WebTestData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApplicationInsights.WebTestData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.WebTestResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ApplicationInsights.WebTestData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApplicationInsights.WebTestResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, webTestName As String, data As WebTestData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of WebTestResource)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- webTestName
- String
The name of the Application Insights WebTest resource.
- data
- WebTestData
Properties that need to be specified to create or update an Application Insights web test definition.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
webTestName
is an empty string, and was expected to be non-empty.
webTestName
or data
is null.
Applies to
Azure SDK for .NET