Share via


PoliciesOperationsExtensions.GetByBillingProfileAsync Method

Definition

Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. https://docs.microsoft.com/en-us/rest/api/billing/

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

Parameters

operations
IPoliciesOperations

The operations group for this extension method.

billingAccountName
String

The ID that uniquely identifies a billing account.

billingProfileName
String

The ID that uniquely identifies a billing profile.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to