BillingProfiles interface

Interface representing a BillingProfiles.

Methods

beginCreateOrUpdate(string, string, BillingProfile, BillingProfilesCreateOrUpdateOptionalParams)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

beginCreateOrUpdateAndWait(string, string, BillingProfile, BillingProfilesCreateOrUpdateOptionalParams)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

beginDelete(string, string, BillingProfilesDeleteOptionalParams)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

beginDeleteAndWait(string, string, BillingProfilesDeleteOptionalParams)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

get(string, string, BillingProfilesGetOptionalParams)

Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

listByBillingAccount(string, BillingProfilesListByBillingAccountOptionalParams)

Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.

validateDeleteEligibility(string, string, BillingProfilesValidateDeleteEligibilityOptionalParams)

Validates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Method Details

beginCreateOrUpdate(string, string, BillingProfile, BillingProfilesCreateOrUpdateOptionalParams)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

function beginCreateOrUpdate(billingAccountName: string, billingProfileName: string, parameters: BillingProfile, options?: BillingProfilesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<BillingProfile>, BillingProfile>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

parameters
BillingProfile

A billing profile.

options
BillingProfilesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingProfile>, BillingProfile>>

beginCreateOrUpdateAndWait(string, string, BillingProfile, BillingProfilesCreateOrUpdateOptionalParams)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

function beginCreateOrUpdateAndWait(billingAccountName: string, billingProfileName: string, parameters: BillingProfile, options?: BillingProfilesCreateOrUpdateOptionalParams): Promise<BillingProfile>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

parameters
BillingProfile

A billing profile.

options
BillingProfilesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<BillingProfile>

beginDelete(string, string, BillingProfilesDeleteOptionalParams)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

function beginDelete(billingAccountName: string, billingProfileName: string, options?: BillingProfilesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<BillingProfilesDeleteHeaders>, BillingProfilesDeleteHeaders>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

options
BillingProfilesDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingProfilesDeleteHeaders>, BillingProfilesDeleteHeaders>>

beginDeleteAndWait(string, string, BillingProfilesDeleteOptionalParams)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

function beginDeleteAndWait(billingAccountName: string, billingProfileName: string, options?: BillingProfilesDeleteOptionalParams): Promise<BillingProfilesDeleteHeaders>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

options
BillingProfilesDeleteOptionalParams

The options parameters.

Returns

get(string, string, BillingProfilesGetOptionalParams)

Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

function get(billingAccountName: string, billingProfileName: string, options?: BillingProfilesGetOptionalParams): Promise<BillingProfile>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

options
BillingProfilesGetOptionalParams

The options parameters.

Returns

Promise<BillingProfile>

listByBillingAccount(string, BillingProfilesListByBillingAccountOptionalParams)

Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.

function listByBillingAccount(billingAccountName: string, options?: BillingProfilesListByBillingAccountOptionalParams): PagedAsyncIterableIterator<BillingProfile, BillingProfile[], PageSettings>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

options
BillingProfilesListByBillingAccountOptionalParams

The options parameters.

Returns

validateDeleteEligibility(string, string, BillingProfilesValidateDeleteEligibilityOptionalParams)

Validates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

function validateDeleteEligibility(billingAccountName: string, billingProfileName: string, options?: BillingProfilesValidateDeleteEligibilityOptionalParams): Promise<DeleteBillingProfileEligibilityResult>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

Returns