Size: 641
Comment:
|
← Revision 9 as of 2021-05-28 10:05:02 ⇥
Size: 2263
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
* https://azure.microsoft.com/en-us/overview/ Microsoft Cloud computing |
|
Line 4: | Line 7: |
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation. |
|
Line 7: | Line 12: |
{{{#!higjlight bash | {{{#!highlight bash |
Line 14: | Line 20: |
az devops configure --defaults project=<ProjectName> az repos list --project <proj> az devops configure -l az artifacts universal download -h az devops wiki list az devops wiki show --wiki projectXYZ.wiki |
|
Line 15: | Line 29: |
== 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 == * curl is able to download npm packages with username and PAT. {{{#!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:<PAT> {} # 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", }}} |
Azure
Microsoft Cloud computing
Azure CLI
The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
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
1 # azure cli
2 curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
3 az extension add --name azure-devops
4 export AZURE_DEVOPS_EXT_PAT=xxxxxxxxxx
5 # sotr PAT also in my_pat_token
6 cat my_pat_token.txt | az devops login --organization https://dev.azure.com/contoso/
7
8 az devops configure --defaults project=<ProjectName>
9 az repos list --project <proj>
10
11 az devops configure -l
12 az artifacts universal download -h
13 az devops wiki list
14 az devops wiki show --wiki projectXYZ.wiki
Query work items
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
- curl is able to download npm packages with username and PAT.
1 # download modules direcly with credentials devops
2 npm -ddd install
3 # get files with 401 error using user and PAT
4 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:<PAT> {}
5
6 # changed package.json to point to locally downloaded files - issue http 401 error with npm
7 "@scopex/ca": "file://./ca-11.3.7.tgz",
8 "@scopex/ea": "file://./ea-11.3.7.tgz",
9 "@scopex/fa": "file://./fa-11.3.7.tgz",
10 "@scopex/me": "file://./me-11.3.7.tgz",
11 "@scopex/mi": "file://./mi-11.3.7.tgz",
12 "@scopex/he": "file://./he-11.3.7.tgz",