Giter Club home page Giter Club logo

Comments (8)

Fryguy avatar Fryguy commented on July 21, 2024

Not sure - I don't really use the library or the azure API. Perhaps @djberg96 knows?

from azure-armrest.

djberg96 avatar djberg96 commented on July 21, 2024

I'm afraid I don't know, sorry.

from azure-armrest.

kTipSSIoYv avatar kTipSSIoYv commented on July 21, 2024

@Fryguy @agrare Ruby doc shows that we can use azure_mgmt_consumption.

But I can't install that on the docker container. I get error. Is this already included or is there a way to install these?

I'm not sure why I can't install these. I could install aws-sdk fine on the container without issues.

sh-4.4# gem install azure_mgmt_consumption
Building native extensions. This could take a while...
ERROR:  Error installing azure_mgmt_consumption:
        ERROR: Failed to build gem native extension.

    current directory: /usr/local/share/gems/gems/unf_ext-0.0.8.2/ext/unf_ext
/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20220823-31870-17iu7iu.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /usr/local/share/gems/gems/unf_ext-0.0.8.2 for inspection.
Results logged to /usr/local/lib64/gems/ruby/unf_ext-0.0.8.2/gem_make.out


from azure-armrest.

Fryguy avatar Fryguy commented on July 21, 2024

Looks like azure_mgmt_consumption is a C extensions, and we don't have the C headers in the docker image (we do that at build time).

from azure-armrest.

djberg96 avatar djberg96 commented on July 21, 2024

Weird that it's a C extension. Looks like y'all need to wrap their consumption REST API: https://docs.microsoft.com/en-us/rest/api/consumption/

Though that only works for enterprise accounts I think.

from azure-armrest.

Fryguy avatar Fryguy commented on July 21, 2024

I think that's the one that @kTipSSIoYv is suggesting (that article points to https://rubygems.org/gems/azure_mgmt_consumption)

from azure-armrest.

agrare avatar agrare commented on July 21, 2024

It is important to note that the azure_mgmt_* gems are deprecated and are not being updated so if we want to use consumption data I think we should hit the rest api directly as @djberg96 mentioned rather than trying to use azure_mgmt_consumption

from azure-armrest.

miq-bot avatar miq-bot commented on July 21, 2024

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

from azure-armrest.

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.