Giter Site home page Giter Site logo

devopscli's Introduction

DevOpsCLI ๐Ÿ’ป

Follow these steps to get to automating Azure DevOps

Generate a new token

  1. Go to Azure DevOps and click user settings icon next to personal icon in top right
  2. Click on the "Personal Access Tokens" option

a

  1. Click "New Token" and match the options (Adjust date as necessary)

b

  1. Copy the token as instructed and save it somewhere locally

Install Azure CLI

  1. Download Azure CLI installer from this link
  2. Run downloaded file and install as admin
  3. Open powershell and execute az to verify install
  4. Login to Azure DevOps CLI and install the necessary extension
    • az devops login
    • Y
  5. Paste the new token with the right mouse button, then click enter
    • In the case of an error - try closing the shell and starting again from #3
  6. Set the organization
    • az devops configure -d organization=https://dev.azure.com/<myorg>/
  7. Test showing info for an example work-item
    • az boards work-item show --id 27856
  8. If a long return string is printed, then Azure CLI is all set up!

Automation ๐Ÿš€

This Repo

cli

  • Download and use the included .exe for the automation available currently in this repo
    • Right now, all it does is create hardcoded child tasks for a user determined work item
    • If an exception occurs and the program exits, it is likely that the earlier steps were not completed or not enough time has elapsed since the creation of the work item ID
  • Clone the repo and tinker as needed with the aid of the Azure CLI docs online

PowerShell โค

All Windows 10 computers have PowerShell and PowerShell ISE

  • Also, all operating systems can install PowerShell
  • The same operations performed by the .exe in this repo can be performed and tinkered with using this powershell script
    • GitHub files can be saved by right clicking the "Raw" button in the top right of the file then clicking "Save link as..."
    • Save that file locally, right click it, then click "Run with PowerShell" and enter the User Story ID when prompted
    • Or, open that file in PowerShell ISE to tinker with it (I recommend making this the deafult app for opening .ps1 files)
    • If an exception occurs, the permissions likely are not set - just execute this command in PowerShell
      • Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    • The online docs for PowerShell and the Azure CLI are very good

devopscli's People

Contributors

bradmartin333 avatar

Watchers

 avatar

devopscli's Issues

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.