Skip to content

Instantly share code, notes, and snippets.

@jonas1307
Last active October 30, 2024 18:56
Show Gist options
  • Select an option

  • Save jonas1307/6abee59e6b68d2a498e2b78bd119c7d9 to your computer and use it in GitHub Desktop.

Select an option

Save jonas1307/6abee59e6b68d2a498e2b78bd119c7d9 to your computer and use it in GitHub Desktop.
Config AzureDevOps CLI locally

Steps

  • Install Azure CLI on https://learn.microsoft.com/pt-br/cli/azure/install-azure-cli-windows?tabs=azure-cli
  • Add Azure DevOps Extension:
    az extension add --name azure-devops
    
  • Configure organization using:
    az devops configure --defaults organization=https://dev.azure.com/YourOrganization
    or
    az devops configure --defaults organization=https://YourOrganization.visualstudio.com
    
  • Create a Personal Access Token on Azure DevOps Portal
  • Grant full permissions to Work Items, Builds and Releases
  • Use command az devops login and paste the created token

Common commands


az boards work-item show --id 92844
az boards work-item update --id 92844 --state "Done"

az boards work-item relation add --id
                                 --relation-type
                                 [--target-id]

az boards work-item create --title
                           --type
                           [--assigned-to]
                           [--fields]

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment