Share via


ConsumptionBudgetResource.Update Method

Definition

The operation to create or update a budget. You can optionally provide an eTag if desired as a form of concurrency control. To obtain the latest eTag for a given budget, perform a get operation prior to your put operation.

  • Request Path: /{scope}/providers/Microsoft.Consumption/budgets/{budgetName}
  • Operation Id: Budgets_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Consumption.ConsumptionBudgetResource> Update (Azure.WaitUntil waitUntil, Azure.ResourceManager.Consumption.ConsumptionBudgetData data, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.WaitUntil * Azure.ResourceManager.Consumption.ConsumptionBudgetData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Consumption.ConsumptionBudgetResource>
override this.Update : Azure.WaitUntil * Azure.ResourceManager.Consumption.ConsumptionBudgetData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Consumption.ConsumptionBudgetResource>
Public Overridable Function Update (waitUntil As WaitUntil, data As ConsumptionBudgetData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ConsumptionBudgetResource)

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.

data
ConsumptionBudgetData

Parameters supplied to the Create Budget operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to