Microsoft.Billing (stable:2023-08-01)

2025/10/30 • 7 new, 7 deleted methods

CostAllocationRules_List (new)
Description Get the list of all cost allocation rules for a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules
{
api-version: string ,
billingAccountId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CheckNameAvailability (new)
Description Checks availability and correctness of a name for a cost allocation rule
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/checkNameAvailability
{
api-version: string ,
billingAccountId: string ,
costAllocationRuleCheckNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Get (new)
Description Get a cost allocation rule by rule name and billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CreateOrUpdate (new)
Description Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
costAllocationRule:
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Delete (new)
Description Delete cost allocation rule for billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_Download (new)
Description Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download
{
api-version: string ,
billingAccountName: string ,
billingProfileName: string ,
invoiceName: string ,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
odata-entityid: string ,
}

⚐ Response (200)

{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_DownloadByBillingProfile (new)
Description Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv file to a Zip file containing multiple csv files, each with max 200k records.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download
{
api-version: string ,
billingAccountName: string ,
billingProfileName: string ,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
odata-entityid: string ,
}

⚐ Response (200)

{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_List (removed)
Description Get the list of all cost allocation rules for a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules
{
api-version: string ,
billingAccountId: string ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CheckNameAvailability (removed)
Description Checks availability and correctness of a name for a cost allocation rule
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/checkNameAvailability
{
api-version: string ,
billingAccountId: string ,
costAllocationRuleCheckNameAvailabilityRequest:
{
name: string ,
type: string ,
}
,
}

⚐ Response (200)

{
nameAvailable: boolean ,
reason: enum ,
message: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Get (removed)
Description Get a cost allocation rule by rule name and billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_CreateOrUpdate (removed)
Description Create/Update a rule to allocate cost between different resources within a billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
costAllocationRule:
{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}
,
}

⚐ Response (200)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (201)

{
id: string ,
name: string ,
type: string ,
properties:
{
description: string ,
details:
{
sourceResources:
[
string ,
]
,
targetResources:
[
string ,
]
,
}
,
status: enum ,
createdDate: string ,
updatedDate: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CostAllocationRules_Delete (removed)
Description Delete cost allocation rule for billing account or enterprise enrollment.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/costAllocationRules/{ruleName}
{
api-version: string ,
billingAccountId: string ,
ruleName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_Download (removed)
Description Gets a URL to download the pricesheet for an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download
{
api-version: string ,
billingAccountName: string ,
billingProfileName: string ,
invoiceName: string ,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
odata-entityid: string ,
}

⚐ Response (200)

{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
PriceSheet_DownloadByBillingProfile (removed)
Description Gets a URL to download the current month's pricesheet for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview version will be updated from a single csv file to a Zip file containing multiple csv files, each with max 200k records.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download
{
api-version: string ,
billingAccountName: string ,
billingProfileName: string ,
}

⚐ Response (202)

{
location: string ,
retry-after: string ,
odata-entityid: string ,
}

⚐ Response (200)

{
expiryTime: string ,
validTill: string ,
downloadUrl: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}