Skip to content

Commit 34241a2

Browse files
committed
Write-Output
1 parent 7fff30c commit 34241a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/azure-devops/convert_azurerm_service_connection_to_oidc.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if (!(az extension list --query "[?name=='azure-devops'].version" -o tsv)) {
8383
Write-Host "Adding Azure CLI extension 'azure-devops'..."
8484
az extension add -n azure-devops -y -o none
8585
}
86-
$accessToken | az devops login --organization $OrganizationUrl
86+
Write-Output "${accessToken}" | az devops login --organization $OrganizationUrl
8787
if ($lastexitcode -ne 0) {
8888
Write-Error "$($account.user.name) failed to log in to Azure DevOps organization '${OrganizationUrl}'"
8989
exit $lastexitcode

0 commit comments

Comments
 (0)