Condividi tramite


MaccCollection.CreateOrUpdateAsync Method

Definition

Create MACC.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BillingBenefits/maccs/{maccName}.
  • Operation Id. : Maccs_Create.
  • Default Api Version. : 2025-12-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.BillingBenefits.MaccResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string maccName, Azure.ResourceManager.BillingBenefits.MaccData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.BillingBenefits.MaccData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.BillingBenefits.MaccResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.BillingBenefits.MaccData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.BillingBenefits.MaccResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, maccName As String, data As MaccData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MaccResource))

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.

maccName
String

Name of primary MACC.

data
MaccData

Request body for creating MACC.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

maccName or data is null.

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

Applies to