Comments (11)
Ah that is another nice edge case. Is fixed in v0.18.0
from azure-cost-cli.
Thanks for opening your first issue! Reports like these help improve the project!
from azure-cost-cli.
After testing this on mermaid.live, the problem seems to be the "," floating number in the chart
pie title Cost by service
"Virtual Machines" : 64,839.33
"Azure Databricks" : 24,267.22
"Storage" : 23,995.09
"Azure Synapse Analytics" : 23,315.71
from azure-cost-cli.
Thanks for reporting and spotting the issue. I changed the formatter used there so it outputs a value without the ","
Update to the 0.17.0 release for this fix.
from azure-cost-cli.
I m assuming this fixed the issue for you. If not, feel free to reopen the issue.
from azure-cost-cli.
Hi @mivano,
Thanks for a such quick response. Indeed the above issue was solved, but there is still one image that is not rendered
By Resource Group
pie
title Cost by resource group
"" : 10686.30
"global-a" : 8564.11
"mgmt" : 4565.96
"Others" : 156801.56
It seems there is one resource with an empty name.
I think there is a resource group in my subscription with a naming starting with a dash "-". Do you think this might be the reason why is empty the name in the mermaid chart?
from azure-cost-cli.
Hi @mivano, this has been solved. All the images are now rendered. The only thing is that the resource group that has a name with a dash "-" is now called "unknown", but that is ok since is not the resource group of my interest.
from azure-cost-cli.
Good to see it does render now, but still a bit strange. It is a check for string.IsNullOrWhitespace
, which somehow maps to true here. There is some other explicit mapping happing before, maybe that is causing the issue.
Can you give me the full name of the resource group? At least the structure, if you want to obfuscate the name, that is fine. But something that I can create in my own testing subscription to see if I can reproduce it.
from azure-cost-cli.
Hi @mivano, sure. The name is
This is the one that is missing from the chart and in the table as well
from azure-cost-cli.
I created a resource group with that name, but I do see it fine in the markdown. So I m still unsure why it does not happen with me as well. Not sure if you are able to, but if you can debug and see what RetrieveCostForResources
function in the AzureCostApiRetriever.cs
file does, then you might be able to find out why it does not parse it correctly.
|-rg-global-non-prod|0,00 USD|
from azure-cost-cli.
Hi @mivano I have tried
azure-cost -o json --query "ByResourceGroup[?ResourceGroup == '-rg-global-non-prod']"
and the response is:
[]
I found out that the problem is related to access. I cannot get the cost report from that resource group in the UI. A warning about that could be informative.
The funny thing is that through the API I can get the cost in that resource, but not from the UI
from azure-cost-cli.
Related Issues (20)
- Report "dailyCost" by period. HOT 4
- Exclude when filtering HOT 3
- Monthly issue metrics report
- Unable to use the --from --to option when --timeframe is set to Custom HOT 4
- Deserialization issue when calling dailyCost and output to Json HOT 2
- Show (un)utilized reservations
- Analyse budgets
- Unable to install azure-cost-cli HOT 3
- Question. Can I iterate all subscriptions on a tenant with azure-cost-cli and get a CSV with their consumption? HOT 10
- 401 unauthorized HOT 3
- Savings analysis DevTest/Savings plan/Reservations HOT 6
- Cost by Tag HOT 3
- Monthly issue metrics report HOT 1
- Monthly issue metrics report
- workflow Response status code does not indicate success: 401 (Unauthorized). HOT 7
- Monthly issue metrics report
- Monthly issue metrics report
- Feature request: - -o json should just be json HOT 7
- Response status code does not indicate success: 401 (Unauthorized) HOT 3
- 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.