Skip to main content

billing_property

Creates, updates, deletes, gets or lists a billing_property resource.

Overview

Namebilling_property
TypeResource
Idazure.billing.billing_property

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
accountAdminNotificationEmailAddressstringNotification email address for legacy account. Available for agreement type Microsoft Online Services Program.
billingAccountAgreementTypestringThe type of agreement. Known values are: "Other", "MicrosoftCustomerAgreement", "EnterpriseAgreement", "MicrosoftOnlineServicesProgram", and "MicrosoftPartnerAgreement". (Other, MicrosoftCustomerAgreement, EnterpriseAgreement, MicrosoftOnlineServicesProgram, MicrosoftPartnerAgreement)
billingAccountDisplayNamestringThe name of the billing account.
billingAccountIdstringThe fully qualified ID that uniquely identifies a billing account.
billingAccountSoldToCountrystringThe country of the individual or organization that is responsible for the billing account.
billingAccountStatusstringThe current status of the billing account. Known values are: "Other", "Active", "UnderReview", "Disabled", "Deleted", "Extended", "Pending", "New", "Expired", "Terminated", and "Transferred". (Other, Active, UnderReview, Disabled, Deleted, Extended, Pending, New, Expired, Terminated, Transferred)
billingAccountStatusReasonCodestringReason for the specified billing account status. Known values are: "Other", "UnusualActivity", "ManuallyTerminated", "Expired", "Transferred", and "TerminateProcessing". (Other, UnusualActivity, ManuallyTerminated, Expired, Transferred, TerminateProcessing)
billingAccountSubTypestringThe tier of the account. Known values are: "Other", "None", "Individual", "Professional", and "Enterprise". (Other, None, Individual, Professional, Enterprise)
billingAccountTypestringThe type of customer. Known values are: "Other", "Enterprise", "Individual", "Partner", "Reseller", "ClassicPartner", "Internal", "Tenant", and "Business". (Other, Enterprise, Individual, Partner, Reseller, ClassicPartner, Internal, Tenant, Business)
billingCurrencystringThe billing currency for the subscription. Available for billing accounts with agreement type Enterprise Agreement.
billingProfileDisplayNamestringThe name of the billing profile.
billingProfileIdstringThe fully qualified ID that uniquely identifies a billing profile.
billingProfilePaymentMethodFamilystringThe payment method family of the primary payment method for the billing profile. Known values are: "Other", "None", "CreditCard", "Credits", "CheckWire", "EWallet", "TaskOrder", and "DirectDebit". (Other, None, CreditCard, Credits, CheckWire, EWallet, TaskOrder, DirectDebit)
billingProfilePaymentMethodTypestringThe payment method type of the primary payment method for the billing profile.
billingProfileSpendingLimitstringThe billing profile spending limit. Known values are: "Off" and "On". (Off, On)
billingProfileSpendingLimitDetailsarrayThe details of billing profile spending limit.
billingProfileStatusstringThe status of the billing profile. Known values are: "Other", "Active", "Disabled", "Warned", "Deleted", and "UnderReview". (Other, Active, Disabled, Warned, Deleted, UnderReview)
billingProfileStatusReasonCodestringReason for the specified billing profile status. Known values are: "Other", "PastDue", "UnusualActivity", "SpendingLimitReached", and "SpendingLimitExpired". (Other, PastDue, UnusualActivity, SpendingLimitReached, SpendingLimitExpired)
billingTenantIdstringThe Azure AD tenant ID of the billing account for the subscription.
costCenterstringThe cost center applied to the subscription. Available for agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. This property can be updated via patch.
customerDisplayNamestringThe name of the customer.
customerIdstringThe fully qualified ID that uniquely identifies a customer.
customerStatusstringIdentifies the status of an customer. This is an upcoming property that will be populated in the future. Known values are: "Other", "Active", "Pending", "Disabled", "Warned", "Deleted", and "UnderReview". (Other, Active, Pending, Disabled, Warned, Deleted, UnderReview)
enrollmentDetailsobjectThe enrollment details for the subscription. Available for billing accounts with agreement type Enterprise Agreement.
invoiceSectionDisplayNamestringThe name of the invoice section.
invoiceSectionIdstringThe fully qualified ID that uniquely identifies an invoice section.
invoiceSectionStatusstringIdentifies the status of an invoice section. Known values are: "Other", "Active", "Deleted", "Disabled", "UnderReview", "Warned", and "Restricted". (Other, Active, Deleted, Disabled, UnderReview, Warned, Restricted)
invoiceSectionStatusReasonCodestringReason for the specified invoice section status. Known values are: "Other", "PastDue", "UnusualActivity", "SpendingLimitReached", and "SpendingLimitExpired". (Other, PastDue, UnusualActivity, SpendingLimitReached, SpendingLimitExpired)
isAccountAdminbooleanIndicates whether user is the account admin.
isTransitionedBillingAccountbooleanSpecifies if the billing account for the subscription is transitioned from a Microsoft Online Service Program to a Microsoft Customer Agreement (MCA) account. Will be present and value will be true if its a transitioned billing account.
productIdstringThe ID that uniquely identifies a product.
productNamestringThe ID that uniquely identifies a product.
skuDescriptionstringThe sku description.
skuIdstringThe ID that uniquely identifies a sku.
subscriptionBillingStatusstringThe subscription status. Known values are: "Other", "Unknown", "Active", "Disabled", "Deleted", "Warned", "Expiring", "Expired", "AutoRenew", "Cancelled", "Suspended", and "Failed". (Other, Unknown, Active, Disabled, Deleted, Warned, Expiring, Expired, AutoRenew, Cancelled, Suspended, Failed)
subscriptionBillingStatusDetailsarrayThe reason codes for the subscription status.
subscriptionBillingTypestringThe type of billing subscription. Known values are: "None", "Benefit", "Free", "Paid", and "PrePaid". (None, Benefit, Free, Paid, PrePaid)
subscriptionServiceUsageAddressobjectThe address of the individual or organization where service subscription is being used. Available for agreement type Microsoft Online Services Program. This property can be updated via patch.
subscriptionWorkloadTypestringThe Azure workload type of the subscription. Known values are: "None", "Production", "DevTest", and "Internal". (None, Production, DevTest, Internal)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscription_idincludeBillingCountry, includeTransitionStatusGets the billing properties for a subscription.
updateupdatesubscription_idUpdates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
subscription_idstring
includeBillingCountrybooleanA flag that specifies whether or not to include billing country. Default value is False.
includeTransitionStatusbooleanA flag that specifies whether or not to include transition status for billing accounts with agreement type Microsoft Customer Agreement. Default value is False.

