UsagePlanCollection.CreateOrUpdateAsync Method

Definition

Create a UsagePlan

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureResilienceManagement/usagePlans/{usagePlanName}.
  • Operation Id. : UsagePlans_CreateOrUpdate.
  • Default Api Version. : 2026-04-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ResilienceManagement.UsagePlanResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string usagePlanName, Azure.ResourceManager.ResilienceManagement.UsagePlanData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ResilienceManagement.UsagePlanData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ResilienceManagement.UsagePlanResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ResilienceManagement.UsagePlanData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ResilienceManagement.UsagePlanResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, usagePlanName As String, data As UsagePlanData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of UsagePlanResource))

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.

usagePlanName
String

The name of the usage plan.

data
UsagePlanData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

usagePlanName or data is null.

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

Applies to