BillingFunctions

Functions

Link copied to clipboard

Gets an associated tenant by ID. Uses Azure REST API version 2024-04-01.

suspend fun getAssociatedTenant(associatedTenantName: String, billingAccountName: String): GetAssociatedTenantResult
Link copied to clipboard

Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. Uses Azure REST API version 2024-04-01.

suspend fun getBillingProfile(billingAccountName: String, billingProfileName: String): GetBillingProfileResult
Link copied to clipboard

Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement. Uses Azure REST API version 2019-10-01-preview. Other available API versions: 2024-04-01.

Link copied to clipboard

Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement. Uses Azure REST API version 2019-10-01-preview. Other available API versions: 2024-04-01.

suspend fun getBillingRoleAssignmentByDepartment(billingAccountName: String, billingRoleAssignmentName: String, departmentName: String): GetBillingRoleAssignmentByDepartmentResult

Gets a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement. Uses Azure REST API version 2019-10-01-preview. Other available API versions: 2024-04-01.

suspend fun getBillingRoleAssignmentByEnrollmentAccount(billingAccountName: String, billingRoleAssignmentName: String, enrollmentAccountName: String): GetBillingRoleAssignmentByEnrollmentAccountResult
Link copied to clipboard

Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Uses Azure REST API version 2024-04-01.

suspend fun getInvoiceSection(billingAccountName: String, billingProfileName: String, invoiceSectionName: String): GetInvoiceSectionResult

Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Uses Azure REST API version 2020-05-01. Other available API versions: 2019-10-01-preview, 2024-04-01.