question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BadRequest running azure-cost show

See original GitHub issue

Reproduction steps:

  1. az login
  2. az account set -s [subscriptionId]
  3. azure-cost show -s [subscriptionId] --debug

I receive:

Response status code is BadRequest and got payload size of 905
Response content: {"error":{"code":"BadRequest","message":"Invalid query definition: Invalid dataset grouping: 'BillingPeriod'; valid values:
'ResourceGroup','ResourceGroupName','ResourceType','ResourceId','ResourceLocation','SubscriptionId','SubscriptionName','MeterCategory','MeterSubcategory','Meter
','ServiceFamily','UnitOfMeasure','PartNumber','BillingAccountName','BillingProfileId','BillingProfileName','InvoiceSection','InvoiceSectionId','InvoiceSectionN
ame','Product','ResourceGuid','ChargeType','ServiceName','ProductOrderId','ProductOrderName','PublisherType','ReservationId','ReservationName','Frequency','Invo
iceId','PricingModel','CostAllocationRuleName','MarkupRuleName','BillingMonth','Provider','BenefitId','BenefitName','CustomerTenantId','CustomerTenantDomainName
','ResellerMPNId','PartnerEarnedCreditApplied','CustomerName','PartnerName',''.\r\n\r\n (Request ID: 3075b6e8-3c39-4607-8823-b42d43bd3226)"}}
Error: Response status code does not indicate success: 400 (Bad Request).

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Reactions:2
  • Comments:24 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Ravian18commented, Apr 18, 2023

It works for me now

1reaction
mivanocommented, Apr 17, 2023

Thanks for the details @daesk !

Would you be able to test this with version 0.9 ? I hope I found the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting error "{"code":"BadRequest","message":null,"target":"
I have 3 data factories, dev/uat/prod. I develop something on DEV, then use Azure devops to run through and release the ARM templates...
Read more >
Get-AzReservationCatalog fails with 'BadRequest', debug ...
The debug output shows error code SubscriptionNotRegistered, message "Subscription is still pending registration or not registered.".
Read more >
ADF V2: Pipeline Debugging Error "code":"BadRequest ...
1. If you had changed the destination table to be in another schema. Revisit and select "Auto-generate" to update the value with the...
Read more >
ADF: Error trying to debug pipeline: BadRequest
I made a mistake recently when I was creating an ADF pipeline, annoyingly I made loads of changes and then clicked the debug...
Read more >
Azure cost cli - retrieve cost overviews from the command line
I m using the cost query and forecast api to do a direct call in order not to block. You can also request...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found