BudgetResource.GetAsync(CancellationToken) Method

Definition

Gets the budget for the scope by budget name.

  • Request Path. : /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName}.
  • Operation Id. : Budgets_Get.
  • Default Api Version. : 2025-03-01.
  • Resource. : BudgetResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.BudgetResource>> GetAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.BudgetResource>>
override this.GetAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CostManagement.BudgetResource>>
Public Overridable Function GetAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BudgetResource))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to