azure-devops

Azure DevOps Rest Api to get all projects with continuation token

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-14 06:32:53
问题 I'm trying to get a list of all our projects in Azure DevOps with PowerShell using the Azure DevOps Rest Api. However, when I run the script it keeps returning 100 projects. When I add the continuation token it loops and returns the SAME 100 projects 4 times. So giving me in total 400 projects. We currently have 385 projects. $Org = "ORGNAME" $personalToken = "MYTOKEN" ################################################### Write-Host "Initialize authentication context" -ForegroundColor Yellow

How to publish asp.net website using AzureDevOps in ftp

早过忘川 提交于 2020-12-13 11:28:37
问题 I want my project (asp.net api) to be enabled CI/CD using AzureDevOps as my CI/CD Tool. I want my published files to uploaded to my hosting provider via FTP. Currently what happens is when build the product via Azure DevOps it create the application as Msdeploy file. which is not supported in my hosting provider via ftp Build Build Artifact As you see the build artifact which is in the format of the web deploy Release trying to upload the artifact which is the zip files and ms deploy files.

ARM template error Bad JSON content found in the request

爷,独闯天下 提交于 2020-12-13 05:37:04
问题 I am trying to deploy an ARM template using the Azure DevOps release pipeline. Azure KeyVault is one of the resources in the template. the deployment is successful when I use the Powershell script. however, when Azure DevOps Release pipeline is used, deployment fails with error "Bad JSON content found in the request" https://i.stack.imgur.com/o9sbD.png The key vault resource definition is as below. { "type": "Microsoft.KeyVault/vaults", "apiVersion": "2018-02-14", "name": "[parameters(

How to run EXE on VSTS Agent hosted machine

烈酒焚心 提交于 2020-12-13 05:36:42
问题 We have release pipeline in the VSTS that runs on a private server using VSTS agent. At the end of release pipeline there is a commmand line step to start executable (Nginx) file. Which succeeds but executable does not start the nginx process. I believe process dies as soon as the parent CMD or Powershell window dies. I have tried both CMD and Powershell (Start "exe" and Start-Process) to execute exe but none seem to be working. Those commands run perfectly on local computer but not when

How to run EXE on VSTS Agent hosted machine

ⅰ亾dé卋堺 提交于 2020-12-13 05:36:29
问题 We have release pipeline in the VSTS that runs on a private server using VSTS agent. At the end of release pipeline there is a commmand line step to start executable (Nginx) file. Which succeeds but executable does not start the nginx process. I believe process dies as soon as the parent CMD or Powershell window dies. I have tried both CMD and Powershell (Start "exe" and Start-Process) to execute exe but none seem to be working. Those commands run perfectly on local computer but not when

How to run EXE on VSTS Agent hosted machine

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-13 05:35:44
问题 We have release pipeline in the VSTS that runs on a private server using VSTS agent. At the end of release pipeline there is a commmand line step to start executable (Nginx) file. Which succeeds but executable does not start the nginx process. I believe process dies as soon as the parent CMD or Powershell window dies. I have tried both CMD and Powershell (Start "exe" and Start-Process) to execute exe but none seem to be working. Those commands run perfectly on local computer but not when

Azure DevOps '401 - Uh-oh, you do not have access' Invited User

喜夏-厌秋 提交于 2020-12-13 03:42:12
问题 I created my first organization and invited a user to it. They receive the email invitation and appear as a member of the organisation and project. However, they when they click join in the email invitation they are denied access. The organisation is not connected to Azure Active Directory as suggested in this thread. We have also tried troubleshooting connectivity as outlined by Microsoft docs. 回答1: You can try to create a new incognito window and sign in to your organization : https://dev

Azure DevOps '401 - Uh-oh, you do not have access' Invited User

六月ゝ 毕业季﹏ 提交于 2020-12-13 03:41:46
问题 I created my first organization and invited a user to it. They receive the email invitation and appear as a member of the organisation and project. However, they when they click join in the email invitation they are denied access. The organisation is not connected to Azure Active Directory as suggested in this thread. We have also tried troubleshooting connectivity as outlined by Microsoft docs. 回答1: You can try to create a new incognito window and sign in to your organization : https://dev

Azure Pipeline connect to SQL DB using service principal

岁酱吖の 提交于 2020-12-13 03:38:38
问题 After my azure pipeline has create an azure sql db I'd like execute some sql. The sql in question must be executed by an AAD authenticated user. The service connection for the pipeline is an AAD authenticated user of the database. If Im willing for the script to consume the service principals secret, then I can construct an OAuth call to retrieve a bearer token and use that to connect to the database. However since the powershell script is running in the context of the service principal I

Azure Pipeline connect to SQL DB using service principal

纵饮孤独 提交于 2020-12-13 03:37:56
问题 After my azure pipeline has create an azure sql db I'd like execute some sql. The sql in question must be executed by an AAD authenticated user. The service connection for the pipeline is an AAD authenticated user of the database. If Im willing for the script to consume the service principals secret, then I can construct an OAuth call to retrieve a bearer token and use that to connect to the database. However since the powershell script is running in the context of the service principal I