Azure Devops API | Download Variable Groups with Powershell

preview_player
Показать описание
Please follow me on Twitter to get more updates on memes, tech news, devops/developer content!

#azure #api #powershell #variablegroups

Important Time Stamps :

00:00 - Intro
00:10 - Info about my #REST #API and #Powershell intro video
00:28 - Info about my #github where you can find other scripts related to #powershell and youtube videos in general
00:56 - Quick #overview of #Variable Groups
01:27 - Begin scripting
01:57 - Build #URL #endpoint variable
02:27 - Goto #Azure #Devops api #documentation and find the proper Rest #method
03:08 - Where to find your Azure #organization and #project #values
04:20 - Testing the script so far to see what your url looks like. Also 420 Blaze it.
05:20 - Where to #generate your #AccessToken aka #PersonalAccessToken aka #PAT
06:05 - Creating the #header for your #HTTP #request
06:43 - Creating #token to pass through HTTP Header
07:08 - Create HTTP Request
07:55 - Fix typo error about token string
08:23 - #Executing the #script and viewing its results
08:49 - #Save the #response variables value into a local #directory as a #json #file.
10:49 - Like and subscribe!

FYI if you are wondering why the PAT changed towards the end of the video, its because I accidentally deleted the original video during editing and I had to refilm that section. I had already #revoked the PAT so I had create a new one and redo/refilm that portion.

Important Links :

This video covers how to utilize #Powershell and Azure Devops API to download Variable Groups. Please continue to #build upon this #script by adding #parameters and etc to fit your needs.

Also I made the change to #VisualCode because #powershell7.1 is here and it has no ISE. Visual Code is what we will use to edit Powershell 7.x.x moving forward. Whenever possible I will still make videos for powershell 5.x and 7.x, but its not a guarantee anymore.

Ingore the below :

#scripting
Рекомендации по теме
Комментарии
Автор

Thank you so much.. Still one day I struck with this issue

endrumkrishnavazhill
Автор

This was super helpful! Can you recommend a tool or method to make the downloaded JSON file output into a more user friendly readable format like in in a table ? When i get the variable groups, it dumps all 4 variable groups (Dev, Tes, Pre, Prd) of a project into a single JSON file. I would like to parse the JSON format into a more readable format like having a key value pair listed in a table.

kaiviti
Автор

Could you please do a video on how to fetch pipelines approvals.. where approvals are manual

naveenmulinti
Автор

Can I get the secret of variable group as well using rest api?

temporaryuser