In this video I'll show you how to use PowerShell to access the Azure DevOps REST API Related links: docs.microsoft.com/en-us/rest... docs.microsoft.com/en-us/azur... Gist to demo code: github.com/tegaaasolutions/Az...
Hi, was wrecking my head trying to understand how to automate workitems handling in Azure Devops..untill I found this video. Great help for beginners at creating pipelines. Many thnks!
Hello Etienne, Thanks for a great video! Do you know if it's possible to accomplish the below? I am trying to get a dump of all security groups and users for a certain build definition! This is equivalent to going to the Security tab in the build definition. Would you know which API can help me do a "get" for all the security groups and users for a specific build definition id?
On my RELEASE pipeline, I need to access the queue variables of my BUILD pipeline, the RELEASE pipeline is being triggered by the BUILD pipeline using CI. I read somewhere that I could use a powershell task to call devops BUILD API in order to get queue time variable an their values. Could make a tutorial indicating how to get a specific variable value for this scenario?
Hello Etienne thanks for your video, its very informative. Also if you can make a video on Azure Devops Pipelines approval gates with the use of invoke rest API to check the user story state in the work items and then approve as an evidence would be greatly appreciated.
Hi, I am looking for the solution to do the following; One of my processes will create a text file. I need to add this file into Azure dev-ops Repo ( GIT) and then update the same file while the same process will run the second, third ... time. Do you have any suggestions on how to do so using a REST API + Powershell? TNX!
Hello Etienne, thank you for the video. is it possible to get a report from ADO to list which projects are using YML pipelines vs classic pipeline? please confirm.
Batch creation of ADO workitems possible? I would like a PS script to read a file and create a. workitem (bug) for each row in the file. Is that possible? If so any tips, general structure of which REST APIs to use, or any existing PS script out there that does this already?
Excellent video and wat exactly which i am looking for azure DevOps is clearly explained.. Thank you so much.. If possible can you please share, how to send the output of this demo's in mail using powershell with same powershell script. Thank you in advance!
Hi Siva, check this out: docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-7 you can just add this after you run and generate a csv or txt file and it will send via your SMTP server.
@@TegaaaSolutions Thank you..! Another doubt is in API.. releaseCount=5, gives us latest 5 releases, but if i want to get only the latest release, then what should be the parameter should in need to mention? Thank you in advance!
Hi Etienne, I am trying to create a power shell script which will throw a pop-up when ever a new task/work item is created (State = New and assignedto = 'myteamname'). I am facing issues when trying to call the API with filters in query string. Can you please help me in this and suggest me on how to proceed.
Hi Rifat, try looking at Azure DevOps extensions rest api. From there you can get extensions (task), list, update, install and uninstall, you might be able to get the info you need from there.
Good video, it helped me a lot!! There just something I can't figure out how to do! I want to move my ticket to different board columns. I have, lets say, 10 and I need to cherry pick where the ticket goes! Do you have any idea?
Actually figured it out! Also, do you know how can one get a list of all the available work items in a column? The REST api kind of expects you to input the IDs yourself, while in my case I just want to get whatever is in there
I don’t off hand I would look at the site and do a few tests, you could go the other way and get a list of items and their column and check where they are, you could also write a query and get all items in a specific column (I would probably do that). Check the info on running a string query in the API docs
@@gauravjoshi5054 yes that’s the way to do it. Then you use $(system.accesstoken) in your inline scripts or $env:SYSTEM_ACCESSTOKEN Inside powershell scripts also check here docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken
Hi Etienne, Thanks for the tutorial. Can you please share the script to fetch the data of all users with access level information(Basic/Stakeholder/others) ?
There is nothing to get this information at the moment, you can navigate to that that screen (where you see the levels) and on Server 2019 you have a new button Export audit log that give you this information. Nothing with the REST API Unfortunately.
Hi Find $projectsUrl and paste over this: ------ #Change default limit from 100 to whatever value you wish $urlParams = '$top=300&' # docs.microsoft.com/en-us/rest/api/azure/devops/core/projects/list?view=azure-devops-rest-5.0 $projectsUrl = "$($tfsBaseUrl)_apis/projects?$($urlParams)api-version=5.0" ------ This code should look nicer, but it's my first try on PS and REST API.
I have a ton of cases, migrating from one server to another, starting releases, updating release variables, creating special build/release reports, exporting artifacts, etc. There are plenty of opportunity to use REST APIs to do stuff.