Billing Property - Get
Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default?api-version=2020-05-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
subscription
|
path | True |
string |
The ID that uniquely identifies an Azure subscription. |
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2020-05-01. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. The request has succeeded. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
BillingProperty
Sample Request
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default?api-version=2020-05-01
Sample Response
{
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingProperty/default",
"name": "default",
"type": "Microsoft.Billing/billingProperty",
"properties": {
"accountAdminNotificationEmailAddress": "test@contoso.com",
"billingTenantId": "90000000-0000-0000-0000-000000000011",
"billingAccountId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000",
"billingAccountDisplayName": "My Account",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso operations billing",
"billingProfileStatus": "Warned",
"billingProfileStatusReasonCode": "PastDue",
"billingProfileSpendingLimit": "On",
"costCenter": "1010",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000",
"invoiceSectionDisplayName": "Contoso operations invoice section",
"isAccountAdmin": true,
"productId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000_00000000-0000-0000-0000-000000000000/invoiceSections/22000000-0000-0000-0000-000000000000/products/44000000-0000-0000-0000-000000000000",
"productName": "Standard Dev",
"skuId": "0001",
"skuDescription": "Microsoft Azure Plan for DevTest"
}
}
Definitions
Name | Description |
---|---|
Billing |
The billing profile spending limit. |
Billing |
The status of the billing profile. |
Billing |
Reason for the specified billing profile status. |
Billing |
A billing property. |
Error |
The details of the error. |
Error |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. |
Error |
BillingProfileSpendingLimit
The billing profile spending limit.
Name | Type | Description |
---|---|---|
Off |
string |
|
On |
string |
BillingProfileStatus
The status of the billing profile.
Name | Type | Description |
---|---|---|
Active |
string |
|
Disabled |
string |
|
Warned |
string |
BillingProfileStatusReasonCode
Reason for the specified billing profile status.
Name | Type | Description |
---|---|---|
PastDue |
string |
|
SpendingLimitExpired |
string |
|
SpendingLimitReached |
string |
BillingProperty
A billing property.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id. |
name |
string |
Resource name. |
properties.accountAdminNotificationEmailAddress |
string |
The email address on which the account admin gets all Azure notifications. |
properties.billingAccountDisplayName |
string |
The name of the billing account to which the subscription is billed. |
properties.billingAccountId |
string |
The ID of the billing account to which the subscription is billed. |
properties.billingProfileDisplayName |
string |
The name of the billing profile to which the subscription is billed. |
properties.billingProfileId |
string |
The ID of the billing profile to which the subscription is billed. |
properties.billingProfileSpendingLimit |
The billing profile spending limit. |
|
properties.billingProfileStatus |
The status of the billing profile. |
|
properties.billingProfileStatusReasonCode |
Reason for the specified billing profile status. |
|
properties.billingTenantId |
string |
The Azure AD tenant ID of the billing account for the subscription. |
properties.costCenter |
string |
The cost center applied to the subscription. |
properties.invoiceSectionDisplayName |
string |
The name of the invoice section to which the subscription is billed. |
properties.invoiceSectionId |
string |
The ID of the invoice section to which the subscription is billed. |
properties.isAccountAdmin |
boolean |
Indicates whether user is the account admin. |
properties.productId |
string |
The product ID of the Azure plan. |
properties.productName |
string |
The product name of the Azure plan. |
properties.skuDescription |
string |
The sku description of the Azure plan for the subscription. |
properties.skuId |
string |
The sku ID of the Azure plan for the subscription. |
type |
string |
Resource type. |
ErrorDetails
The details of the error.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
details |
The sub details of the error. |
|
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |
ErrorResponse
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
Name | Type | Description |
---|---|---|
error |
The details of the error. |
ErrorSubDetails
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |