Share via


BillingRoleAssignmentsOperationsExtensions.GetByBillingAccountAsync Method

Definition

Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. https://docs.microsoft.com/en-us/rest/api/billing/

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.BillingRoleAssignment> GetByBillingAccountAsync (this Microsoft.Azure.Management.Billing.IBillingRoleAssignmentsOperations operations, string billingAccountName, string billingRoleAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetByBillingAccountAsync : Microsoft.Azure.Management.Billing.IBillingRoleAssignmentsOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Billing.Models.BillingRoleAssignment>
<Extension()>
Public Function GetByBillingAccountAsync (operations As IBillingRoleAssignmentsOperations, billingAccountName As String, billingRoleAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BillingRoleAssignment)

Parameters

operations
IBillingRoleAssignmentsOperations

The operations group for this extension method.

billingAccountName
String

The ID that uniquely identifies a billing account.

billingRoleAssignmentName
String

The ID that uniquely identifies a role assignment.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to