Force update devops cli extension to unblock authentication issue

This commit is contained in:
Wes Haggard 2022-09-13 15:21:29 -07:00
Родитель bf5d158da8
Коммит 59280b5fd4
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -25,9 +25,13 @@ if (!$devops_pat) {
}
az extension show -n azure-devops *> $null
if (!$?){
if (!$?) {
Write-Host 'Installing azure-devops extension'
az extension add --name azure-devops
} else {
# Force update the extension to the latest version if it was already installed
# this is needed to ensure we have the authentication issue fixed from earlier versions
az extension update -n azure-devops *> $null
}
$allVersions = @{}