steampipe-plugin-azuredevops

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

image

Azure DevOps Plugin for Steampipe

Use SQL to query projects, groups, builds and more from Azure DevOps.

Quick start

Download and install the latest Azure DevOps plugin:

steampipe plugin install azuredevops

Configure your credentials and config file.

Configure the Organization URL and Personal Access Token in ~/.steampipe/config/azuredevops.spc:

connection "azuredevops" {
  plugin = "azuredevops"
  # Authentication information
  organization_url = "https://dev.azure.com/test"
  personal_access_token = "wf3hahidy7i7fkzmeqr3e6fbjwuspabpo766grp7hl4o65v2"
}

Or through environment variables:

export AZDO_ORG_SERVICE_URL=https://dev.azure.com/test
export AZDO_PERSONAL_ACCESS_TOKEN=wf3hahidy7i7fkzmeqr3e6fbjwuspabpo766grp7hl4o65v2

Run steampipe:

steampipe query

List your Azure DevOps projects:

select
  id,
  name,
  state,
  visibility
from
  azuredevops_project;
+--------------------------------------+-----------------+------------+------------+
| id                                   | name            | state      | visibility |
+--------------------------------------+-----------------+------------+------------+
| bdcdf70b-7757-4253-b36c-33c08ca07dbb | test-1          | wellFormed | private    |
| 9a1f26ce-c715-4ef4-b557-503fdb6be55a | private_project | wellFormed | private    |
+--------------------------------------+-----------------+------------+------------+

Developing

Prerequisites:

Clone:

git clone https://github.com/turbot/steampipe-plugin-azuredevops.git
cd steampipe-plugin-azuredevops

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/azuredevops.spc

Try it!

steampipe query
> .inspect azuredevops

Further reading:

Contributing

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

help wanted issues:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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