-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAzure_DevOps_Notes.txt
More file actions
50 lines (44 loc) · 1.78 KB
/
Azure_DevOps_Notes.txt
File metadata and controls
50 lines (44 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
------------------
Azure DevOps Notes
------------------
Install
-------
brew info azure-cli
brew install azure-cli
Login/Configure
---------
az login
az devops configure --defaults organization=https://dev.azure.com/$COMPANY
az devops configure --defaults project=global
az acr login --name $COMPANY
Use
---
az --help
az extension list-available --output table
az extension list-available --output table | grep devops
az extension add --name azure-devops
az pipelines variable-group list
az pipelines variable-group list | jq .[].name
az pipelines pool list --pool-name NAME
az pipelines agent list --pool-id ID | jq '.[]|[.name,.id,.status]|join("|")'
az account show
az account list -o table
az account set -s $SUB_ID # set the default/active subscription
az acr check-health --name $COMPANY
az acr check-health --name $COMPANY --yes
az acr login --name $COMPANY
az acr repository show-tags -n $COMPANY --repository $REPO --orderby time_desc --output table
az devops configure --defaults organization=https://dev.azure.com/MyOrg/
az devops configure --defaults project=PROJ
az devops configure --list
az devops user show --user EMAIL
az devops login --organization https://dev.azure.com/innovyze/
az artifacts universal download --organization $ORG --project $PROJECT --scope project --feed $FEED --name $NAME --version $VERSION --path .
ADO_ARTIFACTS_TOKEN=$(keyring -b artifacts_keyring.ArtifactsKeyringBackend get https://pkgs.dev.azure.com/COMPANY/PROJECT/_packaging/FEED/pypi/simple/ VssSessionToken 2> /dev/null)
Pipeline Stuff
--------------
PipAuthenticate built-in task sets the following environment variable
PIP_EXTRA_INDEX_URL
with the value containing credentials to the extra URL, e.g.
https://admin:asfvrewf@pkgs.dev.azure.com/COMPANY/GROUP/_packaging/FEED/pypi/simple/PACKAGE/
tags: ADO, Azure