mirror of
https://github.com/actions/runner-images.git
synced 2025-12-24 10:28:00 +08:00
Install Azure DevOps extension for AZ CLI (#5057)
This commit is contained in:
committed by
GitHub
parent
8dfa279755
commit
cd64c6838e
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user