azureBilling

module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: Apache-2.0

README

AzureBilling

NOTE: IN AUGUST THIS CODE HAS BEEN REFACTORED INTO MODULES WITH A CLI TO ALLOW FOR ADDITIONAL CAPABILITY TO BE ADDED

PLEASE REVIEW THE RELEASE NOTES BELOW FOR CHANGES

Overview

Please see the relevant readme file

  • Original Azure billfile processing functionality is available in the Billing README

  • Rightsizing for Azure using the billfile: an experimental capability still under development, see Rightsizing Readme

RELEASE NOTES

The repo has been refactored and fitted with a cli to separate the functionality. The following cli commands are possible:

Billfile processing
go run cmd/main.go azure billing -c ./config.json
Rightsizing functionality

NOT CURRENTLY WORKING

NOTE: Rightsizing requires AZURE_AUTH_LOCATION to be configured to an appropriate SPN file with clientid and secret.

go run cmd/main.go azure rightsizing vm -c ./config.json 
Arbitrarily run an az cli command

Useful, and can be used to test scripts used in the rightsizing recommendations.

# e.g. subscriptionID = 05ab872c-fa1a-42e7-9cf1-eafcdes9971d
go run cmd/main.go azure cli -l cli/examples/login.txt -f cli/examples/azureMonitor.txt -s <subscriptionID>

Directories

Path Synopsis
https://medium.com/@skdomino/writing-better-clis-one-snake-at-a-time-d22e50e60056 https://github.com/nanopack/hoarder/blob/master/commands/commands.go
https://medium.com/@skdomino/writing-better-clis-one-snake-at-a-time-d22e50e60056 https://github.com/nanopack/hoarder/blob/master/commands/commands.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL