Install Azure DevOps extension for AZ CLI (#5057)

This commit is contained in:
Aleksandr Chebotov
2022-02-11 12:53:36 +03:00
committed by GitHub
parent 8dfa279755
commit cd64c6838e
4 changed files with 15 additions and 0 deletions

View File

@@ -422,6 +422,11 @@ function Get-AzureCLIVersion {
return "Azure CLI $azureCLIVersion"
}
function Get-AzureDevopsVersion {
$azdevopsVersion = (az version | ConvertFrom-Json).extensions.'azure-devops'
return "Azure CLI (azure-devops) $azdevopsVersion"
}
function Get-AWSCLIVersion {
$awsVersion = Run-Command "aws --version" | Take-Part -Part 0 | Take-Part -Delimiter "/" -Part 1
return "AWS CLI $awsVersion"