GithubHelp home page GithubHelp logo

Comments (11)

mivano avatar mivano commented on May 26, 2024 1

Ah that is another nice edge case. Is fixed in v0.18.0

from azure-cost-cli.

welcome avatar welcome commented on May 26, 2024

Thanks for opening your first issue! Reports like these help improve the project!

from azure-cost-cli.

dtcMLOps avatar dtcMLOps commented on May 26, 2024

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.

mivano avatar mivano commented on May 26, 2024

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.

mivano avatar mivano commented on May 26, 2024

I m assuming this fixed the issue for you. If not, feel free to reopen the issue.

from azure-cost-cli.

dtcMLOps avatar dtcMLOps commented on May 26, 2024

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.

dtcMLOps avatar dtcMLOps commented on May 26, 2024

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.

Screenshot from 2023-05-22 06-02-03

from azure-cost-cli.

mivano avatar mivano commented on May 26, 2024

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.

dtcMLOps avatar dtcMLOps commented on May 26, 2024

Hi @mivano, sure. The name is

Screenshot from 2023-05-22 17-38-24

This is the one that is missing from the chart and in the table as well
Screenshot from 2023-05-22 17-39-19

from azure-cost-cli.

mivano avatar mivano commented on May 26, 2024

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.

dtcMLOps avatar dtcMLOps commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.