Skip to content

asheniam/armclient

Repository files navigation

armclient

Azure Resource Manager client in Go

Usage: armclient [<flags>]  [<args> ...]

Flags:
  --help   Show context-sensitive help (also try --help-long and --help-man).
  --config.file="sample-azure.yml"
           Azure configuration file
  --debug  Debug flag

Commands:
  help [<command>...]
    Show help.

  get <url>
    Perform GET <url> against Azure Resource Manager API

  resources [<maxcontinuation>]
    Print out the Azure resources that exist on this subscription

  grafana <title> <dataSource> <resourcetype> [<maxdashboardresource>] [<maxcontinuation>]
    Generate Grafana dashboard JSON files for given Azure resource type

To use armclient, you must first create a service principal which has Reader permission to access your Azure subscription. https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal

Example: sample-azure.yml

credentials:
  environment: public
  subscription_id: <subscriptionId>
  client_id: <clientId>
  client_secret: <clientSecret>
  tenant_id: <tenantId>

armclient will pull Grafana dashboard templates from the following repository.

https://github.com/asheniam/azure-grafana-dashboard-templates

Releases

No releases published

Packages

No packages published

Languages