= Azure = * https://azure.microsoft.com/en-us/overview/ Microsoft Cloud computing == Azure CLI == * https://docs.microsoft.com/en-us/azure/devops/pipelines/create-first-pipeline-cli?view=azure-devops&tabs=browser * https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest * https://docs.microsoft.com/en-us/azure/devops/cli/log-in-via-pat?view=azure-devops&tabs=windows # Use PAT {{{#!highlight bash # azure cli curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash az extension add --name azure-devops export AZURE_DEVOPS_EXT_PAT=xxxxxxxxxx # sotr PAT also in my_pat_token cat my_pat_token.txt | az devops login --organization https://dev.azure.com/contoso/ az devops configure --defaults project= az repos list --project az devops configure -l az artifacts universal download -h az devops wiki list az devops wiki show --wiki projectXYZ.wiki }}} == Query work items == * https://docs.microsoft.com/en-us/azure/devops/boards/work-items/guidance/work-item-field?view=azure-devops {{{ az boards query --wiql "select id, [Iteration Path], state, title FROM WorkItems WHERE [Work Item Type] = 'User Story' and (state ='Active' or state='New') " -o table }}} == Issue downloading modules with npm from feed == {{{#!highlight bash # download modules direcly with credentials devops npm -ddd install # get files with 401 error using user and PAT cat /home/user/.npm/_logs/2020-05-30T00_31_25_478Z-debug.log | grep "401 " | awk '//{print $6}' | xargs -i curl -L -v --remote-name -u devopsuser: {} # changed package.json to point to locally downloaded files - issue http 401 error with npm "@scopex/ca": "file://./ca-11.3.7.tgz", "@scopex/ea": "file://./ea-11.3.7.tgz", "@scopex/fa": "file://./fa-11.3.7.tgz", "@scopex/me": "file://./me-11.3.7.tgz", "@scopex/mi": "file://./mi-11.3.7.tgz", "@scopex/he": "file://./he-11.3.7.tgz", }}}