getBudget

Gets the budget for the scope by budget name. Uses Azure REST API version 2024-08-01. Other available API versions: 2019-04-01-preview, 2023-04-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native costmanagement [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Return

A budget resource.

Parameters

argument

null


suspend fun getBudget(budgetName: String, scope: String): GetBudgetResult

Return

A budget resource.

Parameters

budgetName

Budget Name.

scope

The scope associated with budget operations. Supported scopes for CategoryType: Cost Azure RBAC Scopes:

  • '/subscriptions/{subscriptionId}/' for subscription scope

  • '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope

  • '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope EA (Enterprise Agreement) Scopes:

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope MCA (Modern Customer Agreement) Scopes:

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' for customer scope (CSP only) Supported scopes for CategoryType: ReservationUtilization EA (Enterprise Agreement) Scopes:

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account Scope MCA (Modern Customer Agreement) Scopes:

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope (non-CSP only)

  • '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' for customer scope (CSP only)

See also


suspend fun getBudget(argument: suspend GetBudgetPlainArgsBuilder.() -> Unit): GetBudgetResult

Return

A budget resource.

Parameters

argument

Builder for com.pulumi.azurenative.costmanagement.kotlin.inputs.GetBudgetPlainArgs.

See also