MaxMonthlyVirtualUserHoursResource.SetAsync Method

Definition

Set the limit of max monthly virtual user hours for the load testing resource.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/limits/maxMonthlyVirtualUserHours/set.
  • Operation Id. : LoadTestsMaxMonthlyVirtualUserHoursLimitsResource_Set.
  • Default Api Version. : 2024-12-01-preview.
  • Resource. : MaxMonthlyVirtualUserHoursResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.MaxMonthlyVirtualUserHoursResource>> SetAsync(Azure.ResourceManager.LoadTesting.Models.MaxMonthlyVirtualUserHoursLimitContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member SetAsync : Azure.ResourceManager.LoadTesting.Models.MaxMonthlyVirtualUserHoursLimitContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.MaxMonthlyVirtualUserHoursResource>>
override this.SetAsync : Azure.ResourceManager.LoadTesting.Models.MaxMonthlyVirtualUserHoursLimitContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.LoadTesting.MaxMonthlyVirtualUserHoursResource>>
Public Overridable Function SetAsync (content As MaxMonthlyVirtualUserHoursLimitContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaxMonthlyVirtualUserHoursResource))

Parameters

content
MaxMonthlyVirtualUserHoursLimitContent

The content of the action request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to