SELECT examples

Gets the billing properties for a subscription.

SELECT
id,
name,
accountAdminNotificationEmailAddress,
billingAccountAgreementType,
billingAccountDisplayName,
billingAccountId,
billingAccountSoldToCountry,
billingAccountStatus,
billingAccountStatusReasonCode,
billingAccountSubType,
billingAccountType,
billingCurrency,
billingProfileDisplayName,
billingProfileId,
billingProfilePaymentMethodFamily,
billingProfilePaymentMethodType,
billingProfileSpendingLimit,
billingProfileSpendingLimitDetails,
billingProfileStatus,
billingProfileStatusReasonCode,
billingTenantId,
costCenter,
customerDisplayName,
customerId,
customerStatus,
enrollmentDetails,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionStatus,
invoiceSectionStatusReasonCode,
isAccountAdmin,
isTransitionedBillingAccount,
productId,
productName,
skuDescription,
skuId,
subscriptionBillingStatus,
subscriptionBillingStatusDetails,
subscriptionBillingType,
subscriptionServiceUsageAddress,
subscriptionWorkloadType,
systemData,
tags,
type
FROM azure.billing.billing_property
WHERE subscription_id = '{{ subscription_id }}' -- required
AND includeBillingCountry = '{{ includeBillingCountry }}'
AND includeTransitionStatus = '{{ includeTransitionStatus }}'
;

UPDATE examples

Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.

UPDATE azure.billing.billing_property
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
tags,
type;