BillingAccountResource.GetBillingProfileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
- Request Path: /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}
- Operation Id: BillingProfiles_Get
- Default Api Version: 2024-04-01
- Resource: BillingProfileResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingProfileResource>> GetBillingProfileAsync (string billingProfileName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBillingProfileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingProfileResource>>
override this.GetBillingProfileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Billing.BillingProfileResource>>
Public Overridable Function GetBillingProfileAsync (billingProfileName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingProfileResource))
Parameters
- billingProfileName
- String
The ID that uniquely identifies a billing profile.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
billingProfileName
is null.
billingProfileName
is an empty string, and was expected to be non-empty.