getBudget

Gets the budget for the scope by budget name. Uses Azure REST API version 2024-08-01. Other available API versions: 2023-05-01, 2023-11-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native consumption [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. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/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, '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope.

See also


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

Return

A budget resource.

Parameters

argument

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

See also