ConsumptionBudgetResource.UpdateAsync 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.
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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Consumption.ConsumptionBudgetResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Consumption.ConsumptionBudgetData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Consumption.ConsumptionBudgetData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Consumption.ConsumptionBudgetResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.Consumption.ConsumptionBudgetData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Consumption.ConsumptionBudgetResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As ConsumptionBudgetData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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.
Parameters supplied to the Create Budget operation.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
data
is null.