Azure / Azure/azure-cli

costmanagement InstanceID and PreTaxCost - invalid datasets

Open
#24,094 2 comments 0 reactions 1 assignee Claimed by @jsntcy View on GitHub
Azure CLI Team bug Cost Management customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

[Enter feedback here]
the cli commands:
`az costmanagement export create --name "TestExportCLI" --type "Usage" --dataset-configuration columns="Date" columns="MeterId" columns="ResourceLocation"...`
are returning error saying that columns InstanceID and PreTaxCost are invalid datasets,

Removing that columns from command seems to fix the issue. this is full message I got:

`Code: 400
Message: Request properties validation failed: Invalid dataset configuration columns: 'InstanceId','PreTaxCost'; valid values: 'InvoiceSectionName','AccountName','AccountOwnerId','SubscriptionId','SubscriptionName','ResourceGroup','ResourceLocation','Date','ProductName','MeterCategory','MeterSubcategory','MeterId','MeterName','MeterRegion','UnitOfMeasure','Quantity','EffectivePrice','CostInBillingCurrency','CostCenter','ConsumedService','ResourceId','Tags','OfferId','AdditionalInfo','ServiceInfo1','ServiceInfo2','ResourceName','ReservationId','ReservationName','UnitPrice','ProductOrderId','ProductOrderName','Term','PublisherType','PublisherName','ChargeType','Frequency','PricingModel','AvailabilityZone','BillingAccountId','BillingAccountName','BillingCurrencyCode','BillingPeriodStartDate','BillingPeriodEndDate','BillingProfileId','BillingProfileName','InvoiceSectionId','IsAzureCreditEligible','PartNumber','PayGPrice','PlanName','ServiceFamily'.`

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: d0fd108c-984e-6ebd-f94f-572933a4cfdf
* Version Independent ID: 8ca7ca81-bdf8-656a-70d1-5aad734c51e4
* Content: [az costmanagement export](https://learn.microsoft.com/en-us/cli/azure/costmanagement/export?view=azure-cli-latest#az-costmanagement-export-create)
* Content Source: [latest/docs-ref-autogen/costmanagement/export.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/costmanagement/export.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.