Skip to content

Instantly share code, notes, and snippets.

@SQLDBAWithABeard
Last active May 27, 2022 15:25
Show Gist options
  • Save SQLDBAWithABeard/786e0aa8e97eba3db6bcd677e267fea4 to your computer and use it in GitHub Desktop.
Save SQLDBAWithABeard/786e0aa8e97eba3db6bcd677e267fea4 to your computer and use it in GitHub Desktop.
get microsoft tags
function Get-MicrosoftTags {
$AllRepos = (iwr https://mcr.microsoft.com/v2/_catalog).content | ConvertFrom-Json
# $AllRepos.Repositories | where{ $_ -like '*sql*'}
if ($IsCoreCLR) {
$repo = $AllRepos.Repositories | Out-ConsoleGridView -OutputMode Single
}
else {
$repo = $AllRepos.Repositories | Out-GridView -Passthru
}
$Url = "https://mcr.microsoft.com/v2/{0}/tags/list" -f $repo
((iwr $Url).content | ConvertFrom-Json ).Tags
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment