Skip to content

Instantly share code, notes, and snippets.

Avatar
🏥
I may be slow to respond.

Florian Wagner h2floh

🏥
I may be slow to respond.
  • GitHub Staff
  • Seoul, Korea
View GitHub Profile
@h2floh
h2floh / add_pipelines_environment.sh
Created Aug 30, 2021
Bash script showing how to leverage az login to call Azure DevOps REST endpoints
View add_pipelines_environment.sh
#!/bin/bash
## Demo script to show how to leverage Azure DevOps CLI Extension to call DevOps REST API directly
## without the need for PAT token
# configuration
YOUR_AZURE_DEV_OPS_ORG=''
YOUR_AZURE_DEV_OPS_PROJECT_NAME=''
# Reverse Engineered this part by looking into Azure DevOps CLI Extension
# https://github.com/Azure/azure-devops-cli-extension/blob/8cf32a41126b2b66f130843d4d16de19290052b9/azure-devops/azext_devops/devops_sdk/client.py#L71