Comments (10)
There is some nasty rate limiting. It should however handle that, but I did notice that sometimes I get a different header with a retry after value. I will have a look at that.
from azure-cost-cli.
Thanks, some more work to do I see with the policy. I can fine-tune the timeout, but the 404 is strange.
from azure-cost-cli.
Thanks for opening your first issue! Reports like these help improve the project!
from azure-cost-cli.
Have a look at this: #41
does this solve your question?
from azure-cost-cli.
That's exactly the loop I was searching for...only a point to solve. I modified it to get the AccumulatedCosts , and got a nice CSV, but the CSV file does not includes the suscription ID or name, so I cannot differentiate rows.
For each one, I have one line per day, such this:
Date,Cost,CostUsd,Currency
5/1/2023,0.79816372434144,0.864491129834212,EUR
5/2/2023,0.79816332016544,0.864490692071186,EUR
5/3/2023,0.79816355536544,0.864490946816306,EUR
How can I extend the output to include suscription info?
from azure-cost-cli.
As you know for what subscription you call the tool, you can either output the data to a {subscriptionid}.csv and then process it further.
alternatively, parse the payload (json or csv) in powershell/bash and output a new structure to your liking.
another option is to use the costByResource command. This one has the resourceid which contains the subscription id, resourcegroup and resource name.
from azure-cost-cli.
Thanks! I got now the info in the CSV, need to improve the format but it's on the way.
For some subscriptions I've got this
Error: Response status code does not indicate success: 429 (Too Many Requests).
Expected? Inside the same tenant where others are shown properly.
from azure-cost-cli.
Version 0.28 contains some better retry logic. Hope that helps.
from azure-cost-cli.
Thanks! I got today's version and shows much more info, while stills showing some error codes:
Error: Response status code does not indicate success: 404 (Not Found).
Error: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
from azure-cost-cli.
I added some additional handling in 0.28. Hope that helps
from azure-cost-cli.
Related Issues (20)
- Report "dailyCost" by period. HOT 4
- Exclude when filtering HOT 3
- Monthly issue metrics report
- Accessing Government Cloud (High) HOT 15
- timeframe TheLastMonth error HOT 5
- Error when running the command azure-cost dailyCosts -b locally HOT 1
- .net framework 6.0 ? HOT 11
- Monthly issue metrics report
- incorrect value for accumulatedCost report Last 30 days: HOT 3
- incorrect time span for accumulatedCost report last 7 days cost includes 8 days in range HOT 5
- Monthly issue metrics report
- getting 400 error HOT 3
- The grain Hourly not works HOT 3
- Piping the output to a file hides actual errors HOT 3
- Monthly issue metrics report
- Bug - Missing subscription ID. Please specify a subscription ID or login to Azure CLI HOT 2
- Rate limiting not using latest rate-limiting http headers
- Federated credentials HOT 5
- zsh: command not found: azure-cost HOT 2
- Monthly issue metrics report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-cost-cli.