Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to render AzureCloud information #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eblis
Copy link

@eblis eblis commented Jul 24, 2024

This is my crude way of adding support for AzureCloud information.
It's parsing the JSON manually, it's forcing the name of the cloud as the text and various other problems, but works enough for me for now.

The code also has an example JSON file, in case a better way to parse the JSON is implemented in the final version.

It calls az account show to get the information about the cloud instance. If not logged in it will report an error and exit with exit code 1.
If logged in it will give a JSON (by default, format can be changed but I didn't bother) with various information about the environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant