azure-cli-extensions: costmanagement : Invalid definition type 'AmortizedCost'; valid values: 'Usage'.
Extension name
costmanagement
$ az version
{
"azure-cli": "2.8.0",
"azure-cli-command-modules-nspkg": "2.0.3",
"azure-cli-core": "2.8.0",
"azure-cli-nspkg": "3.0.4",
"azure-cli-telemetry": "1.0.4",
"extensions": {
"costmanagement": "0.1.0"
}
}
Description of issue (in as much detail as possible)
I am running following command to create export job for AmortizedCost
.
az costmanagement export create --name "exportTest" --type "AmortizedCost" --timeframe "WeekToDate" --storage-container="export" --storage-account-id="/subscriptions/XXXX/resourceGroups/XXXXX/providers/Microsoft.Storage/storageAccounts/XXXX" --storage-directory="test" --scope "/subscriptions/XXXX/"
But I am getting following error
cli.azure.cli.core.util : (400) Request properties validation failed: Invalid definition type 'AmortizedCost'; valid values: 'Usage'.
(Request ID: 389bfa8d-033c-44a8-8a46-00f99a98a1fa)
(400) Request properties validation failed: Invalid definition type 'AmortizedCost'; valid values: 'Usage'.
(Request ID: 389bfa8d-033c-44a8-8a46-00f99a98a1fa)
Can someone help here, please?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 26 (4 by maintainers)
I still have the same issue when using Terraform automate creating cost report export. Does anyone know any workaround for this one?
Same issue when using az costmanagement cli (version 0.2.1)
@fl-max service team should look into this.